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 BantheswaranRank #170 · 14.1K reputationPosted Nov 11, 2013, 1:28 AM EST
select id as ID, name + '(' + regdno + ')' as Name from yourtable
VulpesRank #55 · 29.2K reputationPosted Nov 11, 2013, 1:08 AM EST
SELECT ID + ' ' + Name + '(' + Regdno + ')' FROM table
ranjan sahooRank #5,709 · 289 reputationPosted Nov 11, 2013, 1:16 AM EST
Abhay ShankerRank #375 · 6.7K reputationPosted Nov 11, 2013, 1:17 AM EST
ranjan sahooRank #5,709 · 289 reputationPosted Nov 11, 2013, 1:23 AM EST
ranjan sahooRank #5,709 · 289 reputationPosted Nov 11, 2013, 1:25 AM EST
ranjan sahooRank #5,709 · 289 reputationPosted Nov 11, 2013, 1:35 AM EST