Viewing 15 posts - 6,676 through 6,690 (of 8,753 total)
Looks like this is coming from sqlmap (sqlmap.org), automated injection tool.
😎
October 28, 2014 at 6:48 am
SQL Server's implementation of the window functions does not allow for sharing window specification (over clause specs) between functions.
😎
October 28, 2014 at 3:21 am
Here is my attempt from the train journey to work this morning, looks like it will give the while loop a real run for the money.
😎
/********************************************************************
-- Stripping out any...
October 28, 2014 at 2:55 am
Nice problem, just what's needed to get the brain started in the morning:-D
😎
/* BASE_DATA brings together everything that is needed, adds
a group identifier for...
October 27, 2014 at 10:37 pm
Some test results, looks like the computed column method is roughly 4 times faster than the next one
😎
Beginning execution loop
--============================================================================================================
-- Method 1 by sqlslacker
-- ...
October 27, 2014 at 7:44 am
Chipping in a little more, another method is a computed column and an index on that column, here is a script adapted to fit Jeff's test harness, append it at...
October 27, 2014 at 6:33 am
Quick thought, embed the case statement in a CTE and then do the aggregations on the output.
😎
October 27, 2014 at 12:23 am
Quick note, if the ROW_NUMBER function has a satisfying index to work on it is not expensive at all, consider the code below which only does one index scan and...
October 26, 2014 at 11:52 pm
Jeff Moden (10/25/2014)
Eirikur Eiriksson (10/25/2014)
October 26, 2014 at 4:51 pm
QQ-485619 (10/26/2014)
what if that is a column name, e.g.select sum(saletotal)/NumberofDays
Either to an explicit type cast to numeric or float using cast or convert or multiply the column value with 1.0,...
October 26, 2014 at 1:14 pm
j.hoube (10/26/2014)
Not a problem replaced with AND statement instead of ON seems to have resolved it 🙂Thanks for the help and your time
J
Sorry about the error, quick copy/paste without checking...
October 26, 2014 at 11:49 am
QQ-485619 (10/26/2014)
I run the following statement: select 1/3 and I got 0.How do I do so that I can get 0.33?
Thanks,
Jian
SQL Server performs an Integer division on whole...
October 26, 2014 at 10:53 am
Good job, the scripts do explain what is happening
😎
The table dbo.MMA_KPIVAR_DAT can have many instances of the same VARIABLE_ID, CLIENT_ID and SITE_ID. The table dbo.MMA_KPIVAR_MST can have many instances of...
October 26, 2014 at 8:05 am
No worries, there are several ways of doing this, have a quick look here for Generate Scripts (SQL Server Management Studio).
😎
October 26, 2014 at 6:02 am
Quick question, can you post the DDL (create script) for those three tables?
😎
October 26, 2014 at 4:45 am
Viewing 15 posts - 6,676 through 6,690 (of 8,753 total)