I have the Table A:
-------------------
* fechaA *
-------------------
* 2017-09-01 *
* 2017-09-02 *
* 2017-09-03 *
* 2017-09-04 *
* 2017-09-05 *
* 2017-09-06 *
* 2017-09-07 *
* 2017-09-08 *
* 2017-09-09 *
* 2017-09-10 *
-------------------
And the Table B
-------------------
* fechaB *
-------------------
* 2017-09-01 *
* 2017-09-06 *
* 2017-09-10 *
-------------------
And I have the following query:
SELECT fechaA
FROM TABLA_A
WHERE fechaA NOT IN (SELECT FechaB FROM TABLA_B)
What is the difference of A in B
The Result is:
-------------------
* Resultado *
-------------------
* 2017-09-02 *
* 2017-09-03 *
* 2017-09-04 *
* 2017-09-05 *
* 2017-09-07 *
* 2017-09-08 *
* 2017-09-09 *
-------------------
The problem is that the query is longer than the one I show and I would like to make it more efficient with a
join
, the fact is that I do not know how to do it. I appreciate your help.