I want to get the employee numbers and start dates of all the employees with start dates equal to the earliest date.
I know this is wrong. But just writing to show what I want.
SELECT start_date, employee_no
FROM [employees]
WHERE (start_date = MIN(start_date))
You were close!
SELECT start_date, employee_no
FROM [employees]
WHERE start_date = (SELECT MIN(start_date) FROM employees)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With