Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sutr_kam
Starting Member
5 Posts |
Posted - 2011-05-13 : 11:13:57
|
Hi all this is my query now. But it taking very long time to get results.Can anybody optimize it. It is very urgent please help soon..so that execution time is lessSELECT DISTINCT case.column1, case.column2FROM case WHERE case.installationID = 34 AND case.mainid = 34 AND case.Status = 'Open' And case.caseID in (select caseID from owner where ownerid in (1120,1121,1122)) AND detail like ( case when (select type from cele whereceleid=3129)='DRP' then 'heman' when (select type from cele where celeid=3129)!='DRP' then '%heman%' end) and w.caseid = case.caseid and w.ctabid = c.ctabid and c.status = 1 and w.ceid=3129)>0 Order By case.openDateregards,sutr kam |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2011-05-13 : 11:31:24
|
Nope. Exactly the same query, posted 10 minutes later.Sutr, we're all volunteers, posting in our space time. If you need a reply within 10 minutes, hire a consultant.--Gail ShawSQL Server MVP |
|
|
|
|
|