|
AllenD -> Using Constants for queries... (4/9/2002 14:17:05)
|
Hello All, ok here we go... I need to queries on the same database, but on many different items, many different times...example: I need a query that will tell me the last time a database entry was made for Apples...then for Oranges...then for Grapes...etc, etc...this goes on for 30 or more times... I already have the database built and working with the date/time being captured. I do not want to write 30 different select statements that contain SELECT grapes from .... etc... So, can I write some kind of variable or constant that contains all the fruits then using a loop that will query the database based on my variable? If anyone has an example or good website with examples it would be much appreciated! Thanks...
|
|
|
|