We help IT Professionals succeed at work.
Get Started

how to pull the earlest date of procedures

whttc asked
Last Modified: 2014-06-02
I would like to pull procedures which are negotiated earlest date.  If I wrote this aggregate query below, I will pull more than one earlest procedures because the variable qty has different numbers under these variables a.sponsor, a.protocol, a.investigator_id, a.il_prcode.

I guess i have to write a subquery to solve this problem. please suggest.

select a.sponsor, a.protocol, a.investigator_id, a.il_prcode, qty, min(a.modify_date)as modify_date

from Abbott_Neg a
group by a.sponsor, a.protocol, a.investigator_id, a.il_prcode, a.qty
Watch Question
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
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:

  • Troubleshooting
  • Research
  • Professional Opinions
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