Check to see if customer exist in second table. Help needs withpsql
В списке pgsql-general по дате отправления:
| От | Rv02 |
|---|---|
| Тема | Check to see if customer exist in second table. Help needs withpsql |
| Дата | |
| Msg-id | 1529263171492-0.post@n3.nabble.com обсуждение исходный текст |
| Ответы |
Re: Check to see if customer exist in second table. Help needs withpsql
|
| Список | pgsql-general |
psql I have two tables , table A and Table b. Table A has list of about 60000 customers ID with all their details and Table B had customer is and age for over 500000 rows of customers. I need a query that will take a customer from table a and if that customer exists in table B then insert a yes in a new column in table a. Basically what I want to end up with in table a , is all the customers in this table and if they exist in table B then yes in a column. I.e the final result will be 60000 customers and additional column at the end with yes or no depending if they exist in table B. Any help is appreciate it -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера