From: Abdul Wahab Dahalan <wahab@mimos.my>
To: pgsql-sql@postgresql.org
Subject: SQl query
Date: Wed, 07 May 2003 16:20:21 +0800
Message-ID: <3EB8C1C5.4745E77E@mimos.my> (raw)
If I've a transport table like this:
transporttype | transportid
---------------+-------------
Lorry | 1037
Pickup | 1038
Lorry | 1040
Lorry | 1045
Pickup | 1046
Lorry | 1047
How do I make a query so that I get a result like
transporttype | #of transport
---------------+-------------
Lorry | 4
Pickup | 2
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: wahab@mimos.my
Subject: Re: SQl query
In-Reply-To: <3EB8C1C5.4745E77E@mimos.my>
* 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