﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Data Warehousing  / Teradata   / Conversion of SQL server query to teradata query / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 21:30:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Conversion of SQL server query to teradata query</title><link>http://www.teradata.com/teradataforum/Topic11381-1-1.aspx</link><description>Hi Rahul,ISNULL is proprietary, replace it with COALESCE, which is also supported by MS SQL Server. There are some minor differences, but you don't have to care about it in that case:COALESCE(ACC_DET.user_name,' ') as usrCOALESCE(MAX(COALESCE(ACCESS_DATE,'')),' ') as max_access Is access_date really a string and not a datetime?DATEDIFF might be replaced by Standard SQL interval calculation, if it's in DAYs then it's even easier:access_date &amp;gt; (select max(access_date) from cess_details ) - 90Dieter</description><pubDate>Fri, 09 May 2008 07:22:59 GMT</pubDate><dc:creator>dnoeth</dc:creator></item><item><title>Conversion of SQL server query to teradata query</title><link>http://www.teradata.com/teradataforum/Topic11381-1-1.aspx</link><description>Hi,If anyone can help me in conversion of query to teradata1.isnull(ACC_DET.user_name,' ') as usr2.         isnull(MAX(isnull(ACCESS_DATE,'')),' ') as max_access 3.datediff(day, access_date , (select max(access_date) from cess_details )) &amp;lt; 90</description><pubDate>Thu, 08 May 2008 04:45:28 GMT</pubDate><dc:creator>RahulG</dc:creator></item></channel></rss>