Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 5,504 total)

  • RE: Logic

    sounds like homework...

    There are three choices:

    a triangular self join,

    a recursive CTE, or

    a "quirky update" approach.

    If it's homework, go for the first. If it's performance critical and there are people...

  • RE: Sort Data by Time but start at specific time

    What's the data type of StartTime?

  • RE: Virtualize or not ?

    Gagne (12/22/2010)


    ...

    Lutz, that sounds like you're saying that generally speaking, virtualizing a SQL Server will impact performance and that it's all a question of whether it will slow it down...

  • RE: Calculate Customer counts daily

    Here's my approach:

    ; WITH cte AS

    (

    SELECT dt,id,MAX(statusdate) AS max_statusdate

    FROM ReportDate rd

    LEFT OUTER JOIN CustomerInfo ci ON ci.statusdate<=rd.dt

    GROUP BY dt,id

    )

    SELECT

    dt AS [Report DATE] ,

    SUM(CASE...

  • RE: Virtualize or not ?

    I, personally, find Brent Ozar's blog[/url] very informative ,especially including the comments and the follow-up article. Those two articles combined give a neutral (if possible at all) point of view...

  • RE: Help needed with code

    Paul,

    it seems like you're not really interested in helping us help you.

    Instead of providing the information we asked for multiple times you decide to open new threads with the...

  • RE: simple Query error

    Instead of using SELECT * you'd need to specify each column and use alias column names for the duplicates (like a.ACCOUNT, b.ACCOUNT, a.COD, c.CODE and maybe some more columns).

    The reason...

  • RE: Manipulate String

    JStevenson1 (12/22/2010)


    I have several value in a column called test.

    Select Statement: Select Test From Abc

    Output: JonDoe

    Desired Output: 'JonDoe'

    How do I achieve desired output?

    Something like the following code? (assuming all...

  • RE: Sql query Output in XML format

    Here's a version that will provide the structure as requested based on Waynes sample data and sample code (Thank you, Wayne!!).

    However, due to the DTD declaration you won't be able...

  • RE: Are the posted questions getting worse?

    May the Holidays be silent and without any release changes you need to take care of!

    My plan for the Holidays (with my kids):

    We have slightly more snow than...

  • RE: Sql query Output in XML format

    I'll have a look at it within the next hour. Promise.

  • RE: Help needed with code

    pwalter83 (12/22/2010)


    I have attached all the relevant documents which are being used for this query. Would that be enough ?

    Here's a short SQL puzzle for you:

    SELECT @answer = result FROM...

  • RE: Help needed with code

    pwalter83 (12/22/2010)


    Hi LutzM,

    What exactly do you need from my side to resolve this issue ?

    ...

    Please read and follow the instructions given in the first article referenced in my signature,...

  • RE: Howto: Produce 1 XML dataset from several queries

    sotn (12/22/2010)


    Hi Lutz,

    thanks for the reply.

    I am a little confused as my previous post shows that my tables have completely different field names and number of fields so I cannot...

  • RE: Howto: Produce 1 XML dataset from several queries

    sotn (12/22/2010)


    Any ideas how to produce this format?

    Yes (concept as mentioned before).

    For a coded version please provide ready to use sample data as described in the first link in my...

Viewing 15 posts - 2,356 through 2,370 (of 5,504 total)