Jump to content

PHP / MySQL Sort Code Multi-Table


roboticsguy1988

Recommended Posts

Alright I have a odd question... but first let me layout the table scene.

 

I have a database which has a user table in that user table is information such as UID (which is a unique user ID), First Name, Last Name, etc.  Also in that database are "groups" of people.  Each group is a table in the database in that table the UID is listed to match the user table.

 

What i want to do is sort one of those group tables by the last name but the last name is in the user table and not in the group table. and before anyone mentions it no they do not want the a last name column added to any of the group tables.  Essentially this database uses keys so the only duplicate data is keys which are use to match with other tables and pull the other information from the other tables.

 

Also, i would like to run the sorts from a php script.

 

Hopefully i explained all of that well enough, if you have any questions please let me know and thanks in advance for the help.

Link to comment
https://forums.phpfreaks.com/topic/189959-php-mysql-sort-code-multi-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.