on 03-05-2009 3:33 PM
Hi gurus!
We have an InfoSet joining 2 ODS's bye bill number and position. It's a simple join whitout any filter or condition but when we check data there are records missing. If we look at the SQL query there is a where clause and we don´t know why. Here you have the SQL:
select
N'0000' AS , .[BILL_NUM] AS , .[BILL_ITEM] AS , COUNT( * ) AS
FROM
ON
AND ( ( ( ( ( ( (.[AU_DYIS] IS NULL ) ) OR ( ( .[AU_DYIS]= N'0000' ) ) ) ) ) )
)
GROUP BY
.[AU_DYIS],[T00002].[BILL_NUM],[T00002].[BILL_ITEM]
ORDER BY
what is AU_DYIS doing there??? we have never done anything with AU_DYIS on the IS definition!!
Thanks guys!
Hi martin,
If you used simple join in Infoset that means you have used Inner join. Inner join will give only those record which are commen in both the ODS.
Take Example..
ODS1 having Bill number A , B
ODS2 having Bill number B, C
then output of inner join infoset is only B.
you can't get A & C.
Hopefully this will solve your Query.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what means N'0000' on SELECT sentence??? I do not see that on query result...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what means N'0000' on SELECT sentence??? I do not see that on query result...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.