Hi I need some help here.
I have a table A containing start_date and end_date, and a table B containing list of dates. What I want to do is to check between the start_date and end_date of table A, does it contain any of the dates listed in table B. If yes, count the number of dates in B that meet the criteria, else return 0
start_date end_date Count the date 20/4/2018 23/4/2018 2 21/4/2018 25/4/2018 3 20/4/2018 21/4/2018 1 25/4/2018 28/4/2018 0
date 20/3/2018 27/3/2018 30/3/2018 21/4/2018 22/4/2018 24/4/2018
How can I get this?
Please help. Thanks!