We would like to get to the following structure using SQL code:
Click the picture to see the full size.
This could be done using a Transact SQL stored procedure of course but the following SQL code is the easiest approach if we know the maximum number of possibility for each combination of Foreign Keys:
Click the picture to see the full size.
No comments:
Post a Comment