Forum Replies Created

Viewing 15 posts - 5,686 through 5,700 (of 6,486 total)

  • RE: Using fields as columns to display the data in a different format

    never mind the dynamic right now - what do you get when you run these two statements?

    --statement #1

    select p.*

    from

    (SELECT Title,convert(char,Quality_date,112) Quality_date,serviceType,Amount

    from (select Title,Quality_date,TOT_ALL_RECS from DATA_QUALITY_OVERVIEW_TOTALS_AND_PERCENTAGES) p

    --statement #2

    select p2.*

    from...

  • RE: problem with float data type

    I understand that your VB code says 3.8...

    But - just put this into Excel and you get:

    5.23853E-32

    You got something stinky happening in the VB code....

  • RE: Best Guideline or Strategy when dealing with records

    One last thing to consider... Since Excel is so "eager" to hijack the handler for .CSV files, often enough I simply create those as my "excel integration" solutions. That...

  • RE: Use GETDATE() within a UDF

    Jim Russell (11/20/2007)


    When using a UDF in the where, run time goes from < .01 seconds to 2.14 minutes (134 seconds)

    -- Comment this is 13 thousand times slower

    I also...

  • RE: Using INSERT between dates?

    Jeff Moden (11/21/2007)


    Matt Miller (11/19/2007)


    Hey - if you're going to give me a new stapler, expect to find some things stapled.....:D

    Heh! If that's true, guess I need to give you...

  • RE: how to loop through all child nodes in XML for import process

    you want to look up the CROSS Apply example from the "XML Best Practices for SQL Server 2005". You can do ALL of that in one shot (no variable,...

  • RE: Dynamic Queries (not Dynamic SQL)

    R2ro (11/21/2007)


    ...

    WHERE

    (A = @varA AND @varA IS NOT NULL) OR --line1

    (B = @varB AND @varB IS NOT NULL) OR --line1

    (C = @varC AND @varC IS NOT NULL) OR

    (@varA IS...

  • RE: Using fields as columns to display the data in a different format

    You're doing a full transpose - so it gets a bit messier than that... Assuming you DO have SQL 2005 (since that's the forum you're on), here's an UNPIVOT/PIVOT method...

  • RE: Is possible an IF in a table function?

    keep in mind that this tactic kills any possibility of using indexes, AND will choke unless the two operands are of the same data type. Meaning - this will...

  • RE: TTYL

    now THAT's something I can understand (wi$ea$$ that is....)

    :hehe:

  • RE: TTYL

    Malcolm Daughtree (11/20/2007)


    Clip from Editorial

    "Whether we standardize on English .." Ummm there is no 'z' in standardise and there is a 'u' in 'Color'.

    Sorry to be contrary, but...

  • RE: Unable to connect between Developer and Trial edition.

    I'm assuming that's XP Pro 64, since that's the only one that technically can run the trial edition (according to system requirements).

    error 40 / error 53 usually means "no one...

  • RE: Query help needed

    It would help if we knew what the ID is that relates them to each other. Is there a patientID? an encounterID? something? Also - a table name...

  • RE: Foreign keys good or bad practice?

    aureolin (11/16/2007)


    More constraints equals better data quality, at the price of system usability. Less constraints equals more usability at the price of system integrity. As DBA's almost everyone will say...

  • RE: TTYL

    I was happy that I still needed to look several of those up....But you've now taught me some new ones....ugh.

    By the way - I'm thinking you meant AWHFY (and...

Viewing 15 posts - 5,686 through 5,700 (of 6,486 total)