Topic awaiting preservation: Mysql query |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: oslo, Norway |
posted 03-04-2002 13:23
i have two tables the first table is "user" and the other is "player" |
Paranoid (IV) Inmate From: Lebanon |
posted 03-04-2002 14:06
just use the SELECT ........ FROM .... ORDER BY points [ASC |
Paranoid (IV) Inmate From: oslo, Norway |
posted 03-04-2002 14:57
i don't think that will work, cause i need one value from user and one value from player |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 03-04-2002 16:09
Okay, your database needs to be put into 3rd normal form. Read about Normalized Databases. |
Paranoid (IV) Inmate From: oslo, Norway |
posted 03-05-2002 01:34
Thanks jiblet, |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 03-05-2002 16:45
I read about 5 articles on database normalization, and none of them really explained how to model many-to-many relationships. It wasn't until I actually got into the trenches that I realized how the junction table works, and how the methods I outlined above give you the ideal flexibility when working with many-to-many relationships. |
Paranoid (IV) Inmate From: Behind the Wheel |
posted 03-06-2002 16:57
I took a semester course at college on Relational Database design, and still, normalization was a more difficult thing to grasp... The actual "what a normalized db is" part isn't that hard... i found that converting a non-normalized db to 3nf was the most difficult to learn... |
Paranoid (IV) Inmate From: oslo, Norway |
posted 03-07-2002 00:47
Hi again, i have learn much about sql lately, but i still can do what i want to do. |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 03-07-2002 06:57
Well, that's a tough one indeed. There may be a way to accomplish that, but I am not aware of it. It would likely be some GROUPWISE function like ROWStoCOLUMNS() or LISTROWS(). code: $i = 0;
|
Obsessive-Compulsive (I) Inmate From: |
posted 03-15-2002 03:59
i think yo mean this (sql statements in uppercast) |