>I have a table with the following fields (simplified):
>(RES_DATE = Reservation date, RES_TIME = Reservation time)
>
>ROOM1 ROOM2 RES_DATE RES_TIME
>A100 B200
>C300
>B200
>A400 C300
>B200
>
>I would like to create one cursor where there would be just one column ROOM and all reservations would be combined. For example:
>
>ROOM RES_DATE RES_TIME
>A100
>A400
>B200
>C300
>and so on
>
>Is this possible in one SQL Select?
>
>Thank you.
SELECT ROOM1 ROOM,RES_DATE,RES_TIME;
FROM Table;
UNION;
SELECT ROOM2,RES_DATE,RES_TIME;
FROM Table WHERE NOT ROOM2==""