I need to select all employees with a contracted date prior to the year 2000. How can I put this condition in the Where clause?
SELECT nome_funcionario FROM funcionario WHERE data_contratacao...
I need to select all employees with a contracted date prior to the year 2000. How can I put this condition in the Where clause?
SELECT nome_funcionario FROM funcionario WHERE data_contratacao...
I would do it differently, using the YEAR()
function.
SELECT nome_funcionario FROM funcionario WHERE YEAR(data_contratacao) < 2000
SELECT nome_funcionario FROM funcionario WHERE data_contratacao < '2000-01-01'