Columns to Row in SQL Server without union -


  तालिका #temp (tempid int, tempname nvarchar (50), option1 nvarchar (50), विकल्प 2 नर्वचर ( 50), option3 nvarchar (50)) #temp (tempid, tempname, option1, option2, option3) मान (1, 'हाँनोकैनल', 'हाँ', 'नहीं', 'रद्द करें') में सम्मिलित करें   

मुझे आउटपुट के रूप में

  tempid tempname विकल्प 1 'हाँ नॉनकैनल' 'हाँ' 1 'हाँनोकैनल' 'नहीं' 1 'हाँ नॉकैनल' 'रद्द करें'    

इस तरह की कोशिश करें

  SELECT t। * Temp OUTER APPLY (VALUES (Tempid, tempname, option1))    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -