-1
Next I need to make a query in the following conditions:
I need the table data
A
(Numero
,Ano
,vencimento
,Nome
);seeking the information of unwelcome in the column
Recebimento
tableB
;and I need the column
Numero
tableA
are not on the tableC
I did something like that, but it didn’t happen
SELECT *
FROM Table A
WHERE a.NUMERO > 100
AND a.ANO BETWEEN '01-JAN-2019' AND '01-JAN-2021' A.VENCIMENTO
AND A.NOME
AND b.RECEBIMENTO IS NULL IN (SELECT TABLE b)
AND a.NUMERO IS NOT IN (SELECT c.NUMERO
FROM TABLE C
WHERE c.ANO = a.ANO)
This "AND b.RECEIPT IS NULL IN (SELECT TABLE b) ", the "b. RECEIVING" will not find table B as it is not related in the main select may have been a typo
– Marcelo
What is the database? You can add the sql question of the tables?
– Augusto Vasques