sql server - Sql Query t find out maximum from name field -
i have 5 tables field name name . & name appear maximum time in each table need find out output maximum in answer
select top 1 name, count(*) table group name order count(*) desc
i have 5 tables field name name . & name appear maximum time in each table need find out output maximum in answer
select top 1 name, count(*) table group name order count(*) desc
Comments
Post a Comment