Sign in to follow this  
unknownProdigy

[web] sql question

Recommended Posts

I'm trying to make a table 'sometable' that has two columns: 'categoryid' and 'dateadded'. 'categoryid' is a foreign key to another table and 'dateadded' refers to a date object. Suppose that for each 'categoryid' value in the table, I want to get the lastest date only. How would you query that?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this