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

Larger Resultset from View

Hello,

I created a view that has a record count of 3 mio rows.

When loading it to qlik sense it fetches about 11 mio rows.

The used code is quite simple - it's just a SELECT id, date FROM my_view;

I really do not understand this - why does it happen?

any ideas, suggestions?

1 Solution

Accepted Solutions
maxgro
MVP
MVP

a

SELECT * from owner.table

should return the same rows in every tool (sense, sqlplus, sql developer, etc....)

Check you're using the same database and the same oracle user

View solution in original post

10 Replies
sunny_talwar

Are you doing any joins in Qlik Sense?

Anil_Babu_Samineni

Can you share the script over here

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

LOAD ID,

  [Measure_1],

  [Start Date],

  [Month],

  [Year];

[my_table]:

SELECT "ID",

  "Measure_1",

  "Start Date",

  "Month",

  "Year"

FROM "db_mydb"."myview";

Only this table is loaded - the other parts are commented out...

The view contains the logic, I only want to display the results.

Later I will use the ID to join this table with the others.

But the count(*) is wrong, Qlik sense loads far too many rows.

Not applicable
Author

Interesting phenomenon!

Within the data preview I can now see "Start Dates" from "06.10.1954". Very strange.

I restricted the view to load only data from the current year.

This doesn't make any sense to me right now... What's going on ?

sunny_talwar

How does Start Date look in your database? Can you post some screenshots?

Not applicable
Author

Hello!

START_DATE is of  data type <DATE>

The view has to be restricted, so I used this attribute within the WHERE-Clause.

No errors when executing in SQL-Developer. Very simple example...but in QS

i get this error.

How  and at which place can you restrict the to be loaded data ?

...and which Syntax ? is there a special syntax necessary ?

Does Qlik Sense interpret the view in a different way ?

Please help

Connector reply error: ***

Error: ?





sunny_talwar

Where did you used the where clause? Select or Load?

Not applicable
Author

I used the WHERE-clause when defining my view...

sunny_talwar

Oh the view already has the where clause... then you just did a direct select * from view? should not have error-ed out... not sure what might have caused it... Can you post the screenshot of the error message?