Results 1 to 4 of 4
  1. #1
    Join Date
    May 2012
    Posts
    7

    Unanswered: PostgresSQL Query Equivalent--Window Function

    How can I partition by attributes in MySQL? Ie:
    For a set of grades, I'd like to return the ranked grades on a student basis.

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    mysql does not support window functions
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    May 2012
    Posts
    7
    is there any workaround?

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    yes... very complex sql that i wouldn't even attempt

    i'm not even sure i understand what "ranked grades on a student basis" means

    can't you do this in your application language?
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Tags for this Thread

Posting Permissions

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