Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | customer | profile | status | date |
- | 1 | 1 | DONE | mmddyy |
- | 1 | 1 | DONE | mmddyy |
- select customer, profile, status, max(date)
- from tbl
- group by profile, customer,status, date, column-k
- having count(profile)>0 and status='DONE';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement