Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. | customer | profile | status | date |
  2.  
  3. | 1 | 1 | DONE | mmddyy |
  4.  
  5. | 1 | 1 | DONE | mmddyy |
  6.  
  7. select customer, profile, status, max(date)
  8. from tbl
  9. group by profile, customer,status, date, column-k
  10. having count(profile)>0 and status='DONE';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement