I have a table named technical
where can I place the WHERE
clause for my search function?
I want to insert the WHERE t1.blklot LIKE '01/01'
- this line will display only those blklot = 01/01
SELECT *
FROM technical t1
JOIN (
SELECT blklot, MAX(date_update) AS MAXDATE
FROM technical
GROUP BY blklot
) t2 ON t1.blklot = t2.blklot
AND t1.date_update = t2.MAXDATE
ORDER BY t1.blklot