I
I
id56346gera2018-05-07 18:44:37
MySQL
id56346gera, 2018-05-07 18:44:37

SQL Is it possible to specify in the query, so that I can get all the employees who have less than 14 days left before the start of the vacation date before today's date?

Is it possible to specify in the request, so that I can display all the employees who have less than 14 days left before the start of the vacation date before today's date
? Can be an example.
**There is a Table in the database - "Vacation" and it has a field date of vacation.**

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Tsvetkov, 2018-05-07
@id56346gera

SELECT 
  * 
FROM 
  furlough 
WHERE 
  date BETWEEN NOW() AND DATE_ADD(NOW(), INTERVAL 14 DAY);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question