Forum Replies Created

Viewing 15 posts - 6,136 through 6,150 (of 15,381 total)

  • RE: Nested CASE WHEN in SELECT

    Yes David is on the right path here. A case expression has not bearing on the number of rows returned, it merely affects the values for a single column in...

  • RE: Aggregate data based on 1 hour intervals

    DaveDB (12/12/2013)


    Hello,

    I need to write a SQL query that aggregates data based on 1 hour intervals. So, basically I would need something that lists all available times: (6:30 - 7:30),...

  • RE: Cursor or Temp Files?

    Gillian_Pappas2002 (12/12/2013)


    Thank you very much Kurt. That is awesome and is exactly what they are looking for.

    Pardon my ignorance but I have never seen ;with before, and are you...

  • RE: Cursor or Temp Files?

    Gillian_Pappas2002 (12/12/2013)


    Thank you Sean.

    Sorry about the mess.

    Hi. Thank you again for your response. That works very well to get rid of either status C or O, but what they want...

  • RE: #Value error in SSRS

    Please don't start new threads just because nobody answered your other one.

    Please direct replies here.

    http://www.sqlservercentral.com/Forums/Topic1522455-1633-1.aspx

  • RE: Cursor or Temp Files?

    Gillian_Pappas2002 (12/12/2013)


    Hi. Thank you again for your response. That works very well to get rid of either status C or O, but what they want me to do...

  • RE: Cursor or Temp Files?

    Gillian_Pappas2002 (12/12/2013)


    Hi Everyone.

    I have a collection of records linked by a customer order number. For each like customer order number I want to check the status on them. ...

  • RE: Why we used Aggregate function in pivot and cross tab queries ?

    Shadab Shah (12/12/2013)


    Why do we used aggregate function in pivot operator and cross tab queries . Any link to blog or video explanning my question can do.

    Thanks.

    No offense intended but...

  • RE: Median or Average function for char(10) = '0-5'

    mario17 (12/12/2013)


    Hi,

    I have this setup and need to do calc on this columns, is there any anylitical function that I can apply directly to get int=2.5 fro this

    I...

  • RE: SQL Running forever

    Scalar functions are notoriously poor for performance. You have a scalar function nested inside of a scalar function. Then you call that same scalar not once but twice in your...

  • RE: error handling stroed proc

    tsandeep1407 (12/11/2013)


    ...but raiserrror() is executing from catch block not the try block....

    HUH?

    You have a RAISERROR in both the TRY AND the CATCH.

    I would think that if you are trying to...

  • RE: error handling stroed proc

    tsandeep1407 (12/11/2013)


    trying to create a storeproc for error handling...so that all my team members call this sp in their catch blcoks...could it be even better than below?

    Did you try this?...

  • RE: add the internal email field to the view

    ramyours2003 (12/11/2013)


    Hi,

    its not the db mail i wanted to add\update a value in view

    alter YourView as

    select [OriginalColumns], YourNewColumn

    from ...

  • RE: Union Join between 3 SQL Queries

    Hi and welcome to the forums!!! In order to help we will need a few things:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form...

  • RE: SQL syntax error

    eobiki10 (12/10/2013)


    Thanks, I will try that tomorrow in office

    No problem. Make sure you read that article. This code is highly unlikely to work as is on your system. 😛

Viewing 15 posts - 6,136 through 6,150 (of 15,381 total)