sql query record

1. Query the record with the largest begindate (a clerkcode has records with multiple begindate values), correlated subquery? in?:

 

 

select * from hi_psnjob a where a.begindate in ( select max(b.begindate) from hi_psnjob b where b.clerkcode = a.clerkcode)

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326077940&siteId=291194637