Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading Tables

Hi All,


I am loading a table from SQL Server using the script:


Sales:

Select Customer ID,

SalesAmount,

Date

.

.

.

.FROM tblSales


Now in the second tab, I want to load customers.


Customers:

SELECT

Customer ID,

Name

.

.

.

FROM Customers


When I load customers, I only want to load all the customers where the Customer ID is in the Sales table that I loaded before. However, I don't want to hit SQL Server when I am loading Customers as there might be new customers with sales in the system that didn't make into the Sales table when the sales table was loading. in other words, when loading customers, I want to lookup on the Sales table that is already loaded in QlikView.


Any ideas how to do this?

5 Replies
rajeshvaswani77
Specialist III
Specialist III

Give the same alias to the CustomerID in customers as well as sales. They will join. Below Customers: mention inner join(Sales)

Not applicable
Author

I am only creating individual QVDs and I don't want to join them yet....

rajeshvaswani77
Specialist III
Specialist III

You might be lookin for Incremental load. First time normally all data is loaded without transformation.

Not applicable
Author

I don't understand what you are saying, sorry. IS there a way to lookup on the table that is loaded?

rajeshvaswani77
Specialist III
Specialist III

You need to do it in your SQL itself with database then.  Thats the fastest way you could do. I do not think you can do the way you are asking.