Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2007
    Posts
    12

    Unanswered: Delete Query - Deleting the latest entries

    Say I have a table with sales entries.

    How do I write a query to delete the most recent entries?

  2. #2
    Join Date
    Oct 2007
    Posts
    12
    nevermind, I figured it out.

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    What was your solution?
    George
    Home | Blog

  4. #4
    Join Date
    Oct 2007
    Posts
    12
    Code:
    DELETE table.field
    FROM table
    WHERE table.field = (SELECT MAX(field) FROM table)

Posting Permissions

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