From: trebischt@freemail.hu
To: pgsql-sql@postgresql.org
Subject: To query many tables.
Date: 11 Sep 2001 11:47:03 -0700
Message-ID: <f391b602.0109111047.4735563b@posting.google.com> (raw)
Hi,
I have to query many tables (about 18 tables)
from a database to field a riport in HTML.
I can make the query and it works (I think), but it's a bit strange to
me.
The query looks like this:
select * from table1 f, table2 s, table3 t, table4 fo, table5 fi,
table6 si, table 7 se, table8 e, table9 n, table10 ten, table 11 el,
table 12 tw ...
where f.id=s.id
and f.id=t.id
and f.id=fo.id
and f.id=fi.id
and so on...
Is this the right way, or are there any better solution?
How do the professionals make that big queries?
Thanks in advance!
Regards,
Trebb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: trebischt@freemail.hu
Subject: Re: To query many tables.
In-Reply-To: <f391b602.0109111047.4735563b@posting.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox