puli_keka Posted February 6, 2015 Report Posted February 6, 2015 i have a temp table with col1 , inserted some records.. I want to display whther the value in temp table available or not in other actual table best way enti #temp (col1 nvarchar(10)) i have abc , cda, lmn Table1 ( col2 nvarchar(10), col 3 int, col4 int) abc,0,0 select col1 from #temp tmp left join Table1 t1 on t1.col2 = tmp.col1 final result abc available cda not available lmn not available ala for all the values in temp table Edit: done.. used case when exists from table1
puli_keka Posted February 6, 2015 Author Report Posted February 6, 2015 question not clear update chesa bhayya.. basic ga temp tabale lo unna value actual table lo lekapothe adhi display cheyali
telugodunene Posted February 6, 2015 Report Posted February 6, 2015 update chesa bhayya.. basic ga temp tabale lo unna value actual table lo lekapothe adhi display cheyali ekkada display cheyali
puli_keka Posted February 6, 2015 Author Report Posted February 6, 2015 ekkada display cheyali aa select query lo ravali like columnvalue , 'availble/not availabl' in actual table' ani ..
puli_keka Posted February 6, 2015 Author Report Posted February 6, 2015 modified the question CITI#H@
spidereddy Posted February 6, 2015 Report Posted February 6, 2015 case statement petkon..null aite not avaible pet..
puli_keka Posted February 6, 2015 Author Report Posted February 6, 2015 case when exists then else end vaadithe aipoyindi
Recommended Posts