Forum Replies Created

Viewing 15 posts - 1,441 through 1,455 (of 4,085 total)

  • RE: To Index a Computed Column...

    It looks like you are using string manipulation to convert your CoverageEffectiveDateKey and CoverageEndDateKey from yyyymmdd format to mm/dd/yyyy format.  DATEDIFF is perfectly capable of handling strings in yyyymmdd format, so don't...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Today's Random Word!

    TomThomson - Friday, December 15, 2017 9:28 AM

    ManicStar - Friday, December 15, 2017 5:57 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: INDEX MATCH IN SQL.... IS IT POSSIBLE??

    Let me put this another way.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: INDEX MATCH IN SQL.... IS IT POSSIBLE??

    craig.jenkins - Friday, December 15, 2017 7:51 AM

    HI Drew, whilst I appreciate what you are saying;  as a newbee to sql all...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: INDEX MATCH IN SQL.... IS IT POSSIBLE??

    craig.jenkins - Friday, December 15, 2017 12:59 AM

    Hi Drew,

    thanks for coming back to me.  I can't really post expected results as I dont...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Is there any obvious performance difference between updating 1 column in a 4 column wide table vs 1 columns in a 1000 column wide table ?

    koustav_1982 - Thursday, December 14, 2017 12:53 PM

    I have a table with 4 columns and 10 million rows in which I want...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: how does sql stmt gets executed ?

    You should also know that you can use CTEs to partially control the order of processing.  The entire CTE has to be evaluated before it can be used later in...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Row count differences with CTE vs Temp table Vs view

    aaron.reese - Thursday, December 14, 2017 5:11 AM

    don't see why it would make a different but try swapping the UNION for UNION...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: INDEX MATCH IN SQL.... IS IT POSSIBLE??

    Please post expected results.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: UPDATE with JOINS and WHERE clause

    You haven't defined the relationship between the table that you are updating and the source data, so it's as if you're updating every single row in the table with every...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Sum case question

    And instead of using MONTH() try using DATEPART(QUARTER, <yourdatefield>)

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Importing XML in SQL Table

    Here is an alternate method that does not require a pivot.


    SELECT
    *
    FROM OPENXML(@hDoc, 'appt_links/appt_link',1)
    WITH
    (

    [ResourceID] [nvarchar](10) 'Field[@name="ResourceID"]',
    [FromActivityID] [nvarchar](10)...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Group by Date, Then take 1st row of each id

    CoffeeHeaven - Wednesday, December 13, 2017 8:18 AM

    aaron.reese - Wednesday, December 13, 2017 8:02 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Group by Date, Then take 1st row of each id

    CoffeeHeaven - Wednesday, December 13, 2017 8:11 AM

    Thanks for looping in. I tried this, but it's returning all widgets grouped by...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Looking for an optimal solution

    My solution is to use the right tool for the job.  In this case it's a reporting tool such as SSRS.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Viewing 15 posts - 1,441 through 1,455 (of 4,085 total)