Search Postgresql Archives

ERROR: missing FROM-clause entry for table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I do not understand why I am getting this error.
I have joined the table correctly, is this not sufficient?

forge=> select * FROM generate_series('2016-01-22', '2017-12-31', '1 day'::interval) AS day
LEFT JOIN (
                            select *, generate_series(c.start_time, c.end_time, '2 week'::interval) meeting
                            from call_schedule c
                            join call_durations cds on c.duration_id=cds.id
                            where call_frequency_id = 5
                        ) c on ((day, '1 day'::interval) OVERLAPS (meeting, cds.duration * '1s'::interval));
ERROR:  missing FROM-clause entry for table "cds"
LINE 7: ...c on ((day, '1 day'::interval) OVERLAPS (meeting, cds.durati...
                        


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux