Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
i have query like this
SQL
select UserID from dbo.IE_REGISTRATION where UserType!='CUSTOMER'


output:

UserID
1000000000

so here i want to Add records by Statically means i want to the output like this

UserID
1000000000
1000000002-static
1000000203-static

Could any suggest me

Thanks in adv,
Regards,
Rahul.
Posted
Updated 21-Sep-13 4:18am
v4
Comments
Mike Meinz 21-Sep-13 8:13am    
We do not understand your question. You say you want to add columns but it looks, in your example, that you added results rows. What do you mean "by Statically"?

Use "Improve Question" to provide more detailed information.
naveen pallela 21-Sep-13 8:19am    
sry not columns i want records
Mike Meinz 21-Sep-13 8:24am    
We still do not understand what you want to do. Please use "Improve Question" and provide a more detailed explanation. If you want more rows to be displayed, you need to alter your selection criteria. What rows are in the database that you want selected that aren't being selected?

1 solution

SQL
select UserID+'-'+'Sataic' from dbo.IE_REGISTRATION where UserType<>'CUSTOMER'
 
Share this answer
 
v2

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