sql select challenge

Поиск
Список
Период
Сортировка
От Travis Bauer
Тема sql select challenge
Дата
Msg-id Pine.GSO.4.21.0006120807470.14736-100000@mantaray.cs.indiana.edu
обсуждение исходный текст
Список pgsql-general
Let's say I have two tables with the follwing data:

Table_X

A  |  B
---------
1  |  Cat
2  |  Dog
3  |  Mouse
4  |  Hat

Table_Y

C  |  D
---------
2  | Eat
4  | Book


I would like a select statement that joins these two tables to produce the
following.  It lines up the rows one by one against one another simply by
the order they appear in the table, but not by any other criteria:

View_XY

A  | B      |   C   |  D
----------------------------
1  | Cat    |  2    |  Eat
2  | Dog    |  4    |  Book
3  | Mouse  |       |
4  | Hat    |       |

Any ideas?

Thank you,


----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------


В списке pgsql-general по дате отправления:

Предыдущее
От: Lincoln Yeoh
Дата:
Сообщение: Re: Book nearing final form
Следующее
От:
Дата:
Сообщение: Re: sql select challenge