In SQL, how can you select and match more than one column in a sub-select?
Here is the scenario:
In Oracle or MySQL, you want to select the rows return based on the condition of a sub select query. If this is just one column, it is no problem:
SELECT * FROM emp
WHERE id IN (SELECT emp_id FROM promotion_list WHERE year = '2009');
However, the challenge is that if you want to match more than one column. How should the sql statement look like?

smallwei 10:54 pm on October 28, 2009
You can use the following syntax to accomplish multiple columns sub-select:
For example:
smallwei 10:44 pm on November 3, 2009
Another way is to use the following statement: (thanks to budmanz)