When I try to add %code% it returns error, but when I shoot,% %code% works normal. Follows the error:
%code%
Script:
%pre%
I want to return this result:
%pre%
I followed this site:
link
Database:
TB_PEDIDO:
TB_ITEM_PEDIDO_PRODUTO:
TB_ITEM_PEDIDO_PRODUTO_INGREDIENTE:
TB_PRODUTO:
TB_PRODUTOS_INGREDIENTES:
TB_INGREDIENTES:
______ ___ azszpr34739
The Best Solution is to process it in the application, but if there is a reason to solve the SELECT, I suggest you use a sub-select the number of items in each product_no.
See if it works with the solution below:
%pre%
______ ___ azszpr34733
Fields in aggregating functions as %code% % %code% %%% or co_de %code% should stay out of the clause %code% .
Try the following:
%pre%
___