I am working on a site that is in production, so I can't change the tables. The way it is nowI have 3 tables.
1. tblNumbers
2. tblImpacts
3. tblImpactDecode
So I have to make a statement that does an inner join on the tblImpact columns = tblImpactDecode.code
So if I select tblNumbers.num = 1
the results would be
is there a SQL statement or a stored procedure
please help
thanks
jason
1. tblNumbers
Code:
num
---
1
2
3
2. tblImpacts
Code:
num a b c
----------------------
1 1 0 1
2 0 1 1
3 1 1 1
3. tblImpactDecode
Code:
code decode
---------------
a 'this is a'
b 'this is b'
c 'this is c'
So I have to make a statement that does an inner join on the tblImpact columns = tblImpactDecode.code
So if I select tblNumbers.num = 1
the results would be
Code:
num decode
1 'this is a'
1 'this is c'
is there a SQL statement or a stored procedure
please help
thanks
jason