
July 21st, 2012, 04:21 AM
|
|
Registered User
|
|
Join Date: Jul 2012
Posts: 2
Time spent in forums: 31 m 53 sec
Reputation Power: 0
|
|
|
Join table
I have two table as per given below
Code:
+------+------------------+-----------+----------+------------+
| ssId | ssRegistrationID | ssSubject | ssScheme | ssSchemeId |
+------+------------------+-----------+----------+------------+
| 1 | 100000 | 2 | 256 | 1,2 |
| 2 | 100001 | 2 | 256 | 1,4,3 |
| 3 | 100002 | 2 | 256 | 2,4,3 |
| 4 | 100003 | 3 | 128 | 3 |
| 5 | 100004 | 2 | 256 | 1,3,4 |
+------+------------------+-----------+----------+------------+
Code:
mysql> select scId, scName from _scheme limit 4;
+------+---------------------------------------------+
| scId | scName |
+------+---------------------------------------------+
| 1 | Open Category (HSTFS) |
| 2 | Dalit (HSTFS) |
| 3 | Indigenous Nationalities (Janajati) (HSTFS) |
| 4 | Daughter of BPKIHS Faculty/Staff (HSTFS) |
+------+---------------------------------------------+
and I want above table given below
Code:
| 1 | 100000 | 2 | 256 | Open Category (HSTFS),Dalit (HSTFS)
Please help me how to do this
|