The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.databases.mysql
From: "strawberry" <zac.ca...@gmail.com>
Date: 26 Feb 2007 05:51:31 -0800
Local: Mon 26 Feb 2007 13:51
Subject: Re: Select X of of Y in Aggregation
On Feb 26, 4:39 am, "howa" <howac...@gmail.com> wrote:
> Consider a table like: Well here's a pretty substantial clue. Note that I've added the > user_id score > I want to select te average score of a user and will use sth > SELECT avg( score ) > but sometimes, i want to select the average, but dropping the lowest N > thanks primary key 'record_id' to the table to deal with ties. SELECT count( * ) rank, a.user_id, A.score You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||