Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

sql

Dear Friends,

I have following script in data load syntax

SQL SELECT *

FROM CICL."UPL_CLM_SCH"

where YEAR='2015'

and MONTH1 IN('1','2','3') 

But no records is loaded to QV document though data appear when I run the sql in SQL navigator. Can you pls show me where I have made the error

1 Solution

Accepted Solutions
stabben23
Partner - Master
Partner - Master

OK, try to modify this part then, remove ' sign and see if that helps.

and MONTH1 IN (1, 2, 3)

View solution in original post

9 Replies
stabben23
Partner - Master
Partner - Master

Should work, the only thing is ; at the end of the script.

SQL SELECT *

FROM CICL."UPL_CLM_SCH"

where YEAR='2015'

and MONTH1 IN('1','2','3')

;

Do you have a Connect to the database?

upaliwije
Creator II
Creator II
Author

Yes I have out ; in my document. Still it does not work

stabben23
Partner - Master
Partner - Master

Does the script reload at all?

upaliwije
Creator II
Creator II
Author

It reloads with 0 results

stabben23
Partner - Master
Partner - Master

What if you just run this:

SQL SELECT *

FROM CICL."UPL_CLM_SCH"

;

mayankraoka
Specialist
Specialist

Hi Upali,

To cross check can you please reload the application without where condition?If you are getting data can you post sample qvw here.

Regards,

Mayank

upaliwije
Creator II
Creator II
Author

If I run the following data getting loaded

SQL SELECT *

FROM CICL."UPL_CLM_SCH"

where YEAR='2015';

stabben23
Partner - Master
Partner - Master

OK, try to modify this part then, remove ' sign and see if that helps.

and MONTH1 IN (1, 2, 3)

upaliwije
Creator II
Creator II
Author

Thanks It works