Forum Replies Created

Viewing 15 posts - 1,246 through 1,260 (of 2,458 total)

  • RE: Choosing values

    Manic Star (9/23/2015)


    patricklambin (9/23/2015)


    Stewart "Arturius" Campbell (9/22/2015)


    Interesting question, thanks Steve

    Another of the functions copied from Excel.

    I don't think so. These functions have been introduced only to make easier the translation...

  • RE: SQL Query

    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...

  • RE: Calculating running totals for partitions of data

    @Wayne

    Was this your intended 2012 solution:

    -- SQL SERVER 2012 version:

    SET STATISTICS IO ON;

    SELECT

    RowID,

    CODE,

    COLUMN1,

    COLUMN2,

    RunningTotal =

    ...

  • RE: Calculating running totals for partitions of data

    kdejan87 (9/23/2015)


    What do you think about this:

    DECLARE @t1 TABLE (

    CODE nvarchar(20),

    COLUMN1 numeric(18, 2),

    COLUMN2 numeric(18, 2)

    )

    INSERT INTO @t1 (CODE, COLUMN1, COLUMN2)

    VALUES ('432',...

  • RE: Are the posted questions getting worse?

    Sean Lange (9/21/2015)


    WayneS (9/21/2015)


    Alan.B (9/21/2015)


    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?...

  • RE: Are the posted questions getting worse?

    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?

  • RE: How to find the first, last and the Highest (Peak Value) in a list

    ITU_dk2012 (9/20/2015)


    @Alan,

    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...

  • RE: Best way to learn Data Warehousing Concepts?

    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...

  • RE: Xpath SQL query help please

    kiril.lazarov.77 (9/18/2015)


    Thank you very much Alan.

    No problem.

  • RE: BI Internship help

    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...

  • RE: Script all Indexes

    Just ran across this script - it works quite nicely for me.

  • RE: How to find the first, last and the Highest (Peak Value) in a list

    ITU_dk2012 (9/17/2015)


    Hi all,

    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...

  • RE: Xpath SQL query help please

    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...

  • RE: query for compare data in 2 tables

    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...

  • RE: Determine size of the database

    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....

Viewing 15 posts - 1,246 through 1,260 (of 2,458 total)