MySQL Forums
Forum List  »  Newbie

Counting a number of dates in one column below another date in another column
Posted by: Ben Eldridge
Date: October 14, 2020 07:34AM

Hi all,

I am new to SQL and loving the challenge.

I am writing a script at the moment but am struggling with some of the coding. What I want to do is count a number of dates (task dates) in one column from table A that have dates before the contract end date in table B.

eg
Table A (Task dates)
01/01/01
01/01/01
03/01/01

Table B (contract end date)
02/01/01

Result = 2 in a new column
and a % result in a second new column

Any help on this would be amazing!

Thanks,
Ben

Options: ReplyQuote


Subject
Written By
Posted
Counting a number of dates in one column below another date in another column
October 14, 2020 07:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.