Viewing 15 posts - 151 through 165 (of 268 total)
May 12, 2014 at 5:44 am
Luis Cazares (5/9/2014)
'; DELETE TABLE IPPOOL;
Don't try this on a production environment.
You might want to read about SQL Injection to...
May 9, 2014 at 1:34 pm
I'm not sure this will always give you what you want. It may not even give the same answer on subsequent runs. The reason is that your ORDER...
May 9, 2014 at 5:34 am
Here's a version using a CTE for an easy-to-read implimenation:
;with d as (
select netInventoryQty, demandID, d.itemID, i.inventoryQty,
SUM(orderQty) OVER ( PARTITION BY d.itemID ORDER BY demandid ) AS 'cumQty'
from demand d
join...
May 8, 2014 at 9:05 am
e.g.
select cast(stuff('02-16-2014-03:52:03', 11, 1, ' ') as datetime)
May 8, 2014 at 8:49 am
skaggs.andrew (5/8/2014)
May 8, 2014 at 8:32 am
Have you checked the execution plan to see it contains scans?
You could disable or drop the indices then rebuild them after the delete operation. You could add a NC...
May 8, 2014 at 8:07 am
That looks like an approach to audit changes. Is it full source-control? That is, can I, using your idea, see who changed what specifically (not just that...
May 8, 2014 at 6:08 am
Sean Lange (5/7/2014)
gbritton1 (5/7/2014)
Sean Lange (5/7/2014)
SELECT [Columns]
FROM Test1 T1
INNER JOIN Test2 T2 ON T1.ID = T2.ID
WHERE CASE @p_flag
WHEN 1 THEN moveFlag = 26
ELSE moveFlag > 26 OR moveFlag...
May 7, 2014 at 10:32 am
Sean Lange (5/7/2014)
SELECT [Columns]
FROM Test1 T1
INNER JOIN Test2 T2 ON T1.ID = T2.ID
WHERE CASE @p_flag
WHEN 1 THEN moveFlag = 26
ELSE moveFlag > 26 OR moveFlag < 26
END
how...
May 7, 2014 at 9:59 am
Is the rectangle at position (0,0) ?
May 7, 2014 at 9:28 am
Some other things to consider:
1. Do you have indices on the join columns? (MWID, [Org Eenheid Code], BEGINDATUM)
2. If you have an index on BEGINDATUM, the expression
DATEPART(ISO_WEEK,A.BEGINDATUM)= DATEPART(ISO_WEEK,B.BEGINDATUM)
will stop...
May 6, 2014 at 11:10 am
andrew gothard (5/6/2014)
May 6, 2014 at 8:02 am
I mean that the following WHERE clauses are equivalent:
1. No space
WHERE a=b
2. Some spaces
WHERE a = b
3. Some...
May 5, 2014 at 1:05 pm
Viewing 15 posts - 151 through 165 (of 268 total)