MySQL Forums
Forum List  »  Newbie

Combining Several firlds into one.
Posted by: Donavon Lerman
Date: August 18, 2004 01:00PM

How would I do a Select from several fields into a single field?

<pre>
Here is how the table looks:
+----------+----------+-----------+-----------+
| north | south | east | west |
+----------+----------+-----------+-----------+
| yes | yes | no | no |
+----------+----------+-----------+-----------+
| no | yes | no | yes |
+----------+----------+-----------+-----------+
| no | no | no | yes |
+----------+----------+-----------+-----------+
| yes | no | yes | yes |
+----------+----------+-----------+-----------+

The output should look like:
+---------------------+
| direction |
+---------------------+
| north - south |
+----------+----------+
| south - west |
+----------+----------+
| west |
+----------+----------+
| north - east - west |
+----------+----------+
</pre>

Options: ReplyQuote


Subject
Written By
Posted
Combining Several firlds into one.
August 18, 2004 01:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.