it's my delete query delete from test where id in (select id from test where id not in (select id from test group by name order by id asc)) this query not work but in this query select id from test where id not in (select id from test group by name order by id asc) work correct. plz tell me what the problem in delete query............
I don't even see how your select works given that you are trying to select the id from a table where the id doesn't appear in the table. Now if your query was select id from tableA where id not in (select id from tableB) that would make sense - and in your subquery you don't need to group, order etc - just make sure the indexes are right. So your delete could be delete from tableA where id not in (select id from tableB) but backup first!
@PoPSiCLe because there is also people who use "comic sans serif" to write articles and news and people lazy at typing [ code ][ /code ].
If you are savvy enough to know about bbcode. Given the query this guy was trying to hack together I'm wouldn't assume he knew.
Well, granted, a site like this might consider adding a separate [ code ]-button to the main menu on the editor, but still...