Re: find the number of row for each tables

From: "Karl F(dot) Larsen" <k5di(at)zianet(dot)com>
To: Patrick Coulombe <11h11(at)videotron(dot)ca>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: find the number of row for each tables
Date: 2000-06-14 12:23:30
Message-ID: Pine.LNX.4.10.10006140622540.740-100000@cannac.ampr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


Try simply SELECT * from friends;

On Tue, 13 Jun 2000, Patrick Coulombe wrote:

> 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
>
>
>
>

Yours Truly,

- Karl F. Larsen, k5di(at)arrl(dot)net (505) 524-3303 -

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message ghaverla 2000-06-14 15:28:05 Re:
Previous Message Anthony E. Greene 2000-06-14 12:02:25 Re: SHOW , DESCRIBE, oh what's it called...