Just modifying the query mentioned above, instead of MAX apply MIN to get the first time the person has reached 1$Million amount
select rep_code, min(rep_date),revenue
from sales
where revenue='1.0M'
group by rep_code,revenue
|
Results 1 to 9 of 9
Threaded View
|
Click Here to Expand Forum to Full Width |