Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
NZFei
Partner - Specialist
Partner - Specialist

how to load SQL Functions into Sense?

Can anyone help me with this please?

I have had a look at this discussion at Call a function in SQL LOAD but still don't understand.

I would like to use an example so if I have a SQL function called v_PNL, how can I load the data into Sense? What is the script in Sense data load editor?

v_PNL (@nmonth int, @year int, @lastYear int)

SELECT * from v_PNL (11, 2017, 2016)

 

Thank you very much!

Cheers

Fei

1 Solution

Accepted Solutions
NZFei
Partner - Specialist
Partner - Specialist
Author

My colleague has figured it out.

The script should be:

SQL Select * from Databasename.dbo.FunctionName (variable1, variable2);

View solution in original post

3 Replies
NZFei
Partner - Specialist
Partner - Specialist
Author

My colleague has figured it out.

The script should be:

SQL Select * from Databasename.dbo.FunctionName (variable1, variable2);

gianpaolo_31
Contributor III
Contributor III

Hi All,

 

I successfully executed the script but it returned no results.

Please help. Thanks.

 

Func:
Load *;
SQL select *
from DatabaseName.dbo.Report_ShipmentProfileReport
(null,null
,null,null,null,null,null,null,null,null,null,null,null,'2018-05-04','2018-05-31')
;

SQL Function.PNG

gianpaolo_31
Contributor III
Contributor III

Hello Everyone,

 

Any help on this?

Thanks.