About 256,000 results
Open links in new tab
  1. sql - Delete duplicate rows keeping the first row - Stack Overflow

    It can be done by many ways in sql server the most simplest way to do so is: Insert the distinct rows from the duplicate rows table to new temporary table. Then delete all the data from …

  2. How to write a SQL DELETE statement with a SELECT statement in …

    Jul 9, 2013 · 48 Your second DELETE query was nearly correct. Just be sure to put the table name (or an alias) between DELETE and FROM to specify which table you are deleting from. …

  3. How can I delete using INNER JOIN with SQL Server?

    Sep 10, 2016 · I want to delete using INNER JOIN in SQL Server 2008. But I get this error: Msg 156, Level 15, State 1, Line 15 Incorrect syntax near the keyword 'INNER'. My code: DELETE …

  4. sql - delete all from table - Stack Overflow

    DELETE FROM table_name / DELETE FROM table_name WHERE 1=1 (is the same) Is a DML (Data Manipulation Language), you can delete all data. DML statements example: SELECT, …

  5. T-SQL: Selecting rows to delete via joins - Stack Overflow

    Feb 22, 2016 · T-SQL: Selecting rows to delete via joins Asked 16 years, 10 months ago Modified 4 years, 9 months ago Viewed 452k times

  6. SQL Delete based on condition in join - Stack Overflow

    Nov 4, 2010 · It is possible to delete records based on a satisfied condition with a join query? For instance, I have a linking table joining 3 records. The query I have at the moment deletes …

  7. How do I delete from multiple tables using INNER JOIN in SQL …

    Apr 24, 2009 · In MySQL you can use the syntax DELETE t1,t2 FROM table1 AS t1 INNER JOIN table2 t2 ... INNER JOIN table3 t3 ... How do I do the same thing in SQL Server?

  8. sql - How can I delete one of two perfectly identical rows? - Stack ...

    May 8, 2013 · The MySQL-specific LIMIT row_count option to DELETE tells the server the maximum number of rows to be deleted before control is returned to the client. This can be …

  9. How do I use cascade delete with SQL Server? - Stack Overflow

    To add "Cascade delete" to an existing foreign key in SQL Server Management Studio: First, select your Foreign Key, and open its "DROP And CREATE To.." in a new Query window. …

  10. Delete with "Join" in Oracle sql Query - Stack Overflow

    Oct 21, 2015 · 71 I am not deeply acquainted with Oracle Sql Queries, therefore I face a problem on deleting some rows from a table which must fulfill a constraint which includes fields of …