Hint for a query - Mailing list pgsql-general

From Efrain Lopez
Subject Hint for a query
Date
Msg-id 322305A5-94D7-443E-8955-9784261333EF@cabsagt.com
Whole thread Raw
Responses Re: Hint for a query  (David Johnston <polobo@yahoo.com>)
Re: Hint for a query  (Uwe Schroeder <uwe@oss4u.com>)
List pgsql-general
I have this tables


Table: Contact
IdContact
First Name
Second Name
… other columns

Table: Employee
IdEmployee
IdContact, related to Contact table
… other columns

Table: Salesman
IdSaleman
IdEmployee, if salesman is employee, related to Employee table
IdContact, if salesman is not an employee, related to Contact table


I need a query

Id Salesman - Second name - First name

But I can't figure how to do it, can someone can give advise?

Thanks




pgsql-general by date:

Previous
From: Naoko Reeves
Date:
Subject: ERROR from pg_restore - From OS X to Ubuntu
Next
From: David Johnston
Date:
Subject: Re: Hint for a query