Reg: Sql Join

Поиск
Список
Период
Сортировка
От CrashBandi
Тема Reg: Sql Join
Дата
Msg-id CAAvgTTT02zxdRzfcFiq+V-zDQzcOUNrsQGSLNsi2Xc02kuygKg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Reg: Sql Join  (David G Johnston <david.g.johnston@gmail.com>)
Re: Reg: Sql Join  (Oliver d'Azevedo Christina <oliveiros.cristina@gmail.com>)
Re: Reg: Sql Join  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Список pgsql-sql
Hi,

I am having the following question. I am not sure how to approach it. Please help!

table A
namecol1col2col3col4
apple100111111APL
orange200222223ORG
carrot300333333CRT


table B
custom_namevalueobj_typeobj_id
appleaFR100
orangeoFR200
carrotcVG300
appledFR11111
orangeeVG22222
carrotfUC33333
applehVG1
orangeoFR3
carrotcVG3

when obj_type ='FR' then join on col1
When obj_type='VG' then join on col2
When obj_type='UC' then join on col2

Thanks In advance,
CB
 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: Update columns in the same table in a deferred constraint trigger
Следующее
От: David G Johnston
Дата:
Сообщение: Re: Reg: Sql Join