I am getting deeper into using GG and running into limitations. I am trying to generate a datagrid for this query:
select `c`.`ID_Contact` AS `ID_Contact`,
if(
(`c`.`ID_Contact` = ''),
'',
concat(`c`.`Name_First`, ' ', `c`.`Name_Last`)
) AS `full_name`,
(
select `appt_Appts`.`Appt_Date`
from `appt_Appts`
where (`appt_Appts`.`fk_taskID` = `t`.`id_Task`)
limit 1
) AS `appt_date`,
`t`.`Item` AS `Item`,
`t`.`Service Type Requested` AS `service_type_requested`,
`t`.`lead_tech_dsp` AS `lead_tech_dsp`,
`t`.`lead_labor_crew_dsp` AS `lead_labor_crew_dsp`,
`c`.`Primary_Street1` AS `Primary_Street1`,
`c`.`Primary_Postal_Code1` AS `Primary_Postal_Code1`,
`t`.`Date_Created` AS `Date_Created`,
`t`.`AccountName_Created` AS `AccountName_Created`,
`t`.`id_Task` AS `id_Task`
from (
`fsc_TSK_Tasks` `t`
left join `fsc_CON_Contacts` `c` on((`t`.`id_contact` = `c`.`ID_Contact`))
)
where (`t`.`Category` = 'Lead Sheet')
order by `t`.`id_Task`
GC seem to handle static TABLES just fine but SUB-SELECTS are problematic. The datagrid generates ERRORS or the options do not all work because GC does not see “appt_date” in the target table.
I tried creating a MySQL VIEW with this query and use that, but the load performance is horrible in GC. In my MySQL client (Sequel Pro - MAC). It is lightning fast. I am only viewing 50 rows. There are over 11K records in the view.
I need to know if there is a work around, otherwise I might not be able to continue with GC. This is one of many instances where this might come into play. I need make sure I am using the proper app to get the job done.
Thanks in advance for any insight here…
Don