find the number of row for each tables - Mailing list pgsql-novice

From Patrick Coulombe
Subject find the number of row for each tables
Date
Msg-id 006901bfd5ac$cf9c4740$5116c918@videotron.ca
Whole thread Raw
Responses Re: find the number of row for each tables
Re: find the number of row for each tables
List pgsql-novice
hi,
here's the question : if I do this query on my database :

SELECT * from friends, strangers WHERE friends.f_id = strangers.s_id AND
friends.categorie = 1
----------
88 rows

and I need to do this query to know how many rows just for my table friends
(not both table) :

SELECT * from friends WHERE friends.f_id = strangers.s_id AND
friends.categorie = 1
----------
80 rows


Can I just do 1 query and be able to find the number of row for each tables?
Hope to be understand...

Patrick



pgsql-novice by date:

Previous
From: "D. Duccini"
Date:
Subject: Re: SHOW , DESCRIBE, oh what's it called...
Next
From: "Anthony E. Greene"
Date:
Subject: Re: SHOW , DESCRIBE, oh what's it called...