Viewing 2 posts - 1 through 2 (of 2 total)
Use this.
select coalesce(a.id,b.id,c.id)id,isnull(max(name),'')name,isnull(max(address),'')address,isnull(max(descri),'')descr from tablea a full join tableb b on a.id=b.idfull join tablec con a.id=c.idgroup by coalesce(a.id,b.id,c.id)
March 13, 2018 at 2:53 am
#1982866
Hi,
Please use below query for that
select id,item from(select *,row_number() over(partition by id order by id) as rn from Tablename)ttwhere id=rn
March 12, 2018 at 2:55 am
#1982736