Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 sql statement syntax

Author  Topic 

esthera
Master Smack Fu Yak Hacker

1410 Posts

Posted - 2004-06-13 : 12:53:36
I want to add to my sql statement to select a+[employeeid] as id.
This should be the letter a concatenated with whatever the value of employeeid is. What is the correct syntax?

gpl
Posting Yak Master

195 Posts

Posted - 2004-06-13 : 12:58:52
try
select 'a' + convert(Varchar(25),[employeeid]) as id
assuming employeeid is an integer
Graham
Go to Top of Page
   

- Advertisement -