Re: Query tuning

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Query tuning
Дата
Msg-id dcc563d10805160821p22e01297ia85bf6317c4a6c2b@mail.gmail.com
обсуждение исходный текст
Ответ на Query tuning  (<kapil.munish@wipro.com>)
Ответы Re: Query tuning
Список pgsql-sql
On Thu, May 15, 2008 at 12:00 AM,  <kapil.munish@wipro.com> wrote:
> Hi,
>
> select count(distinct(j.JOBID)) as jobCount
> from  JOB_TYPE_FIRST a, JOB_TYPE_SECOND b, JOB_ALLOCATION_WORKLIST j
> where (( a.JOBID = j.JOBID)
> and (a.BOOK_ID = :bookId))
> or ((b.JOBID = j.JOBID)
> and (b.BOOK_ID = :bookId));

Have you tried joining a with j and b with j separately, and then
doing a union on those two sets?


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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Find all instances of a column in the entire database.
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Query tuning