infinitizon
MIS
Hi all,
I've been working on a seemingly simple stuff for a while but always meeting a road block. Here it is:
Table - [Customer Ledger Entry table]:
Table - [Posted Document Dimension]:
Now what I want is to do a select that gives me something like this
As you can see TDP100 has no corresponding [Document No] in the [Posted Document Dimension] table, thus no [Dimension Code] or [Dimension Value Code].
Basically, the select statement should give distinct [Dimension Code] or [Dimension Value Code] from [Posted Document Dimension] for each [Document no] in [Customer Ledger Entry table]
Your help is much appreciated
____________________
Men put up a strong face just to cover their weaknesses...good!
But a smile makes them live longer....
Which would you choose?
Think about it.
I've been working on a seemingly simple stuff for a while but always meeting a road block. Here it is:
Table - [Customer Ledger Entry table]:
Code:
Cust No | Document No |
-----------------------
TD101 | PSIV30122 |
-----------------------
TDA202 | PSV002202 |
-----------------------
TDP100 | PSV35565 |
-----------------------
Code:
Document No_ | Dimension Code | Dimension Value Code
PSV002202 | CUSTOMER GROUP | AM PART SALES
PSV002202 | CUSTOMER GROUP | AM PART SALES
PSV002202 | CUSTOMER GROUP | AM PART SALES
PSV002202 | DEPARTMENT | GLLAGOS
PSV002202 | DEPARTMENT | GLLAGOS
PSV002202 | PROJECT | N51
PSIV30122 | CUSTOMER GROUP | AM FIELD SERVICE
PSIV30122 | DEPARTMENT | GLLAGOS
PSIV30122 | CUSTOMER GROUP | AM FIELD SERVICE
PSIV30122 | CUSTOMER GROUP | AM PART SALES
Code:
Cust No | Dimension Code | Dimension Value Code
TDA202 | CUSTOMER GROUP | AM PART SALES
TDA101 | CUSTOMER GROUP | AM FIELD SERVICE
TDA101 | CUSTOMER GROUP | AM PART SALES
TDP100 | |
Basically, the select statement should give distinct [Dimension Code] or [Dimension Value Code] from [Posted Document Dimension] for each [Document no] in [Customer Ledger Entry table]
Your help is much appreciated
____________________
Men put up a strong face just to cover their weaknesses...good!
But a smile makes them live longer....
Which would you choose?
Think about it.