Viewing 15 posts - 7,636 through 7,650 (of 10,144 total)
Paul White NZ (7/20/2010)
CirquedeSQLeil (7/20/2010)
A.R.K.Double Precision (aka FLOAT(53))
52 plus the Unicorn.
July 20, 2010 at 10:05 am
This is pretty much a stab in the dark - which is all that can be done without more details as per Joe's post.
SELECT
[no],
name,
Jan = SUM(CASE Condition1 THEN...
July 20, 2010 at 10:01 am
Have a play with this, Matt. Hopefully it will give you some ides.
IF OBJECT_ID( 'tempdb..#rawdata') IS NOT NULL DROP TABLE #rawdata
IF OBJECT_ID( 'tempdb..#WorkingSet') IS NOT NULL DROP TABLE #WorkingSet
CREATE TABLE...
July 20, 2010 at 8:36 am
The UPDATE of the table is a special kind called a Running Totals Update. Jeff Moden has written some excellent and easily consumable articles about them for this site, well...
July 20, 2010 at 7:51 am
balasach82 (7/20/2010)
July 20, 2010 at 7:19 am
You're welcome, thanks for the generous feedback.
July 20, 2010 at 6:28 am
Hi Matt
There's a lot of work involved in getting it just right and how you do it depends on what it's for - if you're doing a one-off process then...
July 20, 2010 at 5:19 am
Untested:
SELECT
d.Category,
d.Station,
d.Brand,
'Sun' = SUM(CASE d.[Day] WHEN 'Sun' THEN d.[Number Of Occurence] ELSE 0 END),
'Mon' = SUM(CASE d.[Day] WHEN 'Mon' THEN d.[Number Of Occurence] ELSE 0 END),
'Tue' =...
July 20, 2010 at 4:57 am
Hi Matt
You're trying to dedupe a customer list, right? So you end up with a principal (or master) with an associated set of dupes?
Deduping companies is extraordinarily difficult and complicated...
July 20, 2010 at 4:12 am
LadyG (7/20/2010)
I did try Chris' suggestion with the calendar table, it did make a huge difference. Anyway I can optimise it further looking...
July 20, 2010 at 2:24 am
Paul White NZ (7/19/2010)
Chris Morris-439714 (7/19/2010)
Ok - you Sue, me Chris.I've got to tighten up on defence: I was wide open to that!
A very expensive geezer called Fabio was recently...
July 19, 2010 at 9:44 am
Paul White NZ (7/19/2010)
dbowlin (7/16/2010)
July 19, 2010 at 8:47 am
dbowlin (7/16/2010)
Paul White NZ (7/15/2010)
Paragordius tricuspidatus(today's random worm)
Haven't done that for a while 🙂
I thought this was something that was just science fiction! A parasite that can manipulate the...
July 19, 2010 at 8:31 am
Test and check that you get the same results, and compare the times:
-- existing version
WHERE dbo.fn_ConvertToBusinessDate(pl.date) >= dateadd(day,-10,datediff(day,0,getdate()))
-- proposed version
WHERE pl.date >= DATEADD(mi,195,dateadd(day,-10,datediff(day,0,getdate()))) -- 195 MINUTES = 03:15:00.000
July 19, 2010 at 5:06 am
Viewing 15 posts - 7,636 through 7,650 (of 10,144 total)