Answers for "delete query in sql where condition"

SQL
0

delete rows in sql with condition

DELETE FROM table_name WHERE condition;

// E.g.
DELETE FROM Customer WHERE Age > 65;
DELETE FROM Customer WHERE Age > 65 AND Name = 'XYZ';
Posted by: Guest on April-16-2021
3

sql delete where in select

DELETE FROM tableA
WHERE ROWID IN 
  ( SELECT q.ROWID
    FROM tableA q
      INNER JOIN tableB u on (u.qlabel = q.entityrole AND u.fieldnum = q.fieldnum) 
    WHERE (LENGTH(q.memotext) NOT IN (8,9,10) OR q.memotext NOT LIKE '%/%/%')
      AND (u.FldFormat = 'Date'));
Posted by: Guest on October-29-2020

Code answers related to "delete query in sql where condition"

Code answers related to "SQL"

Browse Popular Code Answers by Language