![]() |
SQL statements howto -- 3 columns input but 2 columns output
Hi folks, this is my first time to post in this programming sub forum.
I got questions on SQL statement, please visit: http://protrek.com.hk/test/q.html |
It is far more normal to post your problem in your own post - for example, if that site goes offline, there's no record of your question.
Quote:
and the answer is: Code:
(SELECT name, col1 FROM `test`) UNION (SELECT name, col2 FROM `test`) |
Dear Snark1994,
Thank you for the repsond. Thank you for the keyword UNION It is work and HELPFUL! Thank you once again! |
No problem, glad it helped. Please mark the thread as "SOLVED" so others know it contains a solution.
Thanks, |
| All times are GMT -5. The time now is 02:15 AM. |