Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi There,
I need to load all the columns from SQL table into Qlikview table.
Tab1:
SQL
Select *
FROM db
WHERE (col1 IN $(a);
Is the above script is correct? I got an error msg,'Custom read Failed'
Please help me
Hi,
Try this script
SQL
Select *
FROM db
WHERE col1 IN $(a);
What value is there in variable a?
Regards,
Jagan.
Problem with the variable $(a)
rest is correct
Let us consider the variable has ,
('1234','4567')
Do we need to use load command or we can directly use SQL select to load the data into Qlikview table?
Tab1:
load * SQL Select *
FROM db
WHERE (col1 IN $(a));
Got the below error,
Custome Read failed:
Tab1:
SQL Select *
FROM db
WHERE (col1 IN ( '1234', '4567' ))
Hi,
Try this script
SQL
Select *
FROM db
WHERE col1 IN ($(a));
Regards,
Jagan.
Hi,
Try this.
SQL
Select *
FROM db
WHERE col1 IN $(a);
Regards,
Kaushik Solanki
May I ask you how you populate the variable "a" ?
what you need to do is, populate the variable with the full string including the '(" & ')'
let a = '('& chr(39) &'1234'& chr(39) &','& chr(39) & '5678'& chr(39) &')';
then do the select as
select * from DB where col1 IN $(a)
I am using this method with my QV app. So it will work ![]()
Thanks,
Aji Paul.