I have written a SQL query:
select sum(amount) as totalAmount
from employee_account
where id = 29967
and repayment_status in ("MARKEDPAID", "PAID", "PENDING", "OVERDUE");
This query is working fine in MySQL console. I have to execute this query in Java using
String query = ""
int id = 123
Connection connection = // connection code
Statement statement = connection.createStatement()
ResultSet resultSet = statement.executeQuery(query)
I write the
query = "select sum(amount) as totalAmount from employee_account where id = ${id} and repayment_status in ()"
How do I pass "MARKEDPAID", "PAID", "PENDING", "OVERDUE"
in above String query?