UltraSmooth
Programmer
I need to write a query selects all items from an inventory table 'MenuItem' that have sold since a user specified date. The sales table 'Custinv' has a record for every item sold by date and location (quite a large amount of records).
I'm not really sure how to proceed, should I be joining with the sales table? Won't this procedure have to do a full table scan to find the latest date the item was sold?
I was thinking maybe I had to query the sales table to bring back a list of items and the last date they were sold and then join to the inventory table to get the item detail information.
Needless to say, I'm a little confused. Any help would be appreciated.
I'm not really sure how to proceed, should I be joining with the sales table? Won't this procedure have to do a full table scan to find the latest date the item was sold?
I was thinking maybe I had to query the sales table to bring back a list of items and the last date they were sold and then join to the inventory table to get the item detail information.
Needless to say, I'm a little confused. Any help would be appreciated.