Forum Replies Created

Viewing 15 posts - 4,036 through 4,050 (of 4,085 total)

  • RE: Need a Line Seperator Between Data

    There's actually another reason. SQL returns (a) result set(s). The blank line is simply not part of the result set, so your options are to separate your single...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Need a Line Seperator Between Data

    You shouldn't be doing formatting in T-SQL. You should be using a formatting tool like SSRS.

    You can trick T-SQL into doing this by adding a COMPUTE BY clause (which...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SSIS language translations

    Think of Translations as a big CASE statement. CASE Language

    WHEN 'French' THEN [French Description]

    WHEN 'English' THEN [English Description]

    WHEN 'Spanish' THEN [Spanish Description]

    etc.,

    Translations simply picks which columns to display based...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Query help??

    sarvesh singh (8/9/2009)


    How do you connect eventide to MeasuerID? Is it only by inserting order? Also how did you get the values for EventMeasureID?

    Eventmeasure table gets eventid from event...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to ORDER BY calculated/computed field ?

    yaya1899 (8/4/2009)


    It's working! Thanks a lot, Lynn Pettis and Allen 😀

    Who is this "Allen" that you are referring to?

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Dynamic Destination Field/Column Mapping

    If you can get those values, then probably the easiest thing to do is to create two calculated columns: one for Total Amount and one for Rate Amount. Populate...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Update one field when all conditions of the where statement is true

    One other thing. You do not need the TOP 100 PERCENT. It does absolutely nothing for you and might cause a performance hit.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Update one field when all conditions of the where statement is true

    For an EXISTS clause to work, you almost always want to have a correlated subquery. If you can run the subquery alone, then it's not a correlated subquery. ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to ORDER BY calculated/computed field ?

    Yeah, I noticed that the alias would not be recognized after I posted. I really should have tested before posting. I still prefer a CTE to a derived...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to ORDER BY calculated/computed field ?

    I don't think it's necessary to use both a CTE and a derived table here. The following is untested, but should work.

    WITH SQLPaging AS (

    SELECT...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Sometimes get IndexScan instead of IndexSeek

    How about an EXCEPT?

    SELECT t1.col1

    FROM T1

    EXCEPT

    SELECT t2.FkCol

    FROM T2

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Calculating custom score

    There are two variants of the CASE statement

    CASE <Expression>

    WHEN <Value Expression> THEN <Result Expression>

    or you can use

    CASE

    WHEN <Boolean Expression> THEN <Result Expression>

    You...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Date comparison help

    lduvall (8/3/2009)


    I want to pull records for sessions two weeks prior to their start date and I want to continue pulling them until two weeks after their end date. I'm...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Curly question I can't work out without cursors!

    ta.bu.shi.da.yu (8/3/2009)


    I'm thinking that I'll just use a cursor or a while loop. I was thinking of running the query as the select statement in the cursor, then find the...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Date conversion

    Jeff Moden (8/2/2009)


    Does SSRS have something in it to take an SQL DateTime and format it for display without disturbing the sortability of the underlying SQL DateTime?

    If all else...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 4,036 through 4,050 (of 4,085 total)