Forum Replies Created

Viewing 15 posts - 76 through 90 (of 394 total)

  • RE: Today's Random Word!

    Stuart Davies (2/25/2015)


    SQLRNNR (2/25/2015)


    Ed Wagner (2/25/2015)


    BWFC (2/25/2015)


    Ed Wagner (2/25/2015)


    laurie-789651 (2/25/2015)


    Ed Wagner (2/25/2015)


    djj (2/25/2015)


    Ed Wagner (2/24/2015)


    SQLRNNR (2/24/2015)


    four

    Square

    Cube

    Dimension

    Declare

    Decree

    Absolute

    Resolute

    Desk

    Raven (obtuse - I know)

    Dun

  • RE: Today's Random Word!

    Ed Wagner (2/25/2015)


    djj (2/25/2015)


    Ed Wagner (2/24/2015)


    SQLRNNR (2/24/2015)


    four

    Square

    Cube

    Dimension

    Declare

  • RE: Today's Random Word!

    Ed Wagner (2/24/2015)


    crookj (2/24/2015)


    djj (2/24/2015)


    Ed Wagner (2/24/2015)


    BWFC (2/24/2015)


    djj (2/24/2015)


    Ed Wagner (2/23/2015)


    SQLRNNR (2/23/2015)


    roof

    Top

    Tip

    Dump

    Core

    Apple

    Mortimer (Who's your friend?)

    Time

    Zone

  • RE: how to substract data from different rows

    Good. Glad you got it sorted.

    I meant to suggest using a CTE like this to get the base data using your original query:

    ;WITH CTE_Base_Data AS

    (

    Select S.number,

    SStatus.name stat,

    Sshis.StartDate

    From supportcall S

    JOIN...

  • RE: how to substract data from different rows

    Try this:

    --== TEST DATA ==--

    IF OBJECT_ID('tempdb..#TEMP') IS NOT NULL DROP TABLE #TEMP;

    CREATE TABLE #TEMP (Number Int, Stat Varchar(10), StartDate DateTime);

    INSERT #TEMP VALUES (17061, 'New', '2015-01-06 09:01:48.843');

    INSERT #TEMP VALUES (17061, 'Assigned',...

  • RE: Dedeup SQL Table

    Try this:

    --== TEST DATA ==--

    IF NOT OBJECT_ID('tempdb..#Temp') IS NULL DROP TABLE #Temp;

    CREATE TABLE #Temp (SRC Int, IP_REF Int);

    INSERT #Temp VALUES (1, 1);

    INSERT #Temp VALUES (1, 1);

    INSERT #Temp VALUES (1, 1);

    INSERT...

  • RE: view

    Another possibility....

    USE [tempdb]

    GO

    -- We have a sample gender data, with personid,firstname,lastname, gender etc. before creating a view we should consider,

    -- if the gender doesn't exists, we have...

  • RE: Replace the column with another column when it does not exist

    If you're using the sys tables (i.e. views) as source of the table names, use the columns view to identify the required column name & store this along with the...

  • RE: Receiving Correct Output

    What do you mean by "other Columns of the months "?

    What is the problem exactly?

  • RE: Collection of data

    Can you move the calculations for the asterisk into the dataset, i.e. into the SQL? If so, you could perhaps create a second dataset sharing the logic to hold only...

  • RE: do I need a cte here?

    If you post some sample data & expected results you'll likely get more response.

    You can use recursive CTEs to show hierarchies.

    For example:

    http://blogs.msdn.com/b/simonince/archive/2007/10/17/hierarchies-with-common-table-expressions.aspx

  • RE: Justify Text

    ndiro (1/9/2014)


    I know that it's not a standard feature of SSRS but i'm looking for a workaround. Any suggestions?

    It is a standard feature:

    Properties window / Alignment / Text Align =...

  • RE: Stored Procedure to remove all records that don't have max FileID

    You could truncate the table first, then load the data.

    Alternatively

    ;WITH CTE AS

    (

    SELECT *

    ,RN = DENSE_RANK() OVER (ORDER BY FileID DESC)

    FROM [dbo].[forecast_data]

    )

    DELETE CTE

    WHERE RN > 1

    (This actually...

  • RE: SUM of COUNT

    Yes - I was wondering...

  • RE: SUM of COUNT

    Can you post your real code?

Viewing 15 posts - 76 through 90 (of 394 total)