I searched and searched and canβt find the answer to this question, maybe I'm asking about it wrong.
I am querying an employee database.
I need to get the details based on the position identifier, however, there can be several records for this position identifier, since this organization has permanent employees and temporary employees who act against the same position.
So, in order to get the CURRENT owner of the position identifier, I need my query to get the SELECT FIRST record corresponding to the position line from TOP DOWN.
will it select the first matching record from above?
SELECT * WHERE `position_id`="00000000" LIMIT 1;
Thanks in advance.
mysql select limit
hammus
source share