on 2016 Feb 11 2:12 AM
Is it possible to link tables with their joins based on a condition?
For example, is it possible to have a right outer join only when a particular value is X?
Thanks
Janet
Request clarification before answering.
Hi Janet, you can specify the condition base on particular value by using any of the following SQL commands as:
1. select * from employee e
right outer join location l on e.empID = l.empID and e.particularValue = l.X;
2. select * from employee e
right outer join location l on e.empID = l.empID
Where e.particularValue = l.X;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Janet,
Do you have an example of what you're trying to do please?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.