Results 1 to 3 of 3

Thread: Getting the top / highset 10

  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting the top / highset 10

    How would i go about getting the top 10 entries for a certain month?
    eg. there are a hundred projects in my database (msql) and i would like to see which 10 were viewed the most during the last month...

    any help would be appreciated

    thx

  2. #2
    Join Date
    Feb 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    mysql or mssql ?

    doesnt matter, it`s the same syntax here...

    select * from tablename limit 10

    first 10

    you can use order by, too

  3. #3
    Join Date
    Feb 2006
    Posts
    13
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    In your database have a count column that increments when people visit the project page.

Bookmarks

Posting Permissions

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