From: Bhuvan A <bhuvansql@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Need a VIEW without SUB-SELECT
Date: Fri, 19 Oct 2001 11:31:45 +0530 (IST)
Message-ID: <Pine.LNX.4.20.0110191129420.20805-100000@Larry.bks> (raw)
Hi all,
Kindly apologize any inconvenience!
I have 2 tables status and po_status like..
CREATE TABLE status (
status_id int primary key,
status_name varchar(15)
);
CREATE TABLE po_status (
po_no varchar(15),
approval_status_id int references status(status_id),
acknowledgement_status_id int references status(status_id)
);
Right..
Now, how can i have a VIEW on po_status table to get
'approval_status_name' and 'acknowledgement_status_name' instead of
approval_status_id and acknowledgement_status_id?
I am sure that a VIEW with SUB-SELECT will solve everything. But my QB
won't support SUB-SELECT and i wasn't ready to redesign my QB, which
is a time consuming process.
How can i accompolish this ????
Thankx in advance.
======================================================================
Kime's Law for the Reward of Meekness:
Turning the other cheek merely ensures two bruised cheeks
======================================================================
Regards,
Bhuvaneswar.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: bhuvansql@yahoo.com
Subject: Re: Need a VIEW without SUB-SELECT
In-Reply-To: <Pine.LNX.4.20.0110191129420.20805-100000@Larry.bks>
References: <Pine.LNX.4.20.0110191129420.20805-100000@Larry.bks>
* 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