Hi,
I am running following query on Infobright.
SELECT `pt`.`parent_id` AS `c0`, `dim_subscriptions`.`value` AS `c1`, `acc_g`.`type` AS `c2`, `fd`.`year_num`
AS `c3`, `fd`.`month_num` AS `c4`, SUM(`fd`.`usage_count`) AS `m0` FROM `sprotocols_page_type_view` AS `pt`,
`fact_details_degenerated` AS `fd`, `dim_subscriptions` AS `dim_subscriptions`, `sprotocols_account_parent_view`
AS `acc_g` WHERE `fd`.`page_type` = `pt`.`child_id` AND `pt`.`parent_id` = 115 AND `fd`.`subscription` = `dim_subscriptions`.`value`
AND `dim_subscriptions`.`value` = 'subscribed' AND `fd`.`account_id` = `acc_g`.`child_id` AND `acc_g`.`type` = 'Institution'
GROUP BY c0, c1, c2, c3, c4
This is giving following error.
The query includes syntax that is not supported by the Infobright Optimizer. Either restructure the query with supported syntax, or enable the MySQL Query Path in the brighthouse.ini file to execute the query with reduced performance.
How can i improve this query?
Note: table names starting with dim are dimension tables.
table names starting ending with view are database views on dimension tables.
table name starting with fact is fact_table.

