![]() Topic awaiting preservation: Mysql query (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: oslo, Norway |
![]() i have two tables the first table is "user" and the other is "player" |
Paranoid (IV) Inmate From: Lebanon |
![]() just use the SELECT ........ FROM .... ORDER BY points [ASC |
Paranoid (IV) Inmate From: oslo, Norway |
![]() 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 |
![]() Okay, your database needs to be put into 3rd normal form. Read about Normalized Databases. |
Paranoid (IV) Inmate From: oslo, Norway |
![]() Thanks jiblet, |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
![]() 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 |
![]() I took a semester course at college on Relational Database design, and still, normalization was a more difficult thing to grasp... |
Paranoid (IV) Inmate From: oslo, Norway |
![]() 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 |
![]() 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: |
![]() i think yo mean this (sql statements in uppercast) |