Hello there,
I am new in using SQL 2000. Please help me to find out how to create a select query or function to return the expected result below.
Table 1: User_Table
UserID | xName | xCode
---------------------------------------------
1 | XYZ | SG3,SG9
2 | ABC | KR12,KR13
Table 2: Outlet_Table
Outlet_ID | xCode
-------------------------------------------------------
987654 | KR12
77777 | SG9
Create a query that will display the expected result below:
Outlet_ID | xCode | UserID
----------------------------------------------------------------
987654 | KR12 | 2
77777 | SG9 | 1
Please help.
Kindest regard,
jen
I am new in using SQL 2000. Please help me to find out how to create a select query or function to return the expected result below.
Table 1: User_Table
UserID | xName | xCode
---------------------------------------------
1 | XYZ | SG3,SG9
2 | ABC | KR12,KR13
Table 2: Outlet_Table
Outlet_ID | xCode
-------------------------------------------------------
987654 | KR12
77777 | SG9
Create a query that will display the expected result below:
Outlet_ID | xCode | UserID
----------------------------------------------------------------
987654 | KR12 | 2
77777 | SG9 | 1
Please help.
Kindest regard,
jen
Comment