?
Solved

add where t0.u_iis_dddt is >= 1.1.09

Posted on 2009-02-12
1
Medium Priority
?
184 Views
Last Modified: 2012-05-06
my mind has gone completely blank! How do i add >= to 1.1.09?

Thanks

K
SELECT  T0.[U_IIS_DDDT],  T0.[U_iis_plan], t0.U_AVL_offered, dbo.fhGetWorkingDaysWithoutWeekEnds(T0.createdate, T0.[closeDate])                     AS DaysToClose, t0.u_avl_na1,T0.U_AVL_na2, T0.U_IIS_INSCODES, T0.subject, T0.U_IIS_INADR, T0.custmrName FROM [dbo].[OSCL]  T0 LEFT OUTER JOIN [dbo].[OHEM]  T1 ON T0.technician = T1.empID INNER JOIN OCRD T2 ON T0.U_iis_job = T2.CardCode INNER JOIN OUSR T3 ON T0.assignee = T3.INTERNAL_K INNER JOIN OSCS T4 ON T0.status = T4.statusID WHERE LEFT(t2.ZipCode, 2) IN ('BH','OX','RG','sl','so','sp') order by t0.U_IIS_DDDT, T0.U_IIS_PLAN, T3.U_NAME, T2.ZipCode

Open in new window

0
Comment
Question by:KeirMcCann
1 Comment
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 2000 total points
ID: 23620933
This will do
SELECT  T0.[U_IIS_DDDT],  T0.[U_iis_plan], t0.U_AVL_offered, 
dbo.fhGetWorkingDaysWithoutWeekEnds(T0.createdate, T0.[closeDate]) AS DaysToClose,
t0.u_avl_na1,T0.U_AVL_na2, T0.U_IIS_INSCODES, T0.subject, T0.U_IIS_INADR, T0.custmrName 
FROM [dbo].[OSCL]  T0 
LEFT OUTER JOIN [dbo].[OHEM]  T1 ON T0.technician = T1.empID 
INNER JOIN OCRD T2 ON T0.U_iis_job = T2.CardCode 
INNER JOIN OUSR T3 ON T0.assignee = T3.INTERNAL_K 
INNER JOIN OSCS T4 ON T0.status = T4.statusID 
WHERE LEFT(t2.ZipCode, 2) IN ('BH','OX','RG','sl','so','sp')
  AND t0.u_iis_dddt is >= '2009-01-01'
order by t0.U_IIS_DDDT, T0.U_IIS_PLAN, T3.U_NAME, T2.ZipCode

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
Screencast - Getting to Know the Pipeline
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question