Hello
Is it possible to use a subselect in place of a tablename?
I have a chronoform form with 3 DBMulti-Record-Loader = 3 chained tables
The select below works, but it contains a subselect.
Without subselect I have seen only "buggy" results.
Thanks
Is it possible to use a subselect in place of a tablename?
I have a chronoform form with 3 DBMulti-Record-Loader = 3 chained tables
The select below works, but it contains a subselect.
SELECT `EtpInfo`.*, `CityInfo` ............ `EtpFans`.`cf_id` AS `EtpFans.cf_id`, .........`EtpFans`.`IdUser` AS `EtpFans.IdUser`, `EtpFans`.`IdEtp` AS `EtpFans.IdEtp`
FROM `#__etpinfo` AS `EtpInfo`
INNER JOIN `#__cityinfo` AS `CityInfo` ON ( EtpInfo.City_code = CityInfo.City_code ..... )
LEFT JOIN
( SELECT `#__etpfans`.* FROM `#__etpfans`
WHERE `#__etpfans`.`IdUser` = 'avalue' ) AS `EtpFans`
ON EtpInfo.cf_id=EtpFans.IdEtp
WHERE `EtpInfo`.`Country_code` = 'acode'Without subselect I have seen only "buggy" results.
Thanks
This topic is locked and no more replies can be posted.
