Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
this is my select Query
select 'dummy', * from Employee_Details
this is my output
(No column name) UserId FirstName LastName City Designation UserName
dummy 19 aaa bbbb ccccc programmer ccccasasas
dummy 21 tttrt rtrttrt tryrt sdfdf Default
dummy 22 ttt ttt ghj ghj Default
dummy 23 ghj ghj ghj ghhhjghjh Default
dummy 20 yyyyyy wer wer wer Default
but I want blank value for userId = 20 .
Is is possible? Give me solution for the same
Posted

1 solution

try union
SQL
select '', * from Employee_Details where userId = 20
union
select 'dummy', * from Employee_Details where userId <> 20
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900