Need a VIEW without SUB-SELECT

From: Bhuvan A <bhuvansql(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Need a VIEW without SUB-SELECT
Date: 2001-10-19 06:01:45
Message-ID: Pine.LNX.4.20.0110191129420.20805-100000@Larry.bks
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bhuvan A 2001-10-19 06:20:04 Re: COUNT func
Previous Message Aasmund Midttun Godal 2001-10-19 03:01:49 oid's in views.