Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a qvd called accounts, with a NAME field.
I have another database table called customer_dim, which has a name field.
I want the final name table to only have the fields in the NAME from Accounts, and anything associated with those from Customer_dim.
The below isn't working, any ideas?
Thanks
here is the error
I think you just added error, Any how can you do that Left join for Accounts like below for Load statement
Left Join (Accounts)
Load * Resident Customers;
How your data model looks when you load simple join from 2 tables?
I'm not sure what you mean by simple join
by renaming both NAME and name fields to Customer, it just combines the two. I only want the fields in NAME
I think you just added error, Any how can you do that Left join for Accounts like below for Load statement
Left Join (Accounts)
Load * Resident Customers;
May be check out Where Exists
I tried it, but my Customer table is still a combination of the two tables.
can you share the script rather than image on wall
Accounts:
Load
ALPHA_PRODID as AlphaProdID,
NAME as Customer
From D:\BI Docs\QVD Generators\Accounts.qvd (qvd)
where DISPOSITION = 'Active'
and TYPE_OF_SITE = 'HQ'
and ACCOUNT_TYPE = 'Customer';
Customer:
Load
name as Customer,
customer_group,
customer_key;
SQL SELECT
customer,
"customer_group",
"customer_key",
name
FROM PUB."customer_dim";
/*
Left Join (Accounts)
Load * Resident Customer
;
*/
May be this is last question to you, Does this select and Load clauses are same fields?? Or typo error? Because, Load statement it showing like name is the field but SELECT statement showing customer? I am sorry if i ask irrelevant question