1
select
cliente.codcliente,
cliente.dt_cadastro
from cliente
where cliente.codcliente in ('00000224', '00000170', '00061825', '01009838')
order by cliente.codcliente
select nfsaidc.codcliente,
nfsaidc.numnf,
nfsaidc.dt_emissao,
nfsaidc.totalnf
from nfsaidc
where NFSAIDC.CODCLIENTE in ('00000224', '00000170', '00061825', '01009838')
order by nfsaidc.numnf
Guys, I need to retouch only one row of each client with CODCLIENTE, DT_CADASTRO, NUMNF, DT_EMISSAO, TOTALNF columns. The result would be the date the customer was registered with the first purchase made. The result I need would be the image below:
I am using IBEXPERT with Firebird 2.1 but accept suggestions from other platforms.
You have to eliminate the zeroes on the left too ?
– rbz
No need!! The formwork that was wrong
– Charles Andrade
Charles, has your problem been solved? Is there anything else I can explain?
– rbz