Hi
i have some problem in select stataement
i have 3 record in table like
ID Name Regdno
1 sameer 001
2 vivek 002
3 abhisek oo3
but i want a query which will be give me the record like
1 sameer(001)
2 vivek(002)
3 abhisek(003)
like this format . how is it possible ? in sql statement.
plz help me Thanx.
Loading
Jaganathan BantheswaranPosted Nov 11, 2013, 6:28 AM
select id as ID, name + '(' + regdno + ')' as Name from yourtable
ranjan sahooPosted Nov 11, 2013, 6:35 AM
ranjan sahooPosted Nov 11, 2013, 6:25 AM
ranjan sahooPosted Nov 11, 2013, 6:23 AM
Abhay ShankerPosted Nov 11, 2013, 6:17 AM
ranjan sahooPosted Nov 11, 2013, 6:16 AM
VulpesPosted Nov 11, 2013, 6:08 AM
SELECT ID + ' ' + Name + '(' + Regdno + ')' FROM table