Forum Replies Created

Viewing 15 posts - 6,256 through 6,270 (of 15,381 total)

  • RE: PIVOT Me

    Revenant (11/18/2013)


    I think I will start on a QotD demonstrating pivot at its (hopefully) best.

    I look forward to it.

  • RE: Mass Delete Just Hangs

    Hi and welcome to the forums! It is nearly impossible to provide any kind of assistance based on the limited amount of information you provided. It sounds like maybe you...

  • RE: PIVOT Me

    timwell (11/18/2013)


    Sean Lange (11/18/2013)While the pivot seems a bit contrived here it does a good job of demonstrating how it can be used. ...

    The question does test your knowledge of...

  • RE: T-SQL Query

    maheshbabukadiyala 5816 (11/18/2013)


    Hi,

    I have a data like as follows

    Trandate ProductID CustomerID TranValue

    21-Nov-13 0233 GB10856 24

    and...

  • RE: Age

    valeryk2000 (11/18/2013)


    Just bumped on this:

    DECLARE @dob datetime

    SET @dob='1992-01-09 00:00:00'

    SELECT DATEDIFF(YEAR, '0:0', getdate()-@dob)

    Works ok. Who can explain '0:0' ?

    Actually it doesn't really work ok. See the posts on...

  • RE: PIVOT Me

    Revenant (11/18/2013)


    Sean Lange (11/18/2013)


    Revenant (11/18/2013)


    Sean Lange (11/18/2013)


    . . . While the pivot seems a bit contrived here it does a good job of demonstrating how it can be used. It...

  • RE: PIVOT Me

    Revenant (11/18/2013)


    Sean Lange (11/18/2013)


    . . . While the pivot seems a bit contrived here it does a good job of demonstrating how it can be used. It seems to be...

  • RE: PIVOT Me

    Stewart "Arturius" Campbell (11/18/2013)


    Sean Lange (11/18/2013)


    Technically speaking there are 2 possible correct answers.

    E,D,C,B,A,NULL is also a valid answer. The only ordering going on is to sort NULL to the end....

  • RE: T-SQL Query

    maheshbabukadiyala 5816 (11/18/2013)


    Hi all,

    i have a trandate and tranvalue,customer,product now i need to poulate a table with trandate,tranvalue(sales amount),customer,product,py_tranvalue and i need to populate cy_WTD,cy_MTD,CY_YTD and py_WTD,PY_MTD,PY_YTD in sql...

  • RE: redgate SQL search

    Lowell (11/18/2013)


    George i have the Redgate SQL Search plugin added, and it searches meta data only: object names from sys.objects, and definition text from sql_modules.

    Sean Lange And I have a...

  • RE: PIVOT Me

    Technically speaking there are 2 possible correct answers.

    E,D,C,B,A,NULL is also a valid answer. The only ordering going on is to sort NULL to the end. The order of the non...

  • RE: What's the best practice to replicate data in the same table on 2k5+

    halifaxdal (11/15/2013)


    I am looking for the best and simplest solution to quickly replicate data in the same table. e.g. I have 100 sample records in my table, how can I...

  • RE: filter behaving differently from query analyser versus when called through sproc

    TeraByteMe (11/15/2013)


    Using the term "Where Filter" is a pretty common way of referring to the WHERE clause conditiional filter. It maybe shorthand'ish but I don't see how anyone without putting...

  • RE: Function to list passenger names?

    You should look at the excellent code from Lowell. You should not be using a cursor for this...and NOLOCK is most certainly a bad idea here. Do you know all...

  • RE: filter behaving differently from query analyser versus when called through sproc

    TeraByteMe (11/15/2013)


    I am at my wits end to figure out why when i run the below code from within SSMS it returns no record but when it is used within...

Viewing 15 posts - 6,256 through 6,270 (of 15,381 total)