Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Using one table as a legend for another...

$
0
0
Hello,

As part of my current project I need to build a number of tables built on groups or services.

My plan is to have one table to act as a legend, if you like;

Code:

ID | GROUP
1 TEAM1
2 TEAM2
3 TEAM3

The idea being that users can then be append to any group within the first table (populated by "SELECT group FROM groups" etc). For example;

Code:

ID | USER | GROUP
1 JOE TEAM1
2 BOB TEAM2
3 TED TEAM3
4 WILL TEAM2
5 ADAM TEAM1

Is this the most efficient way of achieving this? I dont like having more tables than I really need to, but I cant think of any other ways.

Any advice would be appreciated :)

Thanks!

Viewing all articles
Browse latest Browse all 13329

Trending Articles