Bluehost.com Web Hosting $6.95

Creating a table of rankings

This is a discussion on Creating a table of rankings within the MySQL Database forums, part of the Database Forums category; In my pilot logbook I fly with lots of different people on different occasions. I like, because I'm a ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-21-2007
Robin
 
Posts: n/a
Default Creating a table of rankings

In my pilot logbook I fly with lots of different people on different
occasions. I like, because I'm a bit sad, to produce a list of who
I've flown the most with.

Currently I do this with a fairly convoluted method involving creating
a temporary table with an auto incrementing column so I get an output
a bit like this:

Ranking | Name | Hours
1 | Smith | 145
2 | Jones | 135

etc.

Is there a way of doing this without having to create and drop
temporary tables or is that why temp tables exist in the first place?

Reply With Quote
  #2 (permalink)  
Old 04-21-2007
strawberry
 
Posts: n/a
Default Re: Creating a table of rankings

On Apr 21, 4:27 pm, Robin <creffi...@gmail.com> wrote:
> In my pilot logbook I fly with lots of different people on different
> occasions. I like, because I'm a bit sad, to produce a list of who
> I've flown the most with.
>
> Currently I do this with a fairly convoluted method involving creating
> a temporary table with an auto incrementing column so I get an output
> a bit like this:
>
> Ranking | Name | Hours
> 1 | Smith | 145
> 2 | Jones | 135
>
> etc.
>
> Is there a way of doing this without having to create and drop
> temporary tables or is that why temp tables exist in the first place?


To get an intelligent answer (or indeed, any answer at all) I think
you need to tell us a bit more about the structure of your database
and how you intend to use/present this information.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0