Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Gartner® Magic Quadrant™: 15 YEARS A LEADER - GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Ravi_Nagmal
Contributor III
Contributor III

Trying to convert SQL query in Qlik sense Cloud

Hi All,

I am trying to convert below mentioned SQL query in Qlik sense cloud. Please help with Qlik sense query for the same if possible.

 

(SELECT 
CASE When (SELECT TOP 1 Attribute1 FROM CS_Config_LookUpsDataService WITH(nolock) WHERE WebsiteServiceID = isnull(ASN.WebsiteServiceID,INQ.WebsiteServiceID) AND ServerLocation = isnull(ASN.ServerLocation,INQ.ServerLocation) AND isDeleted !=1 AND LookUpCategory = 'FormattingOptions' AND CategoryDataId = Isnull(ASN.FormattingOptionId,INQ.FormattingOptionId)) ='No' Then 'No'
When (SELECT TOP 1 Attribute1 FROM CS_Config_LookUpsDataService WITH(nolock) WHERE WebsiteServiceID = isnull(ASN.WebsiteServiceID,INQ.WebsiteServiceID) AND ServerLocation = isnull(ASN.ServerLocation,INQ.ServerLocation) AND isDeleted !=1 AND LookUpCategory = 'FormattingOptions' AND CategoryDataId = Isnull(ASN.FormattingOptionId,INQ.FormattingOptionId)) ='Yes' Then 'Yes'
Else 'N/A'
END) 'Formatting'

 

1 Solution

Accepted Solutions
Albert_Candelario

Hello @Ravi_Nagmal,

Thanks for posting.

Have you created the connection to the database from Qlik Cloud? If not, maybe you can use the Data Gateway direct access - ODBC databases | Qlik Cloud Help

Have you reviewed this - SQL | Qlik Cloud Help?

Cheers,

Albert

 

Please, remember to mark the thread as solved once getting the correct answer

View solution in original post

1 Reply
Albert_Candelario

Hello @Ravi_Nagmal,

Thanks for posting.

Have you created the connection to the database from Qlik Cloud? If not, maybe you can use the Data Gateway direct access - ODBC databases | Qlik Cloud Help

Have you reviewed this - SQL | Qlik Cloud Help?

Cheers,

Albert

 

Please, remember to mark the thread as solved once getting the correct answer