Re: SQL question for SQL Gurus - Mailing list pgsql-general

From Darren Ferguson
Subject Re: SQL question for SQL Gurus
Date
Msg-id Pine.LNX.4.10.10202181550460.3176-100000@thread.crystalballinc.com
Whole thread Raw
In response to SQL question for SQL Gurus  ("database beginner" <ableafs1@hotmail.com>)
List pgsql-general
Well without knowing the table set up here is a shot in the dark

You would have the employees tabel and the employees table would have a
type field. This type field would typically be supervisior,
employee,manager etc

You could then use that type to populate the view or you could leave it as
is with the type field and just query from that
Hope this helps

Darren


On Tue, 12 Feb 2002, database beginner wrote:

> Hello SQL experts and gurus, I am currently working on an employee database
> in DB2 and I need to create a VIEW to augment my table with one column.
> Basically this is a simple employee database and the new column should
> contain the word 'MANAGER' for employees who manage someone and 'EMPLOYEES'
> for employees who manage no one.
>
> is creating a view like this even possible? if so does anyone have any ideas
> on how to create it? thanks.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>


pgsql-general by date:

Previous
From: Serkan Bektaş
Date:
Subject: Re: MDB 2 POSTGRESQL MIGRATION PROBLEM
Next
From: Shane Wright
Date:
Subject: Re: IN optimization in 7.2 ?????