I have a little Problem with sql again 🙂
In this example I have to show the max ekpreis in one row and the min ekpreis in a second row. But with all the other data aswell. I tried select max(ekpreis) but that didnt worked.

I tried this:
SELECT ARTBEZ, max(ekpreis)
FROM artst
Group by artbez;
But this just returns all the rows and not just the max row.
You have to try with the following query
SELECT * FROM artst Where EKPREIS = (SELECT MAX(EKPREIS) FROM artst) Or EKPREIS = (SELECT MIN(EKPREIS) FROM artst)
It is retrieve only two row with Maximum of EKPREIS And Minimum of EKPREIS