<?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>topic Re: IF conditions in SQL in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/IF-conditions-in-SQL/m-p/6183#M600</link>
    <description>Hi:&lt;BR /&gt;
  I believe the CASE clause is ANSI standard SQL. PROC SQL (the SAS implementation of SQL) does support use of the CASE clause. For more help on SAS and PROC SQL and the CASE clause, you might look in the PROC SQL documentation or consult with Tech Support for more help.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 07 Jan 2008 21:40:42 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-01-07T21:40:42Z</dc:date>
    <item>
      <title>IF conditions in SQL</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/IF-conditions-in-SQL/m-p/6182#M599</link>
      <description>This is Microsoft SQL Server Query, can SAS SQL can do something like this?&lt;BR /&gt;
USE AdventureWorks;&lt;BR /&gt;
GO&lt;BR /&gt;
SELECT   ProductNumber, Name, 'Price Range' = &lt;BR /&gt;
      CASE &lt;BR /&gt;
         WHEN ListPrice =  0 THEN 'Mfg item - not for resale'&lt;BR /&gt;
         WHEN ListPrice &amp;lt; 50 THEN 'Under $50'&lt;BR /&gt;
         WHEN ListPrice &amp;gt;= 50 and ListPrice &amp;lt; 250 THEN 'Under $250'&lt;BR /&gt;
         WHEN ListPrice &amp;gt;= 250 and ListPrice &amp;lt; 1000 THEN 'Under $1000'&lt;BR /&gt;
         ELSE 'Over $1000'&lt;BR /&gt;
      END&lt;BR /&gt;
FROM Production.Product&lt;BR /&gt;
ORDER BY ProductNumber ;&lt;BR /&gt;
GO</description>
      <pubDate>Mon, 07 Jan 2008 10:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/IF-conditions-in-SQL/m-p/6182#M599</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-07T10:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: IF conditions in SQL</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/IF-conditions-in-SQL/m-p/6183#M600</link>
      <description>Hi:&lt;BR /&gt;
  I believe the CASE clause is ANSI standard SQL. PROC SQL (the SAS implementation of SQL) does support use of the CASE clause. For more help on SAS and PROC SQL and the CASE clause, you might look in the PROC SQL documentation or consult with Tech Support for more help.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 07 Jan 2008 21:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/IF-conditions-in-SQL/m-p/6183#M600</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-01-07T21:40:42Z</dc:date>
    </item>
  </channel>
</rss>

