Hi,
I'm trying to write my own pass-through queries in Access to query our Oracle database, so I'm trying to learn the SQL behind many of the things I've been doing, or would like to do, with our information. One very big question of mine is this - how do you utilize different criteria for the same field in a query? As a brief example, suppose you wanted to illustrate sales between January and March for both year 2002 and 2001, using a "bill date" field. Normally, I'd run such a query in Access twice, changing the respective 'Between m/d/y and m/d/y' for each year in question. However, I suspect that SQL would facilitate such multiple criteria in one query.
Any thoughts? Your help would be greatly appreciated.
Shaun
I'm trying to write my own pass-through queries in Access to query our Oracle database, so I'm trying to learn the SQL behind many of the things I've been doing, or would like to do, with our information. One very big question of mine is this - how do you utilize different criteria for the same field in a query? As a brief example, suppose you wanted to illustrate sales between January and March for both year 2002 and 2001, using a "bill date" field. Normally, I'd run such a query in Access twice, changing the respective 'Between m/d/y and m/d/y' for each year in question. However, I suspect that SQL would facilitate such multiple criteria in one query.
Any thoughts? Your help would be greatly appreciated.
Shaun