Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Delete query (Access 2000)

    I have 2 tables orders and order details. I want to delete al the records from the table order details that are not contained in the table orders.How can i do it ?
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Delete query (Access 2000)

    You can us a query with the following SQL:

    DELETE [order details].*, orders.orderid
    FROM [order details] LEFT JOIN orders ON [order details].OrderID = orders.orderid
    WHERE orders.orderid Is Null

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •