Forum Replies Created

Viewing 15 posts - 1,651 through 1,665 (of 4,085 total)

  • RE: Bit vs. Int in return code

    vincentshanecurtis - Thursday, August 10, 2017 7:22 PM

    Since a bit only has two values 1 or 0, yes or no, on or...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Exclude weekends

    I wasn't sure if you needed to also account for holidays.  I came up with this approach that would account for holidays, but it does require a calendar table.  (You...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Are the posted questions getting worse?

    Brandie Tarvin - Wednesday, August 9, 2017 12:35 PM

    Thom A - Wednesday, August 9, 2017 8:47 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Stored Procedure help

    ExhibitA - Wednesday, August 9, 2017 4:52 AM

    Is there a Lehmans explanation available? 

    thanks in advance

    Did you perhaps mean a "layman's explanation"?

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Converting Hour and Minute to Decimal

    ravikaliappan - Wednesday, August 9, 2017 3:47 AM

    I tried this it doesn't work

    SELECT CONVERT(datetime, 0x17041D49FCC2D488)
    SELECT CONVERT(datetime2, 0x17041D49FCC2D488)

    First, you should...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: INFORMATION_SCHEMA views

    I used to use INFORMATION_SCHEMA exclusively, until I was trying to use them to quickly review the definitions of stored procedures and found out that the definitions are limited to...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Evaluating use of InMemory tables... Why is it slower than temp tables?

    Eric Mamet - Tuesday, August 8, 2017 11:04 AM

    I created a table like this
    CREATE TABLE blahblahblah(
      LeafLevelDatasetId  INT...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How Important Is The Semi-Colon In Coding Stored Procedures?

    Thom A - Friday, August 4, 2017 8:02 AM

    drew.allen - Friday, August 4, 2017 7:51 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Max Dates and Joins

    There are two main options for this, and which one performs better depends on the typical number of records on the many side of the relationship.  The CROSS APPLY works...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Update NULL values - SQL Help

    Jason A. Long - Thursday, August 3, 2017 3:46 PM

    Here's a solution that only takes a single pass over the data an....

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How Important Is The Semi-Colon In Coding Stored Procedures?

    GilaMonster - Friday, August 4, 2017 1:58 AM

    rigerta.demiri21 - Friday, August 4, 2017 1:54 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Using PATINDEX To Determine If A String Is Alpha

    DesNorton - Friday, August 4, 2017 12:09 AM

    You can also make the function much more efficient and also enable it to go...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Issue with Final Output of Update statement using Window Function

    The problem is that you are doing an implicit CROSS JOIN.  Here is the explicit version of what you are doing.

    update tbl
    set sequel = tbl.sequel_Inner

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Percentage symbol questions

    Wouldn't it be easier to just use the function designed specifically for this purpose?

    SELECT CAST(DATEADD(SECOND, @time, '00:00') AS TIME(0))

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Date Range in Table A also contained in Table B

    The main issue is that the intervals in your second table aren't packed.  Here is an article that discusses Packing Intervals.

    The approach I took was to pack...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 1,651 through 1,665 (of 4,085 total)