Re: Problem with query
От | Michael Nolan |
---|---|
Тема | Re: Problem with query |
Дата | |
Msg-id | CAOzAquKTanKKONL0NXO=0SneQfG7W+tspcJHJTA7KUtmbNC-Aw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Problem with query (Chris Curvey <chris@chriscurvey.com>) |
Список | pgsql-general |
On 4/11/14, Chris Curvey <chris@chriscurvey.com> wrote: > On Fri, Apr 11, 2014 at 1:50 PM, Susan Cassidy < > susan.cassidy@decisionsciencescorp.com> wrote: > >> I have a query with several joins, where I am searching for specific data >> in certain columns. Have you tried running each of your joins separately to see if there are row values common to both tables, ie: select count(*) from scenes s left outer join scene_thing_instances si on s.scene_id = si.scene_id then select count(*) from scene_thing_instances si left outer join scene_things st on si.scene_thing_id = st.scene_thing_id etc. I find when building complex queries (I've written some that ran over 100 lines and involved a dozen or more joined tables), I need to build them up, testing them as I build. -- Mike Nolan
В списке pgsql-general по дате отправления: