C
CuriousMark
How do I create a query to collect data from "unrelated" tables?
I am studying Medicare physician reimbursement data. Here is an abbreviated
version of the tables with example data:
table Name: 2007_01_01
Fields: [CPT], [RVU]
Data: 1, 10
2, 15
3, 20
table Name: tblConvFactor
Fields: [Year], [ConvFactor]
Data: 2005, 35
2006, 35.5
2007, 36
table Name: tblGPCI
Fields: [Table Name], [GPCI]
Data: 2006_01_01, 1.2
2007_01_01, 1.3
2008_01_01, 1.1
There are many tables containing the RVU data, each named with a date in the
2007_01_01 format. That name is used in the tblGPCI table.
How do I construct a query that will give me this, selecting data from table
1 for a specific CPT (in this example, "2")?
[Year], [RVU], [GPCI], [Conv Factor]
2007, 15, 1.3, 36
In reality, the tables have many more fields, but the concept is the same. I
have three individual queries for each table, but I can't figure out how to
link them to create one record. I could try to create a new table, then a
recordset, and add data to the recordset, but that seems cumbersome, and I
thought there must be a way to create a query to do it.
Thanks.
CM
I am studying Medicare physician reimbursement data. Here is an abbreviated
version of the tables with example data:
table Name: 2007_01_01
Fields: [CPT], [RVU]
Data: 1, 10
2, 15
3, 20
table Name: tblConvFactor
Fields: [Year], [ConvFactor]
Data: 2005, 35
2006, 35.5
2007, 36
table Name: tblGPCI
Fields: [Table Name], [GPCI]
Data: 2006_01_01, 1.2
2007_01_01, 1.3
2008_01_01, 1.1
There are many tables containing the RVU data, each named with a date in the
2007_01_01 format. That name is used in the tblGPCI table.
How do I construct a query that will give me this, selecting data from table
1 for a specific CPT (in this example, "2")?
[Year], [RVU], [GPCI], [Conv Factor]
2007, 15, 1.3, 36
In reality, the tables have many more fields, but the concept is the same. I
have three individual queries for each table, but I can't figure out how to
link them to create one record. I could try to create a new table, then a
recordset, and add data to the recordset, but that seems cumbersome, and I
thought there must be a way to create a query to do it.
Thanks.
CM