Forum Replies Created

Viewing 15 posts - 4,636 through 4,650 (of 8,761 total)

  • RE: Need to calculate PS1 time and Ps2 time from two tables

    rsrvas (9/4/2015)


    Thanks a lot..it really helped me..It solved my issue

    You are very welcome!

    😎

  • RE: Are the posted questions getting worse?

    Ed Wagner (9/3/2015)


    Eirikur Eiriksson (9/3/2015)


    Has anyone seen the Crystal ball?

    😎

    Given what you were given, I think you did pretty well. If you nailed it, then we know who has...

  • RE: Help Needed in cross logic Query

    KGJ-Dev (9/3/2015)


    Thanks Eirik for the straightforward method. Appreciated.

    You are welcome.

    😎

    Quick question, will you always know the number of columns in the output?

  • RE: Help Needed in cross logic Query

    born2achieve (9/3/2015)


    Hi Eirik is there performance difference between pivot and cross tab? Curious to know. Thanks

    In simple terms there is hardly any difference on smaller sets (10K rows or less),...

  • RE: Are the posted questions getting worse?

    Ed Wagner (9/3/2015)


    Eirikur Eiriksson (9/3/2015)


    Has anyone seen the Crystal ball?

    😎

    Given what you were given, I think you did pretty well. If you nailed it, then we know who has...

  • RE: Help Needed in cross logic Query

    Jayanth_Kurup (9/3/2015)


    pivot makes sense if the message column is a int or numerical data type on which aggregations need to be performs else if the number of messages is static...

  • RE: Help Needed in cross logic Query

    Quick cross-tab suggestion

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    Declare @Store table(id int primary key identity(1,1),StoreId int);

    Declare @Message table(StoreId int, Messages varchar(100));

    Insert into @Store(StoreId)

    select 100 union all select 200 union all select 300 union...

  • RE: Are the posted questions getting worse?

    Has anyone seen the Crystal ball?

    😎

  • RE: Need to calculate PS1 time and Ps2 time from two tables

    rsrvas (9/3/2015)


    Hi All,

    I have 2 tables as defined below. I want to calculate PS1time and Ps2 time.

    Table 1

    O_IDP_TYPEP_startdateP_enddate

    ABCP8/24/2015 13:148/24/2015 13:41

    ABCP8/24/2015 14:038/24/2015 15:31

    ABCP8/25/2015 12:098/25/2015 13:25

    XYZP8/28/2015 13:108/28/2015 21:44

    Table 2

    O_IDS_TYPES_startdateS_enddate

    ABCS28/24/2015 13:148/24/2015 19:22

    ABCS28/24/2015 19:228/30/2015...

  • RE: Today's Random Word!

    whereisSQL? (9/3/2015)


    eccentricDBA (9/3/2015)


    crookj (9/3/2015)


    Ed Wagner (9/3/2015)


    Eirikur Eiriksson (9/3/2015)


    Ed Wagner (9/3/2015)


    Ray K (9/3/2015)


    Ed Wagner (9/3/2015)


    Logical

    Spock

    Ambassador

    Brand

    Image

    Spawn

    Worker

    Ant

    Colony

  • RE: Are the posted questions getting worse?

    TomThomson (9/3/2015)


    Ed Wagner (9/3/2015)


    I would definitely attend your presentation on DBCC Timewarp. However, given the topic, expect some serious heckling. 😉

    Those who have never heard of it will sit...

  • RE: Today's Random Word!

    Ed Wagner (9/3/2015)


    Ray K (9/3/2015)


    Ed Wagner (9/3/2015)


    Logical

    Spock

    Ambassador

    Brand

  • RE: Are the posted questions getting worse?

    Ed Wagner (9/3/2015)


    Grant Fritchey (9/3/2015)


    Alvin Ramard (9/3/2015)


    Jeff Moden (9/3/2015)


    Alvin Ramard (9/3/2015)


    Grant Fritchey (9/3/2015)


    Another funny one today. Provided a DMV and a link to the documentation. I was asked "Is that...

  • RE: Parameter conversion

    patilar (9/3/2015)


    you can use Fn_split () function . The Code for it is available in google

    Quick suggestion, don't use the Fn_split function, use DelimitedSplit8K [/url]instead

    😎

  • RE: Wrapping of text in HTML(XML)

    sandhyak16 (9/3/2015)


    Hi,

    I am using FOR XML to generate the HTML and following is my query. I am using td { white-space:nowrap;} for the columns to used no wrap. But i...

Viewing 15 posts - 4,636 through 4,650 (of 8,761 total)