User 8a7878ec6d
22-06-2015 19:08:06
Hi,
In mySQL I have defined the following view, basically pulling together data from different batches of the same compound/structure, in order to be able to summarize the data automatically:
CREATE
ALGORITHM = UNDEFINED
DEFINER = `evehom`@`%`
SQL SECURITY DEFINER
VIEW `MTH1_Summary` AS
SELECT
`B`.`Structure_ID` AS `Structure_ID`,
`B`.`Compound_ID` AS `Compound_ID`,
`B`.`Batch_ID` AS `Batch_ID`,
`E`.`Target_ID` AS `Target_ID`,
`E`.`IC50` AS `IC50`
FROM
(`BATCHES` `B`
LEFT JOIN `ENZYME_DOSE_RESPONSE` `E` ON ((`E`.`Batch_ID` = `B`.`Batch_ID`)))
In mySQL Workbench this gives the desired result:
Structure_ID | Compound_ID | Batch_ID | Target_ID | IC50 |
TH000588 | TH000588 | H05001 | NULL | NULL |
TH000588 | TH000588C | BK039101C | hMTH1 | 2.93E-09 |
TH000588 | TH000588C | BK039001C | NULL | NULL |
TH000588 | TH000588C | BI036401 | NULL | NULL |
TH000588 | TH000588C | J11101C | NULL | NULL |
TH000588 | TH000588C | BK230006 | NULL | NULL |
TH000588 | TH000588T | F19502T | NULL | NULL |
In IJC 15.5.4 the View shows the following mySQL code:
select `B`.`Structure_ID` AS `Structure_ID`,`B`.`Compound_ID` AS `Compound_ID`,`B`.`Batch_ID` AS `Batch_ID`,`E`.`Target_ID` AS `Target_ID`,`E`.`IC50` AS `IC50` from (`prototype`.`BATCHES` `B` left join `prototype`.`ENZYME_DOSE_RESPONSE` `E` on((`E`.`Batch_ID` = `B`.`Batch_ID`)))
This gives the following Grid View:
Structure_ID | Compound ID | Batch ID | Target ID | IC50 |
TH000588 | TH000588T | F19502T | ||
TH000588 | TH000588T | F19502T | ||
TH000588 | TH000588T | F19502T | ||
TH000588 | TH000588T | F19502T | ||
TH000588 | TH000588T | F19502T | ||
TH000588 | TH000588T | F19502T | ||
TH000588 | TH000588T | F19502T |
Can you see what is wrong, given that this works correctly on the mySQL server side?
Thanks,
Evert