Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

SQL SERVER

$
0
0

I am having 1 table named MK_Registration having feilds userid,name,city,state, etc etc.

and 1 table named City_Lookup having fields as city,code(eg. Pune,PU)

when user will register he will fill all his details but userid will be generated by us and his userid and password are sent to his emailid.

so i need to generate his userid as first 2 initials of his city and 1 number.

for example if user enters his city as pune,then from City_Lookup we will fetch code for Pune which is PU and concat it with  number which will be 001,as userid will look like PU001.

how should i do using SQL Server

Please do reply fast!!!


Viewing all articles
Browse latest Browse all 8428

Trending Articles