Re: Limit # of recs on inner join?

Поиск
Список
Период
Сортировка
От Rodrigo E. De León Plicet
Тема Re: Limit # of recs on inner join?
Дата
Msg-id a55915760712311807l716a77e8l86873515f0ca1f9@mail.gmail.com
обсуждение исходный текст
Ответ на Limit # of recs on inner join?  (Josh <josh@globalherald.net>)
Список pgsql-sql
On Dec 31, 2007 1:52 PM, Josh <josh@globalherald.net> wrote:
> Instead, I just want:
>
> 1       A Cat In The Hat        Dr. Seuss

SELECT books.book_id, books.title,      (SELECT author_name       FROM   authors       WHERE  book_id = books.book_id
   LIMIT 1) AS author_name
 
FROM   books
WHERE  books.book_id = ?


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

Предыдущее
От: Josh
Дата:
Сообщение: Limit # of recs on inner join?
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Limit # of recs on inner join?