sql server - How to select the records without duplicating form inner join tables -
from query how can records without duplicate value. need values, if name table , account table c should view when dates field maximum.
select a.name , a.dates , b.da , a.id , b.client , b.[address] , b.[city] , b.[state] , b.dot , b.score , b.pay , b.code , b.[country] inner join c on a.account = c.account inner join b on [a].name = b.name c.users = 00 , b.act = 1 order a.dates
use distinct ?
select distinct a.name , a.dates , b.da , a.id , b.client , b.[address] , b.[city] , b.[state] , b.dot , b.score , b.pay , b.code , b.[country] inner join c on a.account = c.account inner join b on [a].name = b.name c.users = 00 , b.act = 1 order a.dates
Comments
Post a Comment