alwayshouston
MIS
Hi All
I am stuck on the designing a table that would allow a customized grouping. For instance, I have an Employee Table below:
Emp_ID Emp_Name Emp_Loc Emp_Loc_Continent
100000 Jack Texas North America
100001 Mary Arizona North America
100008 Doug Canada North America
100003 Tony Brazil South America
100004 Mack Brazil South America
100005 Joe UK Europe
Now I would like a grouping table that would give me the grouping of employees that are living in North America or South America but Not in Canada. How can I save this grouping in a table and retrieve data from the table? I know I can easily write the query to get the output, but how can I save the criteria in a table format about grouping of groups or individual employees?
The grouping table should be similar to one below:
Group_ID Emp_Loc Emp_Loc_Continent
You can modify the entire table structure if needed.
I hope I make sense above. If not, let me know. I will try to explain it more clearly.
Thanks!
I am stuck on the designing a table that would allow a customized grouping. For instance, I have an Employee Table below:
Emp_ID Emp_Name Emp_Loc Emp_Loc_Continent
100000 Jack Texas North America
100001 Mary Arizona North America
100008 Doug Canada North America
100003 Tony Brazil South America
100004 Mack Brazil South America
100005 Joe UK Europe
Now I would like a grouping table that would give me the grouping of employees that are living in North America or South America but Not in Canada. How can I save this grouping in a table and retrieve data from the table? I know I can easily write the query to get the output, but how can I save the criteria in a table format about grouping of groups or individual employees?
The grouping table should be similar to one below:
Group_ID Emp_Loc Emp_Loc_Continent
You can modify the entire table structure if needed.
I hope I make sense above. If not, let me know. I will try to explain it more clearly.
Thanks!