We help IT Professionals succeed at work.

SQL Statement to not show rows with certain duplicate column data

201 Views
Last Modified: 2012-05-08
Hi, the title is probaby not very clear, example below

ID, Name, Price, CreateDate
1, Apple, $10, 11-10-2009 11:00AM
2, Apple, $12, 11-10-2009 11:30AM
3, Orange, $15, 11-9-2009 1:00PM

I would like to construct a query that returns the rows (all columns) with the most up to date price by itemName (row 2 and row 3).

How would i do that? Please Help!

Thanks!
Comment
Watch Question

Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Prefect! Thank you so much!!!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.