<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SQLSCRIPT: sql syntax error: incorrect syntax near &amp;quot;AS&amp;quot; in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621535#M4734082</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;METHOD GLOBAL_END BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS READ-ONLY using /BIC/AZD_TVOG2.
-- *** Begin of routine - insert your code only below this line ***

-- Note the _M class are not considered for DTP execution.
-- AMDP Breakpoints must be set in the _A class instead.

outTab = SELECT
         "/BIC/C11NODENO" AS "/BIC/C11NODENO" ,
         "/BIC/C55ACCRCT" AS "/BIC/C55ACCRCT" ,
         "/BIC/C55ACCSY" AS "/BIC/C55ACCSY" ,
         "/BIC/C55CMETH" AS "/BIC/C55CMETH" ,
         "/BIC/C55CONTCT" AS "/BIC/C55CONTCT" ,
         "/BIC/C55CONTID" AS "/BIC/C55CONTID" ,
         "/BIC/C55IOIND" AS "/BIC/C55IOIND" ,
         "/BIC/C55PRCSCT" AS "/BIC/C55PRCSCT" ,
         "/BIC/C55SLALC" AS "/BIC/C55SLALC" ,
         "/BIC/CIDPSEID" AS "/BIC/CIDPSEID" ,
         "/BIC/CR0RSKYDT" AS "/BIC/CR0RSKYDT" ,
         LPAD(DENSE_RANK ( ) OVER (PARTITION BY :inTab."/BIC/C55CONTID" ORDER BY :inTab."/BIC/CR0RSKYDT")
       + COALESCE((SELECT MAX(T1."/BIC/CRCBECFVN")FROM "/BIC/AZD_TVOG2" T1 WHERE :inTab."/BIC/C55CONTID" = T1."/BIC/C55CONTID"),0),10,0)
         AS "/BIC/CRCBECFVN" ,
         "/BIC/CRCPAYCAT" AS "/BIC/CRCPAYCAT" ,
         "/BIC/C55CLCLTR" AS "/BIC/C55CLCLTR" ,
         "/BIC/C55CURPOS" AS "/BIC/C55CURPOS" ,
         RECORDMODE ,
         "/BIC/RDLAREA" AS "/BIC/RDLAREA" ,
         "/BIC/RDLVIEW" AS "/BIC/RDLVIEW" ,
         "/BIC/C55SECNNO" AS "/BIC/C55SECNNO" ,
         "/BIC/C55SRCSYS" AS "/BIC/C55SRCSYS" ,
         "/BIC/K5SCDCIC" AS "/BIC/K5SCDCIC",
         "/BIC/K5SCDCIP" AS "/BIC/K5SCDCIP",
         "/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC" , // i change this with formula FOR EACH C55CONTID,
                                 IF CRCBECFVN &amp;gt;1, THEN RETRIEVE THE VALUES FROM K5SCDCEC HAVING CRCBECFVN =1

         "/BIC/K5SCDCEP" AS "/BIC/K5SCDCEP" ,
         "/BIC/K5SCDIRC" AS "/BIC/K5SCDIRC" ,
         "/BIC/K5SCDIRP" AS "/BIC/K5SCDIRP" ,
         "/BIC/K5SCDIOC" AS "/BIC/K5SCDIOC" ,
         "/BIC/K5SCDIOP" AS "/BIC/K5SCDIOP" ,
         "/BIC/K5SCDT2C" AS "/BIC/K5SCDT2C" ,
         "/BIC/K5SCDT2P" AS "/BIC/K5SCDT2P" ,
         "/BIC/K5TMGRCC" AS "/BIC/K5TMGRCC" ,
         "/BIC/K5TMGRCP" AS "/BIC/K5TMGRCP" ,
         "/BIC/POS_CURR" AS "/BIC/POS_CURR" ,
         "/BIC/TRAN_CURR" AS "/BIC/TRAN_CURR" ,
         "/BIC/CRPTRDAT" AS "/BIC/CRPTRDAT" ,
         "/BIC/C55BEFCH" AS "/BIC/C55BEFCH" ,
         RECORD,
         SQL__PROCEDURE__SOURCE__RECORD
         FROM :inTab;

-- *** End of routine - insert your code only before this line ***
ENDMETHOD.

&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 May 2022 12:57:51 GMT</pubDate>
    <dc:creator>nathan23</dc:creator>
    <dc:date>2022-05-17T12:57:51Z</dc:date>
    <item>
      <title>SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaq-p/12621530</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Hi 
CASE WHEN (inTab."/BIC/C55CONTID" is NOT null) 
               THEN      
               CASE WHEN (inTab."/BIC/CRCBECFVN" &amp;gt;1 ) THEN
                    (SELECT "/BIC/K5SCDCEC" FROM "/BIC/AZD_TVOG2"  WHERE "/BIC/AZD_TVOG2"."/BIC/CRCBECFVN" = 1) AS "/BIC/K5SCDCEC",
                 ELSE 
                   "/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC"
                   END
				   END
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;after writing this logic gives me an error on the AS, can you tell me the reason?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2049975-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaq-p/12621530</guid>
      <dc:creator>nathan23</dc:creator>
      <dc:date>2022-05-17T08:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621531#M4734078</link>
      <description>&lt;P&gt;Hi Danilo, &lt;/P&gt;&lt;P&gt;the keyword AS has no place in a CASE expression. When you want to calculate a column with this expression, the AS should be placed after the outer END. If you show us the whole statement, then we can help you better. &lt;/P&gt;&lt;P&gt;B.t.w: the red marking and the formatting makes it difficult to read. Readable formatted questions have a better chance to get answered. You can use the CODE feature when creating a question: &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2050928-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621531#M4734078</guid>
      <dc:creator>Joerg_Brandeis</dc:creator>
      <dc:date>2022-05-17T08:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621532#M4734079</link>
      <description>&lt;P&gt;Hi i update with code &lt;/P&gt;&lt;P&gt;i implement this &lt;/P&gt;&lt;P&gt;FOR EACH C55CONTID, IF CRCBECFVN &amp;gt;1, THEN RETRIEVE THE VALUES FROM K5SCDCEC HAVING CRCBECFVN =1 &lt;/P&gt;&lt;P&gt;can you fix my code ? &lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 11:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621532#M4734079</guid>
      <dc:creator>nathan23</dc:creator>
      <dc:date>2022-05-17T11:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621533#M4734080</link>
      <description>&lt;P&gt;Hi Danilo, &lt;/P&gt;&lt;P&gt;thank you for the code update. You should give us a little more information about the context. Are we talking about HANA SQL, SQL Anywhere or MS SQL Server? You selected all tags. To what database should the expected answer fit? When its an AMDP: Show us the whole code of the AMDP Class.&lt;/P&gt;&lt;P&gt;From your last comment I'll guess: &lt;/P&gt;&lt;P&gt;You should do a LEFT OUTER JOIN of INTAB with /BIC/AZD_TVOG2 and then do a CASE in the fieldlist to select either the value from the INTAB or from the other table. &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;&lt;UL&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 17 May 2022 12:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621533#M4734080</guid>
      <dc:creator>Joerg_Brandeis</dc:creator>
      <dc:date>2022-05-17T12:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621534#M4734081</link>
      <description>&lt;P&gt;is inside a select and in practice I have to value the field / BA1 / K5SCDCEC, if this condition is verified "FOR EACH C55CONTID, IF CRCBECFVN&amp;gt; 1, THEN RETRIEVE THE VALUES FROM K5SCDCEC HAVING CRCBECFVN = 1".&lt;/P&gt;&lt;P&gt;I have to replace "/ BIC / K5SCDCEC" AS "/ BIC / K5SCDCEC", with the above formula, I hope I was clear&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 12:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621534#M4734081</guid>
      <dc:creator>nathan23</dc:creator>
      <dc:date>2022-05-17T12:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621535#M4734082</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;METHOD GLOBAL_END BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS READ-ONLY using /BIC/AZD_TVOG2.
-- *** Begin of routine - insert your code only below this line ***

-- Note the _M class are not considered for DTP execution.
-- AMDP Breakpoints must be set in the _A class instead.

outTab = SELECT
         "/BIC/C11NODENO" AS "/BIC/C11NODENO" ,
         "/BIC/C55ACCRCT" AS "/BIC/C55ACCRCT" ,
         "/BIC/C55ACCSY" AS "/BIC/C55ACCSY" ,
         "/BIC/C55CMETH" AS "/BIC/C55CMETH" ,
         "/BIC/C55CONTCT" AS "/BIC/C55CONTCT" ,
         "/BIC/C55CONTID" AS "/BIC/C55CONTID" ,
         "/BIC/C55IOIND" AS "/BIC/C55IOIND" ,
         "/BIC/C55PRCSCT" AS "/BIC/C55PRCSCT" ,
         "/BIC/C55SLALC" AS "/BIC/C55SLALC" ,
         "/BIC/CIDPSEID" AS "/BIC/CIDPSEID" ,
         "/BIC/CR0RSKYDT" AS "/BIC/CR0RSKYDT" ,
         LPAD(DENSE_RANK ( ) OVER (PARTITION BY :inTab."/BIC/C55CONTID" ORDER BY :inTab."/BIC/CR0RSKYDT")
       + COALESCE((SELECT MAX(T1."/BIC/CRCBECFVN")FROM "/BIC/AZD_TVOG2" T1 WHERE :inTab."/BIC/C55CONTID" = T1."/BIC/C55CONTID"),0),10,0)
         AS "/BIC/CRCBECFVN" ,
         "/BIC/CRCPAYCAT" AS "/BIC/CRCPAYCAT" ,
         "/BIC/C55CLCLTR" AS "/BIC/C55CLCLTR" ,
         "/BIC/C55CURPOS" AS "/BIC/C55CURPOS" ,
         RECORDMODE ,
         "/BIC/RDLAREA" AS "/BIC/RDLAREA" ,
         "/BIC/RDLVIEW" AS "/BIC/RDLVIEW" ,
         "/BIC/C55SECNNO" AS "/BIC/C55SECNNO" ,
         "/BIC/C55SRCSYS" AS "/BIC/C55SRCSYS" ,
         "/BIC/K5SCDCIC" AS "/BIC/K5SCDCIC",
         "/BIC/K5SCDCIP" AS "/BIC/K5SCDCIP",
         "/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC" , // i change this with formula FOR EACH C55CONTID,
                                 IF CRCBECFVN &amp;gt;1, THEN RETRIEVE THE VALUES FROM K5SCDCEC HAVING CRCBECFVN =1

         "/BIC/K5SCDCEP" AS "/BIC/K5SCDCEP" ,
         "/BIC/K5SCDIRC" AS "/BIC/K5SCDIRC" ,
         "/BIC/K5SCDIRP" AS "/BIC/K5SCDIRP" ,
         "/BIC/K5SCDIOC" AS "/BIC/K5SCDIOC" ,
         "/BIC/K5SCDIOP" AS "/BIC/K5SCDIOP" ,
         "/BIC/K5SCDT2C" AS "/BIC/K5SCDT2C" ,
         "/BIC/K5SCDT2P" AS "/BIC/K5SCDT2P" ,
         "/BIC/K5TMGRCC" AS "/BIC/K5TMGRCC" ,
         "/BIC/K5TMGRCP" AS "/BIC/K5TMGRCP" ,
         "/BIC/POS_CURR" AS "/BIC/POS_CURR" ,
         "/BIC/TRAN_CURR" AS "/BIC/TRAN_CURR" ,
         "/BIC/CRPTRDAT" AS "/BIC/CRPTRDAT" ,
         "/BIC/C55BEFCH" AS "/BIC/C55BEFCH" ,
         RECORD,
         SQL__PROCEDURE__SOURCE__RECORD
         FROM :inTab;

-- *** End of routine - insert your code only before this line ***
ENDMETHOD.

&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2022 12:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621535#M4734082</guid>
      <dc:creator>nathan23</dc:creator>
      <dc:date>2022-05-17T12:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621536#M4734083</link>
      <description>&lt;P&gt;If I got it right, you should use AS in a different place of the code. But I have not checked it on my instance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE WHEN (inTab."/BIC/C55CONTID" is NOT null) 
               THEN      
               CASE WHEN (inTab."/BIC/CRCBECFVN" &amp;gt;1 ) THEN
                    (SELECT "/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC" FROM "/BIC/AZD_TVOG2" WHERE "/BIC/AZD_TVOG2"."/BIC/CRCBECFVN" = 1) ,
                 ELSE 
                   "/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC"
                   END
				   END&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 18:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621536#M4734083</guid>
      <dc:creator>Vitaliy-R</dc:creator>
      <dc:date>2022-05-17T18:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621537#M4734084</link>
      <description>&lt;P&gt;Hi Danilo, &lt;/P&gt;&lt;P&gt;the code should look somehow like this: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD GLOBAL_END BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS READ-ONLY using /BIC/AZD_TVOG2.
-- *** Begin of routine - insert your code only below this line ***

-- Note the _M class are not considered for DTP execution.
-- AMDP Breakpoints must be set in the _A class instead.

-- sorry for the stupid names of the table variables, but I don't know the 
-- business background to name them properly. Of course variables should 
-- never be numbered but meaningfull named. @see: Clean Code (Robert C. Martin)
lt_tmp1 = SELECT "/BIC/C55CONTID",
                MAX("/BIC/CRCBECFVN") as max_crcbecfvn
           FROM "/BIC/AZD_TVOG2" 
           group by "/BIC/C55CONTID" ;
       
lt_tmp2 = SELECT "/BIC/C55CONTID",
                     "/BIC/K5SCDCEC"
           FROM "/BIC/AZD_TVOG2" 
           where "/BIC/CRCBECFVN" = 1  ; -- is it guaranteed that there will 
                                         -- be always exaclty 1 record per C55CONTID?   
                                         -- 0 or N records could cause trouble and should be handled                                         

outTab = SELECT
         it."/BIC/C11NODENO" AS "/BIC/C11NODENO" ,
         it."/BIC/C55ACCRCT" AS "/BIC/C55ACCRCT" ,
         it."/BIC/C55ACCSY" AS "/BIC/C55ACCSY" ,
         it."/BIC/C55CMETH" AS "/BIC/C55CMETH" ,
         it."/BIC/C55CONTCT" AS "/BIC/C55CONTCT" ,
         it."/BIC/C55CONTID" AS "/BIC/C55CONTID" ,
         it."/BIC/C55IOIND" AS "/BIC/C55IOIND" ,
         it."/BIC/C55PRCSCT" AS "/BIC/C55PRCSCT" ,
         it."/BIC/C55SLALC" AS "/BIC/C55SLALC" ,
         it."/BIC/CIDPSEID" AS "/BIC/CIDPSEID" ,
         it."/BIC/CR0RSKYDT" AS "/BIC/CR0RSKYDT" ,
         LPAD(DENSE_RANK ( ) OVER (PARTITION BY it."/BIC/C55CONTID" ORDER BY it."/BIC/CR0RSKYDT") --May be ROW_NUMBER is the better choice to avoid duplicate numbers
       + COALESCE((tmp1.max_crcbecfvn),0),10,0)
         AS "/BIC/CRCBECFVN" ,
         it."/BIC/CRCPAYCAT" AS "/BIC/CRCPAYCAT" ,
         it."/BIC/C55CLCLTR" AS "/BIC/C55CLCLTR" ,
         it."/BIC/C55CURPOS" AS "/BIC/C55CURPOS" ,
         it.RECORDMODE ,
         it."/BIC/RDLAREA" AS "/BIC/RDLAREA" ,
         it."/BIC/RDLVIEW" AS "/BIC/RDLVIEW" ,
         it."/BIC/C55SECNNO" AS "/BIC/C55SECNNO" ,
         it."/BIC/C55SRCSYS" AS "/BIC/C55SRCSYS" ,
         it."/BIC/K5SCDCIC" AS "/BIC/K5SCDCIC",
         it."/BIC/K5SCDCIP" AS "/BIC/K5SCDCIP",
         case when it."/BIC/CRCBECFVN" &amp;gt; 1     --assuming that you want the value that is given in the intab and not the one we calculated above.... Otherwise we should split this SELECT in multiple steps. 
                  then tmp2."/BIC/K5SCDCEC"
          else it."/BIC/K5SCDCEC" end as "/BIC/K5SCDCEC"

         it."/BIC/K5SCDCEP" AS "/BIC/K5SCDCEP" ,
         it."/BIC/K5SCDIRC" AS "/BIC/K5SCDIRC" ,
         it."/BIC/K5SCDIRP" AS "/BIC/K5SCDIRP" ,
         it."/BIC/K5SCDIOC" AS "/BIC/K5SCDIOC" ,
         it."/BIC/K5SCDIOP" AS "/BIC/K5SCDIOP" ,
         it."/BIC/K5SCDT2C" AS "/BIC/K5SCDT2C" ,
         it."/BIC/K5SCDT2P" AS "/BIC/K5SCDT2P" ,
         it."/BIC/K5TMGRCC" AS "/BIC/K5TMGRCC" ,
         it."/BIC/K5TMGRCP" AS "/BIC/K5TMGRCP" ,
         it."/BIC/POS_CURR" AS "/BIC/POS_CURR" ,
         it."/BIC/TRAN_CURR" AS "/BIC/TRAN_CURR" ,
         it."/BIC/CRPTRDAT" AS "/BIC/CRPTRDAT" ,
         it."/BIC/C55BEFCH" AS "/BIC/C55BEFCH" ,
         RECORD,
         SQL__PROCEDURE__SOURCE__RECORD

         FROM :inTab as it

         left outer join :lt_tmp1 as tmp1
         on it."/BIC/C55CONTID" = tmp1."/BIC/C55CONTID"
         
         left outer join :lt_tmp2 as tmp2
         on it."/BIC/C55CONTID" = tmp2."/BIC/C55CONTID";

-- *** End of routine - insert your code only before this line ***
ENDMETHOD.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please note the comments. And you may have to make some adjustments, since I don't know the exact table structures and possible data constellations.&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 06:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621537#M4734084</guid>
      <dc:creator>Joerg_Brandeis</dc:creator>
      <dc:date>2022-05-18T06:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621538#M4734085</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;like everyone else said, you have "AS" in the wrong place, but also I see two CASE WHEN but only one ELSE statements, you might want to check that part.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Matija&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 08:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621538#M4734085</guid>
      <dc:creator>mgregur</dc:creator>
      <dc:date>2022-05-19T08:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQLSCRIPT: sql syntax error: incorrect syntax near "AS"</title>
      <link>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621539#M4734086</link>
      <description>&lt;P&gt;Hi Danilo, &lt;/P&gt;&lt;P&gt;has any of the answers solved your problem? Than it should be marked as accepted, right?&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 09:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sqlscript-sql-syntax-error-incorrect-syntax-near-quot-as-quot/qaa-p/12621539#M4734086</guid>
      <dc:creator>Joerg_Brandeis</dc:creator>
      <dc:date>2022-05-19T09:41:53Z</dc:date>
    </item>
  </channel>
</rss>

