Re: create view
От | Ron |
---|---|
Тема | Re: create view |
Дата | |
Msg-id | d9616945-c460-90b2-99c8-f7c239f70871@gmail.com обсуждение исходный текст |
Ответ на | create view (Pepe TD Vo <pepevo@yahoo.com>) |
Список | pgsql-admin |
On 9/17/19 1:13 PM, Pepe TD Vo wrote:
[snip]
When you have a weird error on a long or statement, simplify, simplify, simplify.
Make a simple test view that's just on "ECISDRDM"."APPLICATION_CDIM". Then make another test view that's just a join between those two tables. Simplify everything as much as possible be only selecting a few columns, etc.
That might show where your error is.
[snip]Hello experts,I need to create view from schema's tables and when I run I get an error:CREATE or REPLACE view "ECISDRDM"."BENE_VW" (receipt_number,service_center,
ERROR: column ap.application_id does not existLINE 50: INNER JOIN "ECISDRDM"."BNFT_CURR_FACT" bcf ON (ap.applicatio...^SQL state: 42703Character: 864
[snip]
I do a simple select query of application_cdim table, the result is fine:Select *FROM "ECISDRDM"."APPLICATION_CDIM" ap
When you have a weird error on a long or statement, simplify, simplify, simplify.
Make a simple test view that's just on "ECISDRDM"."APPLICATION_CDIM". Then make another test view that's just a join between those two tables. Simplify everything as much as possible be only selecting a few columns, etc.
That might show where your error is.
--
Angular momentum makes the world go 'round.
Angular momentum makes the world go 'round.
В списке pgsql-admin по дате отправления: