Viewing 15 posts - 31 through 45 (of 81 total)
It's the "and a.cwsrouteid > b.cwsrouteid" clause that is eliminating CWSIDs 42, 47, 48.
CWSID 40 gets returned because of CWSRouteID 1. Take out CWSRouteID 1 and you won't get any...
August 10, 2007 at 1:18 pm
Good point, I spoke too soon. Let me qualify my comment. Neat trick if you need to do some data mining in a non-production situation.... Like you missed an AND...
August 9, 2007 at 3:04 pm
ok, here is a real dumb question I'm sure... but I've seen it enough and if I don't ask I will continue to be
August 8, 2007 at 9:53 pm
Maybe you have some bad data. Add WHERE IsDate(ContrExpirYDT) = 1 to remove any records with invalid date values. Or do WHERE IsDate(ContrExpirYDT) = 0 to find records with invalid date...
August 3, 2007 at 1:43 pm
select empname, emprole
from mytable
group by empname, emprole
having count(*) > 1
August 3, 2007 at 1:04 pm
Ok, what do you expect the results to look like? What do you expect for LogType when there is different logtypes for a particular ID?
August 1, 2007 at 3:59 pm
select Table1.ID, Max(LogDate)
From Table1 join Table2 on Table1.ID = Table2.ID
Where LName like 'LN%'
Group by Table1.ID
August 1, 2007 at 2:22 pm
Well, I think you have several options...
August 1, 2007 at 11:21 am
The following statement, "SELECT @incidentID = inserted.IncidentID FROM inserted", will only keep the last record from inserted. Therefore, the rest of the processing only works against that incident id.
You have...
August 1, 2007 at 8:27 am
Thanks for the input.
Any idea why the sql service memory usage keeps climbing in task manager? I have max server memory set to 12 GB but it's currently at 14.9...
August 1, 2007 at 7:32 am
Chandu and Bapi, now that you fellas have the transaction log shrunk, you may want to start asking yourselves some more questions...
July 30, 2007 at 10:35 am
Try to run "UPDATE STATISTICS [dbo].[CaseNum]
WITH FULLSCAN" manually.
July 30, 2007 at 7:17 am
Can you post the query as well as schema and row counts of any tables and views used?
July 27, 2007 at 10:41 am
First of all, I try to avoid bit columns altogether. I am not sure why, but when working with 2000 I saw performance problems when querying bit columns across linked...
July 24, 2007 at 10:28 pm
Viewing 15 posts - 31 through 45 (of 81 total)