Viewing 15 posts - 181 through 195 (of 2,469 total)
hmm...weird...here's what I'd actually posted...
John - I believe the query is checking for "InvoiceTotals.[Total Net]" not being zero first...
September 19, 2006 at 5:04 am
John - I believe the query is checking for "InvoiceTotals.[Total Net]" not being zero first...
September 19, 2006 at 5:02 am
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...
September 15, 2006 at 1:08 pm
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...
September 15, 2006 at 11:40 am
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...
September 15, 2006 at 11:13 am
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...
September 15, 2006 at 9:33 am
My David...aren't you a right old Narcissus ?!?! Where's all that understated British modesty that we hear so much about ?!
September 15, 2006 at 7:05 am
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...
September 15, 2006 at 7:03 am
"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...
September 15, 2006 at 6:59 am
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...
September 15, 2006 at 6:49 am
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...
September 15, 2006 at 5:55 am
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')
September 14, 2006 at 7:39 pm
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)...
September 14, 2006 at 7:30 pm
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...
September 13, 2006 at 10:53 am
thanks for the update - else folks may have spent hours trying to get to the bottom of this one..
September 13, 2006 at 10:00 am
Viewing 15 posts - 181 through 195 (of 2,469 total)