| From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
|---|---|
| To: | Sara Cohen <sarina(at)cs(dot)huji(dot)ac(dot)il> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Subqueries in select clause |
| Date: | 2001-04-18 15:44:07 |
| Message-ID: | web-41185@davinci.ethosmedia.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Sara,
Hey! Great to see that Postgres has made it to Israel. What's the
most popular Linux distribution there?
I think you have your answer ... an upgrade. RPMs for most major
distributions of Linux should be available within the week.
Until you can upgrade, though, try this approach:
CREATE VIEW c_aggregate AS
SELECT sum(a) as sum_a, b FROM c GROUP BY b;
SELECT max(sum_a) FROM c_aggregate;
Not as fast or dynamic as a subselect, but should solve your immediate
problem.
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mathijs Brands | 2001-04-18 18:12:21 | Re: maybe Offtopic : PostgreSQL & PHP ? |
| Previous Message | Josh Berkus | 2001-04-18 15:37:59 | Re: maybe Offtopic : PostgreSQL & PHP ? |