Select ... From (Select ...)?

From: "Steven O'Toole" <steven(at)o2l(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Select ... From (Select ...)?
Date: 2001-03-30 20:25:57
Message-ID: a05001950b6ea9bda45f5@[192.168.1.47]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Is there any way to do this kind of query in PGSQL?

SELECT count0, count1 FROM (
SELECT COUNT(*) AS count0
FROM measurement
WHERE responseTime = 0
GROUP BY responseTime
), (
SELECT COUNT(*) AS count1
FROM measurement
WHERE responseTime = 1
GROUP BY responseTime
)
;

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message IGB.NET 2001-03-30 20:51:20
Previous Message ADBAAMD 2001-03-30 18:27:42 Re: Help on Postgres and locale - norwegian characters are not possible in my SuSE 7.0 stock install