Question: I have a db with records like the following structure in the table;

```
 id,msg,date,fid 
 19 ,"start","2012-02",NULL
 20 ,"end","2012-03",19
 21 , "start",2012-04,NULL

```

I have and entire db set up like this where the fid in some cases matches the id of another record. Id like to return all records that have matching start and end dates and just the start date if it doesn't have a corresponding end date fid like below: 

```
19 ,"start","2012-02","end","2012-03"
21 , "start,"2012-04,"",NULL

```

Answer: 
Install JDK 1.8 and setup $JAVA\_HOME env variable and try to run the app again.

The error is due to lower version of JDK or JDK not installed.
Please make changes as per below to resolve this error.

> 
> Install **Java SDK** version: 14 or above.
> 
> 
> 

JDK Download link: <https://www.oracle.com/java/technologies/javase-jdk14-downloads.html>

> 
> In `gradle-wrapper.properties` please use grade version 6.3 or above.
> 
> 
> 

For e.g:`distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip`