deleting data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orajit
    New Member
    • Nov 2007
    • 75

    #1

    deleting data

    I have two tables say EmpA and EmpB


    I wanted to delete data from EmpA That data there in EmpB

    can u do that ..

    Thanks in advance .
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    1.) Always back up before deleting.
    2.) How are you determining that data in A is in B? i.e What are you using to identify the data?

    Comment

    • vijayg14
      New Member
      • Jul 2008
      • 2

      #3
      Hi,

      for this use this query



      delete from table a where <condition>

      Comment

      • amitpatel66
        Recognized Expert Top Contributor
        • Mar 2007
        • 2358

        #4
        Yes you can do that.....

        Hint: Use DELETE statement and IN operator in the WHERE condition

        Comment

        Working...