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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -