This selected one of each colour, showing the highest id of each, where the website was called Codehaven.
1 2 3 |
SELECT * FROM (SELECT * FROM table1 WHERE `website` LIKE '%Codehaven%' ORDER BY id DESC) AS t GROUP BY colour |
This selected one of each colour, showing the highest id of each, where the website was called Codehaven.
1 2 3 |
SELECT * FROM (SELECT * FROM table1 WHERE `website` LIKE '%Codehaven%' ORDER BY id DESC) AS t GROUP BY colour |
© 2022 CODEHAVEN