I have a table:
- number
- employee
- date (skip)
I need to find out in the request the numbers of the last pass for each employee, I write the request: select max(data),nomer from propuski group by nomer ...
(works). And now I need to use this data in another request, just write type select ... where nomer in (этот_запрос)
does not work, because This query returns 2 columns.
- How can I refer to exactly the
nomer
column - And is it possible in the first query to display only a list of numbers? (i.e., I’m not interested in dates here, but I’ll need numbers for each employee)