Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to load limited records?

Hi,

Can I know after I connected to the server as below, How can say to retrieve only 2014's data  

OLEDB CONNECT32 TO [Provider=XXX.1;User ID=XXX;Data Source=XXX] (XPassword is abc123);

1 Solution

Accepted Solutions
Not applicable
Author

This should be done in the SQL Query, When you load data

select*from (database)  where (date field) between  '2014/01/01' and  '2014'12/31'

example

select*from  sys.scheme.customers where created_date  between  '2014/01/01' and  '2014'12/31'

customers table has customer crated_date field recording customer dates.

Hope this will help you.

Cheers

Chamila

View solution in original post

3 Replies
tresesco
MVP
MVP

Try like:

SQL Select

          Field1, Field2

From <> Where YearField=2014;

ashfaq_haseeb
Champion III
Champion III

Hi,

Try something like this.

Load

F1,

F2,

DATEField

sql select * from Table

where Year(DATEField) = 2014;

Rehards

ASHFAQ

Not applicable
Author

This should be done in the SQL Query, When you load data

select*from (database)  where (date field) between  '2014/01/01' and  '2014'12/31'

example

select*from  sys.scheme.customers where created_date  between  '2014/01/01' and  '2014'12/31'

customers table has customer crated_date field recording customer dates.

Hope this will help you.

Cheers

Chamila