Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.