I have a table named Patient in which I have columns like
ID Disease1 Disease2 Disease3
----------
1 4 3 2
----------
2 2 5
----------
3 6
----------
4 1
These are mapping values which I got from table Disease, in which disease names are placed like
1 hypertension
2 niddm
3 allergy
4 cough
5 floo
6 vv
etc
Now I want sql query to select
ID Disease1 Disease2 Disease3
----------
1 cough allergy niddm
----------
2 niddm floo
----------
3 vv
----------
4 HT
Please keep in mind that I have table mapped with 4,5 tables and I want original values in place of ids from all of them.