1 Reply Latest reply: Jul 27, 2012 2:45 AM by Perumal Ayyappan RSS

    SQL Script in Qlikview - Where Clause and Top1

    Bradley Coyne

      Hi I have the following code snippet in SQL and am looking to use it in my QLikview script.


      however when applying directly into SQL it returns an error.


      1. How to use a clause statement WHERE ?

      2.How to use function TOP in script?


      Any tips would be appreciated;


      See code snippet below;



      TOP 1 updated, updatedby
      From dboxxxxxx ."tblCase_CaseHistory";
      WHERE caseid = ärendeid AND statusid IN (avslutadstatusid)