Forum Replies Created

Viewing 15 posts - 5,281 through 5,295 (of 6,486 total)

  • RE: Divide by Zero frustration

    IIF is going to eval BOTH parts (the THEN and the ELSE) even if it returns just one.

    Try this instead:

    = Round(

    ...

  • RE: ? how to calculate % in summing query

    You have to remember SQL Behavior as to mathematical operations: it will try to retain the data type it started with. So in your case - you're taking an...

  • RE: about HL7

    It's not a communication protocol. It's more like a grammar (it defines what elements should be within various types of communication).

    Protocol: set of rules established among groups.

    think of it...

  • RE: How do I increment a DB id

    Grant Fritchey (1/14/2008)


    I knew of the OUTPUT clause, but I'd only really thought of it for stuff like auditing. This is really useful. So, if you had a multi-row insert,...

  • RE: about HL7

    That's a BIG question. You might need to hit the books.

    Health Level 7

    HL7 is a protocol establishing data/record formats for passing medical information back and forth. It's been...

  • RE: Contracting question - Left old company, but still provide support.

    I was referring to "Professional insurance" and what is often referred to as Errors and Omissions insurance. Professional is the one covering the server you might knock over; E...

  • RE: Combining two records into one?

    The Alarms themselves should be their own entity (a.k.a table) with their own unique identifier. Would make this issue MUCH simpler.... That way you would have no issues...

  • RE: How do I increment a DB id

    Since you're in 2005 - you can avoid all of the scope_identity nonsense by using the OUTPUT predicate from within the INSERT statement.

    It looks something like

    declare @nextid as integer

    declare @tbl...

  • RE: Sum

    Try something like:

    select 'Table_a' as tablename, sum(total)as Total_of_All_Tables

    from table_a

    union

    select 'Table_b' as tablename,sum(total)as Total_of_All_Tables

    from table_b

    union

    select 'Table_c' as tablename,sum(total)as Total_of_All_Tables

    from table_c

    union

    select 'Table_d' as tablename,sum(total)as Total_of_All_Tables

    from table_d

  • RE: For XML Explicit Syntax to Normalize a table

    Youre XML is being mistaken for HTML formatting - of the site is "truncating" it.

    Before posting it - drop the XML into notepad, and run a find/replace to...

  • RE: Sum

    It also depends on how you want your results. You might care to UNION the summary statements together and do some more aggregation on it....

  • RE: CLR

    I was the other side of the testing with Jeff - so I'd largely agree with his assessment. I might throw in a few other categories (like - doing...

  • RE: Add incremental count to group of rows

    Well - technically it IS a triangular join, but it's one against the summary. So - you summarize first, then triangular join against it (essentially unrolling the summary).

    That being...

  • RE: 500,000th member mark

    I wonder who user #666,666 will be....hehe. We'll have to nickname them "nostradamus".

  • RE: Contracting question - Left old company, but still provide support.

    We'll have to define "not expensive", because E & O insurance for a developer or DBA isn't cheap, especially when you're touching someone's production systems (even if not directly). ...

Viewing 15 posts - 5,281 through 5,295 (of 6,486 total)