Re: query takes a long time - Mailing list pgsql-general

From marcin mank
Subject Re: query takes a long time
Date
Msg-id b1b9fac60808231507y1c68ed21o7f1fbfa2b4e51a21@mail.gmail.com
Whole thread Raw
In response to query takes a long time  (Garry Saddington <garry@schoolteachers.co.uk>)
List pgsql-general

select count(distinct attendance.studentid)

from attendance

where attendance.studentid not in (select studentid from attendance where auth not in('C','E','F','G','H','I','M','N','O','R','S','T','U'))


I am tired a lot now, but isn`t it the same as:

select count(distinct attendance.studentid)

from attendance

where auth in('C','E','F','G','H','I','M','N','O','R','S','T','U')
?

pgsql-general by date:

Previous
From: Raymond O'Donnell
Date:
Subject: Re: psql vs. pgadmin3 was:can't get UPDATE ... RETURNING ... INTO ... to compile successfully
Next
From: Alban Hertroys
Date:
Subject: Re: on delete cascade slowing down delete