![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi everyone, I am having some trouble with an SQL statement that I just cant seem to get to work. I have imported some data into MS Access from another application and have a single table with information in it. There are a number of columns, and I am trying to do a 'summary' type query for a quick view of the information. The problem comes in when I am trying to place a condition on the select statement. I am trying to work it as follows: There are several products advertised each week, and this is represented by rows with data in the following columns, CW for Calender week, Retailer for the store that did the advertising, and Product for the product that was advertised. I also have other columns such as Price etc.... The result that I am trying to achieve is to have a single query that lists one row per product that has been advertised in any given week by at least 7 retailers, the number of times that this has occurred, and the average price for these occurrences. So in short it is supposed to look like: Number_of_Weeks Average_Price Product1 # EURO Product2 # EURO ...and so on I am having a complete mental block with this one, even with several strong coffees! If anyone can point me in the right direction I would greatly appreciate it. Cheers The Frog This might get you close. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Unfortunately I cannot do this as I have only got Access97 to work with and the DB is in Jet4.0 format. I am trying to do this via SQL using MS Query actually! In a nutshell it looks like I cant achieve this because I cant get the more complex where criteria to function (seemingly). |
|
A single SQL statement would be my only way it seems. Unfortunately I cannot use the functionality in Access to achieve this result or I would be well done by now! Cheers and thanks for trying anyway The Frog |
#5
| |||
| |||
|
|
Hi everyone, I am having some trouble with an SQL statement that I just cant seem to get to work. I have imported some data into MS Access from another application and have a single table with information in it. There are a number of columns, and I am trying to do a 'summary' type query for a quick view of the information. The problem comes in when I am trying to place a condition on the select statement. I am trying to work it as follows: There are several products advertised each week, and this is represented by rows with data in the following columns, CW for Calender week, Retailer for the store that did the advertising, and Product for the product that was advertised. I also have other columns such as Price etc.... The result that I am trying to achieve is to have a single query that lists one row per product that has been advertised in any given week by at least 7 retailers, the number of times that this has occurred, and the average price for these occurrences. So in short it is supposed to look like: Number_of_Weeks Average_Price Product1 # EURO Product2 # EURO ...and so on I am having a complete mental block with this one, even with several strong coffees! If anyone can point me in the right direction I would greatly appreciate it. Cheers The Frog |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
The problem is that the Jet4.0 (Access 2000) type file cant be read by Access97. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Yeah, that was me. |
|
The dao3.6 works only if it is correctly installed. |
|
It looks like the issue is getting everything installed / registered the right way, and in my current corporate environment there are no guarantees as the IT "Guru's" change the environment each day and never tell anyone what they are doing. DLL's will magically diapappear, some will simply be changed without updating things in the registry, and on and on.... Suffice to say we have a lot of problems that make our systems completely unreliable. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |