G
Guest
Hello-
I created a simple query that for some reason is automatically hiding all
duplicate rows from the main table it is pulling data from [DTBsFY07]. My
objective for the query is just to add descriptions to that main table and I
do not want it to hide any duplicate rows. What do I need to do to set it to
include the duplicate values?
The SQL code is as follows, and, in case it helps, I did not set a primary
key in any of the tables:
SELECT DTBsFY07.PERIOD, DTBsFY07.[ACCT-UNIT],
[ACCT-UNIT-DESCR-TABLE].[AU-DESCR], DTBsFY07.ACCOUNT, DTBsFY07.SYSTEM,
DTBsFY07.ENTRY, DTBsFY07.DESCRIPTION, DTBsFY07.ACTUALS
FROM [ACCT-UNIT-DESCR-TABLE] RIGHT JOIN DTBsFY07 ON
[ACCT-UNIT-DESCR-TABLE].[ACCT-UNIT] = DTBsFY07.[ACCT-UNIT]
GROUP BY DTBsFY07.PERIOD, DTBsFY07.[ACCT-UNIT],
[ACCT-UNIT-DESCR-TABLE].[AU-DESCR], DTBsFY07.ACCOUNT, DTBsFY07.SYSTEM,
DTBsFY07.ENTRY, DTBsFY07.DESCRIPTION, DTBsFY07.ACTUALS;
Thank you.
Filo
I created a simple query that for some reason is automatically hiding all
duplicate rows from the main table it is pulling data from [DTBsFY07]. My
objective for the query is just to add descriptions to that main table and I
do not want it to hide any duplicate rows. What do I need to do to set it to
include the duplicate values?
The SQL code is as follows, and, in case it helps, I did not set a primary
key in any of the tables:
SELECT DTBsFY07.PERIOD, DTBsFY07.[ACCT-UNIT],
[ACCT-UNIT-DESCR-TABLE].[AU-DESCR], DTBsFY07.ACCOUNT, DTBsFY07.SYSTEM,
DTBsFY07.ENTRY, DTBsFY07.DESCRIPTION, DTBsFY07.ACTUALS
FROM [ACCT-UNIT-DESCR-TABLE] RIGHT JOIN DTBsFY07 ON
[ACCT-UNIT-DESCR-TABLE].[ACCT-UNIT] = DTBsFY07.[ACCT-UNIT]
GROUP BY DTBsFY07.PERIOD, DTBsFY07.[ACCT-UNIT],
[ACCT-UNIT-DESCR-TABLE].[AU-DESCR], DTBsFY07.ACCOUNT, DTBsFY07.SYSTEM,
DTBsFY07.ENTRY, DTBsFY07.DESCRIPTION, DTBsFY07.ACTUALS;
Thank you.
Filo