Forum Replies Created

Viewing 15 posts - 2,581 through 2,595 (of 4,085 total)

  • RE: Run a query to update lat/long

    Have you checked out the following article Geocode Addresses in T-SQL[/url]? I've never tried it, so can't really offer any more than that.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Looping across databases

    Lookup sys.sp_MSforeachdb

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Sequential read from table

    This type of processing is referred to as RBAR (Row By Agonizing Row), because it is a HORRIBLY inefficient approach in the vast majority of cases. Why don't you tell...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Inner Join

    sqlnewbie17 (6/6/2016)


    How do I inner join between 2 tables(inner join TableA.ColA=TableB.ColA) with this kind of data ?

    My comparision values from TableA will be values after the '-' i.e (SS,SE,SD,SA)

    TableA ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: T-SQL: Aggregate and/or conditional subquery on where clause

    TheSQLGuru (6/6/2016)


    I didn't read all this thread, and I'm not going to start now. 😉 But it is REALLY hard to think of a scenario in which this WHERE clause...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: T-SQL: Aggregate and/or conditional subquery on where clause

    Jacob Wilkins (6/6/2016)


    I didn't say it will return only rows with RN=1 and transtype='Shipment'.

    I said it will return all such rows.

    The "period" was to indicate that the current...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: T-SQL: Aggregate and/or conditional subquery on where clause

    Jacob Wilkins (6/6/2016)


    It sounds like the problem is that you're returning rows where current quantity is 0, which violates one of your requirements.

    If that's the case, then at least that...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Alternate Way to Write query: ISNULL function causing issues

    chandan_jha18 (6/6/2016)


    So is there no way out of this mess? Is it possible to have a new table with same structure with a computed column where we do a bulk...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: T-SQL: Aggregate and/or conditional subquery on where clause

    marcossuriel (6/6/2016)


    Hello Drew,

    I was out for a few days. I'm back to work today. I'm sad to report that your solution doesn't produce the correct results when I put it...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Alternate Way to Write query: ISNULL function causing issues

    Eirikur Eiriksson (6/6/2016)


    Quick thought, the isnull statement is redundant ad null is never equal to null. It will on the other hand impede performance as the resulting execution plan will...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Are the posted questions getting worse?

    Ray K (6/6/2016)


    drew.allen (6/6/2016)


    Ray K (6/5/2016)


    WayneS, nice to finally meet you in Philadelphia this past Saturday. Good to place faces to all the names and aliases from here in...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Concatenation and Comma Assistance Required!!!

    A little clarification on the reasoning behind Luis' code.

    The reason to use the STUFF function, is that it can replace a string of one length with a string of another...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Are the posted questions getting worse?

    Ray K (6/5/2016)


    WayneS, nice to finally meet you in Philadelphia this past Saturday. Good to place faces to all the names and aliases from here in the forums!

    BTW, I...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Beginning a CTE

    Wayne West (6/3/2016)


    I don't always drink beer, but when I do, I put a semi-colon in front of it. 😀

    This is why I like Mladen Prajdic's SSMS Tools[/url]: Ctrl-A, Ctrl-K,...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Filtering out characters with substring

    It's essentially an XML fragment. Why don't you treat it as such?

    DECLARE @String varchar(512) ='<iframe src="http://player.vimeo.com/video/3782iiii?title=0&byline=0&portrait=0&autoplay=1" width="704" height="396" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'

    SELECT CAST(REPLACE(REPLACE(@String, '&', '&'), 'AllowFullScreen', 'AllowFullScreen="true"')...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 2,581 through 2,595 (of 4,085 total)