Assuming you want the 'Last record' of user_id,here is the statment:
select top 1
max(user_ID),name,address,phone
from table1
group by name,address,phone
order by user_ID desc
Good luck
Assuming you want the 'Last record' of user_id,here is the statment:
select top 1
max(user_ID),name,address,phone
from table1
group by name,address,phone
order by user_ID desc
Good luck
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2024 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy