Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sub-query help needed

Status
Not open for further replies.

sbcsandhu

Programmer
Jul 3, 2007
113
US
i have a report of different activities a person has done

i know that if a person has completed an acitivy they have a act_sts_cd of '04'

so basically if a person has a completed status, i want that, but if its not completed, then i want the max(bgn_dt)

im need it group by cs_id and sesn_id,
a person might have 2 or more sessions, so i want to see both of them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top