Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

help in selecting required columns from duplicates records

$
0
0

HI,

I have a table like below

empid,ename,sal,Jdate,Rdate,deptid,designation,Terminated_Emp

1,a,100,15-May-2014,11,SE,NO

1,null,null,15-OCT-14,null,null,YES

I want output like below

1,a,100,15-May-2014,15-OCT-2014,11,SE,YES

Please help me in writing sql query, can we write case condition for this?



Naresh


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>