Hi
Is this what you are looking for
Code:SELECT user_id,max_date_id FROM ( SELECT userid,MAX(data_id) max_date_id OVER(PARTITION by user_id) FROM my_table ) where max_date_id=0
|
Results 1 to 7 of 7
Thread: EASY Query help...Threaded View
|
Click Here to Expand Forum to Full Width |