Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How do I pull max start date from a sql table and check another date at the same time

Avatar of JasonAsh
JasonAsh asked on
Microsoft SQL Server 2005
14 Comments1 Solution267 ViewsLast Modified:
I have a delivery prices table that has about 50,000 records in and I need to pull the most recent prices using the start date and end dates. eg get MAX(start Date) but only if the End Date has not pasted. Also in my table if a record has a blank end date on the form it is entered in the database as the date 1753-01-01, I have tried to explain it a bit more in my picture below,

Can this be done ?
Avatar of Daniel Wilson
Daniel WilsonFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answers