Date Query

V

VirginiaR

I have a database that I use to inventory items for a small store. Each item
has a posting date. I want to perform a query that has the earliest posting
date for the items. Help is greatly appreciated.
 
L

Lou

I have a database that I use to inventory items for a small store.  Each item
has a posting date.  I want to perform a query that has the earliest posting
date for the items.  Help is greatly appreciated.

As a first cut, I'd try this:

SELECT A.*
from Items as A
where A.PostingDate = ( SELECT MIN( PostingDate ) from Items where
ItemID = A.ItemID )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top