DELETE FROM table WHERE id NOT IN
(SELECT MAX(id) FROM table GROUP BY date);
More Related Contents:
- Split data of columns in (if of is not null data of is null) [closed]
- SQL Sum of Field [closed]
- SQL Data models
- How to request a random row in SQL?
- What is the difference between UNION and UNION ALL?
- Select First Row of Every Group in sql [duplicate]
- Comparing Dates in Oracle SQL
- SQL Query to get aggregated result in comma separators along with group by column in SQL Server
- How to use (install) dblink in PostgreSQL?
- How to design a database for User Defined Fields?
- What is the difference between function and procedure in PL/SQL?
- How to check the maximum number of allowed connections to an Oracle database?
- Count Number of Consecutive Occurrence of values in Table
- get next sequence value from database using hibernate
- New line in Sql Query
- Is there a SELECT … INTO OUTFILE equivalent in SQL Server Management Studio?
- How can I compare time in SQL Server?
- How to do IF NOT EXISTS in SQLite
- SELECT from table with Varying IN list in WHERE clause
- Access to Result sets from within Stored procedures Transact-SQL SQL Server
- Does Postgres support nested or autonomous transactions?
- Why is iterating through a large Django QuerySet consuming massive amounts of memory?
- alternatives to REPLACE on a text or ntext datatype
- Update a column of a table with a column of another table in PostgreSQL
- ORA-00972 identifier is too long alias column name
- Check if NULL exists in Postgres array
- SQL Server equivalent of WM_CONCAT function [duplicate]
- Distributed transaction error?
- Determine what user created objects in SQL Server
- Oracle: ‘= ANY()’ vs. ‘IN ()’