Forum Replies Created

Viewing 15 posts - 1,756 through 1,770 (of 10,144 total)

  • RE: How to extract overlapping date ranges from a table of date ranges

    Here's a live topic on the subject.

  • RE: Usage of CROSS APPLY

    If you are using the output of an APPLY block as the input for another then you are likely to find a performance hit after x "levels of nesting". x...

  • RE: Comma separate list as parameter

    SQLNightOwl (2/11/2016)


    You may want to consider performance differences between using an IN and an INNER JOIN

    select columns

    from dbo.sometable

    where ItemCode in (select Item from #tempTable)

    -- AND --

    select columns

    from dbo.sometable st

    inner

    join...

  • RE: Improving Performance

    Junglee_George (2/11/2016)


    The hierarchy is there in the container data.

    The result of #content shows the actual container level hierarchy in the container list starting with the top most level container.

    If...

  • RE: Improving Performance

    Junglee_George (2/11/2016)


    I am using this particular query for an SSRS report

    It has two multivalue parameters Partners and containers

    When the user selects 45 partners and 42 corresponding containers, the performance issue...

  • RE: Improving Performance

    Can you describe in words exactly what the code is supposed to do? It looks like you have a hierarchy in there - have you explored some of the more...

  • RE: I need help with a scalar function.

    Orlando Colamatteo (2/10/2016)


    ChrisM@Work (2/10/2016)


    If it's only one, then the original scalar function returning the result to a variable would have been just fine - and it would have met Gail's...

  • RE: 4 Tables Join with comman column

    syed_3177 (2/10/2016)


    ....Further details provided.

    Thanks

    Further details will need to be provided! Minimum requirements:

    CREATE TABLE scripts for all tables.

    INSERT scripts to populate those tables with a few rows of data.

    A script to...

  • RE: I need help with a scalar function.

    GilaMonster (2/10/2016)


    ChrisM@Work (2/10/2016)


    GilaMonster (2/10/2016)


    ChrisM@Work (2/10/2016)


    and it would have met Gail's precautionary restrictions too.

    My comments had nothing to do with what the function returns, rather where to use it (not in...

  • RE: I need help with a scalar function.

    GilaMonster (2/10/2016)


    ChrisM@Work (2/10/2016)


    and it would have met Gail's precautionary restrictions too.

    My comments had nothing to do with what the function returns, rather where to use it (not in a DML...

  • RE: I need help with a scalar function.

    Orlando Colamatteo (2/9/2016)


    NineIron (2/9/2016)


    k

    Like this:

    CREATE FUNCTION dbo.fnPressGaneyDownload()

    RETURNS TABLE AS

    RETURN (

    SELECT CAST(

    ...

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (2/8/2016)


    Sean Lange (2/8/2016)


    Ack what a rough start to the week. My dog went for "last outs" about midnight last night and found a skunk. This is the second...

  • RE: Are the posted questions getting worse?

    Sean Lange (2/8/2016)


    Ack what a rough start to the week. My dog went for "last outs" about midnight last night and found a skunk. This is the second time in...

  • RE: How to get minimum date of an ID with respect to startdate?

    Charmer (2/8/2016)


    OMG,

    I am sorry, Chris. The script is still wrong.

    Just see the screen shot attached in here. The ID 4, having startdate '2016-01-27' should show '2016-01-26'

    instead of '2016-01-27'. because we...

  • RE: How to get minimum date of an ID with respect to startdate?

    Charmer (2/8/2016)


    Let me explain the requirement.

    I have to show the output with the changes happened to the point of startdate.

    If ID 1 has a start date of today, I have...

Viewing 15 posts - 1,756 through 1,770 (of 10,144 total)