Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8979

SQL SERVER

$
0
0

I am having two tables named MK_Registration and MK_Group

i want to generate one to many relationships between these two tables

i.e MK_Group is having fileds named groupid,mkcode

and MK_Registration is having fields like mkcode.

i need to generate different mkcode for one groupid.

for eg: groupidmkcode

   PU001PUMK001

   PU001PUMK002

  AM001AMMK002

mkcode:first two are the initials of the city to be entered by the user while registration ,appended with MK00 and 1 incrementing variable

groupcode:first two are the initials of the city to be entered by the user while registration , with 1 incrementing variable.


Yugandhara Patil


Viewing all articles
Browse latest Browse all 8979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>