Página 1 de 1

mysql subquery problem

Publicado: Lun Sep 10, 2012 9:47 pm
por Roberto
there is a problem when we use a subquery like below:
product -> id_prod, code, description
supplier -> id_prod, id_supplier
SELECT p.description,
(SELECT s.id_supplier
FROM supplier as s
WHERE s.id_supplier = p.id_supplier)
FROM product as p
it works from workbench but don't from xailer!!!!!

mysql subquery problem

Publicado: Mar Sep 11, 2012 11:53 am
por ignacio
Roberto escribió el lun, 10 septiembre 2012 21:47there is a problem when we use a subquery like below:
product -> id_prod, code, description
supplier -> id_prod, id_supplier
SELECT p.description,
(SELECT s.id_supplier
FROM supplier as s
WHERE s.id_supplier = p.id_supplier)
FROM product as p
it works from workbench but don't from xailer!!!!!
Could you check if QueryArray() makes the job correctly. TIA.
Regards,