Forum Replies Created

Viewing 15 posts - 181 through 195 (of 2,469 total)

  • RE: Help with Query Design?

    hmm...weird...here's what I'd actually posted...

    John - I believe the query is checking for "InvoiceTotals.[Total Net]" not being zero first...

  • RE: Help with Query Design?

    John - I believe the query is checking for "InvoiceTotals.[Total Net]" not being zero first...

  • RE: A very strange date issue

    Read BOL on datetime datatypes...

    SQL Server recognizes date and time data enclosed in single quotation marks (') in these formats: 
    
    Alphabetic date formats (for example, 'April 15, 1998')
    
    
    Numeric date...
  • RE: Help with Query Design?

    I don't have time to test the query I posted but it should work based on the order of execution of a select statement...here's the outlined sequence from the (in)famous...

  • RE: Help with Query Design?

    I'm not quite sure but I think it has to do with the "order of execution"...

    Try this as well...

    select StaffDetails.[Employee],
    ISNULL(SUM(InvoiceTotals.[Total Net]), 0) AS TotalNet,
    ISNULL(SUM(InvoiceTotals.[Total CostBC]), 0) AS TotalCost
    from StaffDetails...
  • RE: Help with Query Design?

    You are probably using an inner join in your query and since there's no match for "MNO" in the "InvoiceTables" you don't see a result for that employee - change...

  • RE: Helping Out

    My David...aren't you a right old Narcissus ?!?! Where's all that understated British modesty that we hear so much about ?!

  • RE: Helping Out

    Martin - if you mean a "concierge" he really doesn't do all the stuff you want done - wrong person...I've already hired the person that you want...maybe I'll rent him...

  • RE: Same Position - Man makes more money

    "Quit and get another job" is really much easier said than done...you can be high-principled and quit, but the principles aren't going to pay the bills...

    I have just been talking...

  • RE: Helping Out

    I've fantasised about this for so long that I don't have to pause to think - a FACTOTUM - affectionately called "Facty" - my genie that I shall summon simply...

  • RE: Must delare the variable?

    At least your "trigger moments" are very few and far between - mine're increasing at an alarming frequency..

    However, I do not think you can...

  • RE: Must delare the variable?

    You'd have to use dynamic sql for this...also, your select should be a "set"..

    DECLARE @UseIt1 as varchar(100)
    EXEC ('SET ' + @UseIt1 + ' = 1')
    
  • RE: Between Versus ">= and <="

    They're identical - less wordy with using "between"...

    In fact, internally, SQL Server treats a "between" as ">= and <="..

    Two ways of checking this..

    1) look at the execution plan for both

    2)...

  • RE: Time for Training

    aah.."studies" are a whole new story altogether - almost all of them state the obvious - some of the more remarkable ones being:

    1) Older parents raise babies' health risks.

    2) More...

  • RE: SQL is burping

    thanks for the update - else folks may have spent hours trying to get to the bottom of this one..

Viewing 15 posts - 181 through 195 (of 2,469 total)