Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 4,085 total)

  • RE: Weird Character

    Luis Cazares - Tuesday, January 9, 2018 1:29 PM

    drew.allen - Tuesday, January 9, 2018 1:13 PM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Weird Character

    I copied and pasted the character from your post and I got that it was Unicode 8722 – the MINUS SIGN.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: T-SQL sorting

    I guess that I'll dissent.  There are certain very limited situations where sorting by ordinal position is useful. ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Weird Character

    It looks like an en-dash

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SELECT all negative values, that have a positive value

    J Livingston SQL - Tuesday, January 9, 2018 10:31 AM

    wild guess.....

    SELECT ABS(id)
    FROM yourtable
    GROUP BY ABS(id)
    HAVING(COUNT(DISTINCT grp) > 1);

    I'm still thinking...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Selecting records where column contains specific integer in specific position

    daniness - Tuesday, January 9, 2018 9:25 AM

    Hi All,

    Can anyone please advise on how to go about returning records where an int datatype column contains...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Issue with ROW OVER partition

    You're overcomplicating things.  You're using two separate methods to find the MAX() date.  You only need one.

    SELECT
        [TSI].[ZATS_BROKER_FEED].[HTS_NUMBER]
    ,    #TEMP1.Part_Num
    ,    1 -- This will always be...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Row inserts for groups of rows (Totals for groups of like data).

    subramaniam.chandrasekar - Monday, January 8, 2018 10:47 PM

    bswhipp - Thursday, January 4, 2018 7:23 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Filter By AND e not for OR/AND

    Jeff Moden - Thursday, January 4, 2018 7:53 AM

    I don't know squat about SSAS.  Can it actually use a T-SQL query where...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: delete records from table which are not active.

    You're asking for advice from the Internet on what records to delete from your database?

    Only you can say whether the query is right, but you should ALWAYS TEST...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Today's Random Word!

    ManicStar - Wednesday, January 3, 2018 2:48 PM

    Ed Wagner - Wednesday, January 3, 2018 1:12 PM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Divide column data into equal parts

    OFFSET/FETCH was introduced in SQL 2012 specifically to handle paging, which is what you are trying to do.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Row inserts for groups of rows (Totals for groups of like data).

    SELECT fvendno, fcompany, POItemKey, PORelsdate, SUM(totstdcost) AS TotStdCost
    FROM #mytable
    GROUP BY fvendno, fcompany, GROUPING SETS( (POItemKey, PORelsdate, ID), () )
    ;

    This only requires 1 scan,...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: XML Query help

    Since you're only looking for ONE row, there is no reason to use the relatively expensive .nodes() function.

    SELECT @XML.value('(/tokens/token/typeid/text())[1]', 'int') AS typeidid,
        @XML.value('(/tokens/token/p1/text())[1]', 'decimal(6,3)') AS p1id

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor - Tuesday, January 2, 2018 1:59 PM

    drew.allen - Tuesday, January 2, 2018...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Viewing 15 posts - 1,366 through 1,380 (of 4,085 total)