How can I query this in SQL?
SELECT s2.id, s2.name, substring(s2.name, 16, 5) AS Standortgruppe FROM setnames AS s2 WHERE s2.name LIKE '%Standortgruppe%' AND ( SELECT Standortgruppe FROM setnames AS s2 INNER JOIN cashpoints AS cp ON Standortgruppe = cp.location )
So I would like the value that comes from the location group to be compared again with the values from cashpoints, location.
does not work, but thank you
have already found the error, nevertheless thank you