Ashutosh Samantaray Blogger

Wednesday, 11 March 2015

case when

 SELECT t1.id,case when t1.id =t3.id then 1 else 0 end as isselected
FROM   dbo.test1 t1 LEFT OUTER JOIN
               dbo.test3 t3 ON t1.id = t3.id

Posted by Ashutosh at 12:27
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (5)
    • ►  June (3)
    • ►  April (2)
  • ►  2019 (4)
    • ►  August (4)
  • ►  2018 (4)
    • ►  August (1)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2017 (3)
    • ►  September (2)
    • ►  March (1)
  • ►  2016 (8)
    • ►  December (1)
    • ►  October (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
    • ►  April (1)
  • ▼  2015 (5)
    • ►  July (1)
    • ►  June (2)
    • ►  May (1)
    • ▼  March (1)
      • case when
  • ►  2014 (8)
    • ►  October (1)
    • ►  July (1)
    • ►  June (3)
    • ►  May (3)
  • ►  2013 (54)
    • ►  December (3)
    • ►  November (1)
    • ►  October (3)
    • ►  August (4)
    • ►  July (11)
    • ►  June (6)
    • ►  May (2)
    • ►  April (21)
    • ►  March (3)

About Me

Ashutosh
View my complete profile
Simple theme. Powered by Blogger.