Código SQL [-] select a.codigo, a.numero_cv, a.tipo_transaccion from tb_compras_ventas a where iif(:cod_cliente is null,1,iif(:cod_cliente=a.ref_cliente,1,0))=1
select a.codigo, a.numero_cv, a.tipo_transaccion from tb_compras_ventas a where iif(:cod_cliente is null,1,iif(:cod_cliente=a.ref_cliente,1,0))=1