Hi, i have a table like
entryid, roomid
1 1
2 55
3 1
4 12
5 1
6 44
7 1
8 3
9 1
now I would like to delete ALL entries where roomid = 1 and keep the latest 3 from roomid = 1 left (best with just one command)
so finaly entryid: 1 & 3 came deleted and entryid 6, 7, 9 keeps staying (for sure all other roomid will still stay)
EDIT: Thanks for help. Bellow i Added my own Solution, for everyone interested
I started a new Question how to bring that into ONE command. You may help me there. Thanks