You are on page 1of 1

SELECT A.* from `xstation-mobile.lead_score.

score` A JOIN (SELECT Lead__c ll,


MAX(InsertTimestamp) m FROM `xstation-mobile.lead_score.score` WHERE Lead__c =
'00Q0E00000SiCQcUAN' Group By Lead__c) soredate ON A.Lead__c = soredate.ll AND
A.InsertTimestamp = soredate.m

You might also like