Forum Replies Created

Viewing 15 posts - 436 through 450 (of 1,249 total)

  • RE: Easy way to search for a string any where within XML column?

    This may not sound elegant, but a two step approach is to query out the entire xml string with the Results To File setting selected. Save the results to a...

    ----------------------------------------------------

  • RE: Easy way to search for a string any where within XML column?

    Tommy 70494 (11/2/2016)


    Thank you!

    it works, right out of the box.

    I don't know why I didn't think of this.

    I guess I got caught up in the fact that it was XML.

    The...

    ----------------------------------------------------

  • RE: Calculate Percent of Readmission

    Briceston (11/1/2016)


    Thank you for your insight. Your example was not exactly what i needed to answer my question, mainly due to a new Id is issued for a readmission. ...

    ----------------------------------------------------

  • RE: Easy way to search for a string any where within XML column?

    Does this help ?

    DECLARE @tbl TABLE

    (

    id INT,

    col XML

    )

    INSERT INTO @tbl

    VALUES

    (1,'<name><name1>aht</name1></name>'),(2,'<name>6</name>')

    select *

    from @tbl

    where col.value('(/name)[1]','varchar(10)')='aht'

    ----------------------------------------------------

  • RE: Case Statement Update

    Ed Wagner (11/1/2016)


    I had to read it twice because I was looking for the trick. Nice, straightforward question. Thanks.

    Thanks Ed. No tricks, though it is the day after...

    ----------------------------------------------------

  • RE: Calculate Percent of Readmission

    Below is a sample of the underlying data. Please excuse me if I did not use the correct code, and for the headers not being completely aligned.

    Reporting YearReg AreaOrignalAdmissionOrignalDischargeReadmissiondischargedatedays between...

    ----------------------------------------------------

  • RE: WHAT TO DO WHEN DBCC CHECKDB(REPAIR_ALLOW_DATA_LOSS) FAILS

    Hello, our server hard disk crashed due to power failure and all the backups were on the hard disk. Before just before it did we had managed to copy the...

    ----------------------------------------------------

  • RE: Accidentally Overwrote Stored Procedure

    Lynn Pettis (10/28/2016)


    Chris Wooding (10/27/2016)


    Just as an aside; I have got into the habit of using the "Script as create" instead of "Script as alter" or "Modify" options when looking...

    ----------------------------------------------------

  • RE: Bit of a rant - queries on space

    I am being asked to cherry pick the important stuff.

    Depending on who you ask, if you go around the company eventually you might find most all of it...

    ----------------------------------------------------

  • RE: Looking for way to dynamically replace street suffix with abbreviation based on tables

    And for any outside service that does cleansing, just be mindful about any protected information in your agreements from which you get these addresses. I see no issue with standardizing...

    ----------------------------------------------------

  • RE: Can I do this?

    I DID NOT say "Users are entering data", what I said was "We get tables" - meaning these are tables exported from other systems where the limits are not...

    ----------------------------------------------------

  • RE: Looking for way to dynamically replace street suffix with abbreviation based on tables

    As for ongoing maintenance, there is a fancy cliche out there ... something like "machine learning." It means that new codes that are not familiar would get captured by the...

    ----------------------------------------------------

  • RE: Looking for way to dynamically replace street suffix with abbreviation based on tables

    Maybe this helps? It may not look pretty, but it it worked for me given your requirements of removing the final suffix if it is directional and standardizing the street...

    ----------------------------------------------------

  • RE: Counting field values per day between specific date ranges

    Just one item of consideration that I wanted to throw out there. The bookings can change from day to day, since from a business perspective I imagine each booking can...

    ----------------------------------------------------

  • RE: One to many in a t-sql statement

    If you must have all in one row, you can opt for the names of the people on the project to be stored in a XML type column.

    ----------------------------------------------------

Viewing 15 posts - 436 through 450 (of 1,249 total)