I'm trying to create a support table that will be used to append a description field to rows in my main table. An example of what I'm talking about is below...
Main table
COMPANY | AMOUNT
-----------------
Comp1 100
Comp2 200
Comp3 300
Support table
COMPANY | DESCRIPTION
--------------------------------------
Comp1 "Company one"
(everything else) "All Others"
Upon joining these tables by company I would like to get the following results:
COMPANY | AMOUNT | DESCRIPTION
---------------------------------------------
Comp1 100 Company one
Comp2 200 All Others
Comp3 300 All Others
Does anyone know how to get this kind of functionality out of joining tables, or will I need to do something more complicated... Any advice is much appreciated!
Main table
COMPANY | AMOUNT
-----------------
Comp1 100
Comp2 200
Comp3 300
Support table
COMPANY | DESCRIPTION
--------------------------------------
Comp1 "Company one"
(everything else) "All Others"
Upon joining these tables by company I would like to get the following results:
COMPANY | AMOUNT | DESCRIPTION
---------------------------------------------
Comp1 100 Company one
Comp2 200 All Others
Comp3 300 All Others
Does anyone know how to get this kind of functionality out of joining tables, or will I need to do something more complicated... Any advice is much appreciated!