Results 1 to 7 of 7

Thread: Mysql in cod2 query question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Thx for the help

    It was not exactly what i wanted (asc/desc and double-limit hurtz my brainz), but this is what i actually wanted:

    Code:
    SELECT * from (SELECT * FROM (SELECT * FROM checkpoint_statistics WHERE cp_id = 1081 ORDER BY time_played ASC LIMIT 10) AS tmp ORDER BY time_played DESC) as tmp2 LIMIT 1
    Edit: this also works and is less code:

    Code:
     SELECT * FROM checkpoint_statistics WHERE cp_id = 1081 ORDER BY time_played ASC LIMIT 9,1
    Last edited by IzNoGoD; 11th January 2013 at 11:24.

  2. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (11th January 2013)

Posting Permissions

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