Can anyone help me with the following problem?
I want to be able to output all of tables ones contents plus associated table two contents using SQL.
Example...
TABLEONE
table_name field_name
STAFF STAFFID
STAFF NAME
STAFF JOBTITLE
CLIENT CLIENTID
CLIENT NAME
TABLETWO
table_name field_name tag_name expression
STAFF STAFFID STAFFID STAFFID
STAFF JOBTITLE JOBTITLE JOBTITLE
STAFF JOBTITLE JTNAME JOBTITLE+NAME
CLIENT CLIENTID CLIENTID CLIENTID
SQL QUERY OUTPUT
table_name_a field_name_a tag_name expression
STAFF STAFFID STAFFID STAFFID
STAFF NAME
STAFF JOBTITLE JOBTITLE JOBTITLE
STAFF JOBTITLE JTNAME JOBTITLE+NAME
CLIENT CLIENTID CLIENTID CLIENTID
CLIENT NAME
Hope this makes sense.
I want to be able to output all of tables ones contents plus associated table two contents using SQL.
Example...
TABLEONE
table_name field_name
STAFF STAFFID
STAFF NAME
STAFF JOBTITLE
CLIENT CLIENTID
CLIENT NAME
TABLETWO
table_name field_name tag_name expression
STAFF STAFFID STAFFID STAFFID
STAFF JOBTITLE JOBTITLE JOBTITLE
STAFF JOBTITLE JTNAME JOBTITLE+NAME
CLIENT CLIENTID CLIENTID CLIENTID
SQL QUERY OUTPUT
table_name_a field_name_a tag_name expression
STAFF STAFFID STAFFID STAFFID
STAFF NAME
STAFF JOBTITLE JOBTITLE JOBTITLE
STAFF JOBTITLE JTNAME JOBTITLE+NAME
CLIENT CLIENTID CLIENTID CLIENTID
CLIENT NAME
Hope this makes sense.