I have a cross tab query that works except that it is only providing the information for rows 1 - 2276, there are 3541 rows that need to be created.
Why is dropping these additional rows and how do I fix it?
The table with the rows that I want to transform is tb_hmc_fields which is linked to AdvanceCompanyInfo via web_id key. AdvanceCompanyInfo has the company_id reference needed to link the values in tb_hmc_fields to tb_company_basic.
Why is dropping these additional rows and how do I fix it?
Code:
TRANSFORM First([AdvancedCompanyInfo].Advinfo) AS FieldValue
SELECT tb_company_basic.company_id
FROM (tb_company_basic INNER JOIN [AdvancedCompanyInfo] ON tb_company_basic.company_id = [AdvancedCompanyInfo].company_id) INNER JOIN tb_hmc_fields ON [AdvancedCompanyInfo].web_id = tb_hmc_fields.web_id
GROUP BY tb_company_basic.company_id
PIVOT tb_hmc_fields.name;
The table with the rows that I want to transform is tb_hmc_fields which is linked to AdvanceCompanyInfo via web_id key. AdvanceCompanyInfo has the company_id reference needed to link the values in tb_hmc_fields to tb_company_basic.