Viewing 15 posts - 1,246 through 1,260 (of 2,458 total)
Manic Star (9/23/2015)
patricklambin (9/23/2015)
Stewart "Arturius" Campbell (9/22/2015)
Interesting question, thanks SteveAnother of the functions copied from Excel.
I don't think so. These functions have been introduced only to make easier the translation...
September 23, 2015 at 9:17 pm
This can certainly be performance tuned but will work:
-- easily consumable sample data
DECLARE @table TABLE(ID int, value decimal (3,1))
INSERT @table
SELECT 1111,14.0 UNION ALL
SELECT 1111,14.0 UNION ALL
SELECT 2222,13.0 UNION ALL
SELECT 2222,13.0...
September 23, 2015 at 9:06 pm
Was this your intended 2012 solution:
-- SQL SERVER 2012 version:
SET STATISTICS IO ON;
SELECT
RowID,
CODE,
COLUMN1,
COLUMN2,
RunningTotal =
...
September 23, 2015 at 4:23 pm
kdejan87 (9/23/2015)
DECLARE @t1 TABLE (
CODE nvarchar(20),
COLUMN1 numeric(18, 2),
COLUMN2 numeric(18, 2)
)
INSERT INTO @t1 (CODE, COLUMN1, COLUMN2)
VALUES ('432',...
September 23, 2015 at 4:03 pm
Sean Lange (9/21/2015)
WayneS (9/21/2015)
Alan.B (9/21/2015)
September 21, 2015 at 5:45 pm
The homework assignment may dictate that the problem be solved with a cursor. Anyone who is good with cursors want to take a look at this?
September 21, 2015 at 9:50 am
ITU_dk2012 (9/20/2015)
Thank you for the code example. I am just learning T-SQL and don't know the advanced stuff in T-SQL. I am using Cursors to get the first value, the...
September 21, 2015 at 9:48 am
The Data warehouse toolkit that Louis mentioned is awesome - that has been the best book I have read about the whole data warehouse/BI life cycle. It's a shame that...
September 20, 2015 at 3:10 pm
kiril.lazarov.77 (9/18/2015)
Thank you very much Alan.
No problem.
September 18, 2015 at 11:10 pm
Koen Verbeeck (9/11/2015)
Alan.B (9/10/2015)
Kimball's The Microsoft Data Warehouse Toolkit, 2nd Edition[/url] is essential for any new BI developer. That's my BI bible.
Did you read Star Schema The Complete Reference...
September 18, 2015 at 8:40 am
Just ran across this script - it works quite nicely for me.
September 17, 2015 at 9:46 pm
ITU_dk2012 (9/17/2015)
I have a column in a table which holds list of values. I would like to find the first value, the highest value(Peak Value), and the last value...
September 17, 2015 at 8:02 pm
Here's what you are looking for:
WITH
dataSets AS
(
SELECT
DatasetName = xxx.value('(@Name)[1]','varchar(100)'),
ParameterDatasetReferenceTxt = xxx.value('(.//*:CommandText/text())[1]','varchar(1000)')
FROM (VALUES(@XML)) T(X)
CROSS APPLY X.nodes('//*:DataSet') xxx(xxx)
),
params...
September 17, 2015 at 7:07 pm
First, welcome to SQLServerCentral. Please note the link in my signature line for the best way to get help here...
I don't know exactly what you are looking for but...
September 17, 2015 at 6:33 pm
Can i get the approximate size by right clicking on database and by using the size property Under Database category to get the size idea?
if I understand your question correctly....
September 17, 2015 at 1:34 pm
Viewing 15 posts - 1,246 through 1,260 (of 2,458 total)