Hint for a query

Поиск
Список
Период
Сортировка
От Efrain Lopez
Тема Hint for a query
Дата
Msg-id 322305A5-94D7-443E-8955-9784261333EF@cabsagt.com
обсуждение исходный текст
Ответы Re: Hint for a query  (David Johnston <polobo@yahoo.com>)
Re: Hint for a query  (Uwe Schroeder <uwe@oss4u.com>)
Список 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 по дате отправления:

Предыдущее
От: Naoko Reeves
Дата:
Сообщение: ERROR from pg_restore - From OS X to Ubuntu
Следующее
От: David Johnston
Дата:
Сообщение: Re: Hint for a query