create index - Mailing list pgsql-sql

From ernest_it@hotmail.com (ernest_it@hotmail.com)
Subject create index
Date
Msg-id 10d6eb7c.0211182244.ec57100@posting.google.com
Whole thread Raw
List pgsql-sql
i don't know how to create the index about the following statement.


SELECT b.screen_id AS screen_id, b.name AS screen_name
FROM tbl_showlog AS a CROSS JOIN
tbl_screen AS b CROSS JOIN
tbl_company AS c
WHERE a.screen_id = b.screen_id
AND b.company_id = c.company_id
AND c.company_id = 1
AND c.is_active = 1
GROUP BY b.screen_id, b.name
ORDER BY b.screen_id

many thx!


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: index usage for query
Next
From: Ellen Cyran
Date:
Subject: slow group by query