hola
tengo dos consultas con la misma cantidad de columnas, pero no puedo (no se) como unir para que se muestre unificada… leo y leo… pero nada, no me vale UNION ALL… o no se como utilizarlo… ayuda por favor…
**(1)**
SELECT T0."CardCode" AS "Codigo", T0."CardName", T1."DocEntry" AS "ID", T0."U_SII_NUMFAC" AS "FACTURA", T0."DocDate" AS "Fecha", T1."ItemCode", T1."Dscription", T1."Quantity", T1."PriceBefDi" AS "Precio", T1."VatSum" AS "IVA", T1."GPBefDisc", T1."DiscPrcnt" AS "Desc.", T1."Price" AS "Precio Desc.", T1."LineTotal", T1."PriceAfVAT" AS "Precio dp Desc.", T0."DocTotal"
FROM OINV T0 INNER JOIN INV1 T1 ON T0."DocEntry" = T1."DocEntry"
WHERE T0."CardCode" =[%0]
**(2)**
SELECT T0."CardCode" AS "Codigo", T0."CardName", T1."DocEntry" AS "ID", T0."U_SII_NUMFAC" AS "FACTURA", T0."DocDate" AS "Fecha", T1."ItemCode", T1."Dscription", T1."Quantity", T1."PriceBefDi" AS "Precio", T1."VatSum" AS "IVA", T1."GPBefDisc", T1."DiscPrcnt" AS "Desc:", T1."Price", T1."LineTotal", T1."PriceAfVAT" AS "Precio Desc.", T0."DocTotal"
FROM ORIN T0 INNER JOIN RIN1 T1 ON T0."DocEntry" = T1."DocEntry"
WHERE T0."CardCode" =[%0]