Viewing 15 posts - 31 through 45 (of 1,085 total)
Holy #$% Jeff! Thanks!
I will mess with this tomorrow; and probably save this in my stash of code.
February 5, 2007 at 8:19 pm
Thanks! I just could not get it through my thick head...
February 5, 2007 at 1:16 pm
I am a bit surprised at these reactions to you David. This is the Newbies forum, hence it is implied that you are not aware of requirments. Try...
February 5, 2007 at 1:11 pm
A timestamp is not simply a randomly generated number. It has to be based upon some value or point in time - otherwise it would be like a GUID or...
February 5, 2007 at 11:29 am
Jeff - two questions. [ tia ]
1) WHERE Name IS NULL - is that specific to your Master.dbo.spt_Values table?
2) Does this represent your answer with a Table...
February 5, 2007 at 9:26 am
Interesting! Is this because a NULL returned to some GUI's causes a problem?
It strikes me as a poor programming technique and a NULL should be handled in the GUI...
February 4, 2007 at 5:26 pm
I totally agree with John, but in the mean time, this should work:
DECLARE @food TABLE( Food varchar(35),
Type varchar(35))
INSERT INTO @food
SELECT 'Apple|Steak|Peanut', 'Fruit|Meat|Nut'...
February 2, 2007 at 1:44 pm
Oooops... Forgot a comma.
SELECT U.Uname, U.UnameFirst, U.UnameLast, WE.WXlinkItemID, WC.WCid,
COUNT( WC.WCid) AS totWorkedDays,
SUM( WC.WCtaskAmount) AS totWorkedUnits,
SUM( WC.WCbillableAmount) AS totBilledUnits,
ROUND( SUM( WC.WCtaskAmount *...
February 2, 2007 at 1:38 pm
Boy, this keeps changing... Try this, (it uses the Derived Table concept):
SELECT U.Uname, U.UnameFirst, U.UnameLast, WE.WXlinkItemID, WC.WCid,
COUNT( WC.WCid) AS totWorkedDays,...
February 2, 2007 at 1:21 pm
I missed one of your conditions:
SELECT SUM( WC.WCmileage) AS totMiles, WC.WCid
FROM workcompleted WC
INNER JOIN users U ON( U.Uname = WC.WCemployeeID) -- ?
INNER JOIN worktask...
February 2, 2007 at 12:50 pm
I have no way of testing this, but see if this works. BTW WHERE 1 = 1 is totally unnecssary.
SELECT SUM( WC.WCmileage) AS totMiles, WC.WCid
FROM workcompleted WC...
February 2, 2007 at 12:31 pm
Could you post your query without the extraneous tables and alias the names so we will know what columns belong to what tables?
Also, you may want to provide a...
February 2, 2007 at 11:08 am
It looks like you have multiple tables, (subjectrecord, worktask, etc.) with no alias and no join.
Could you write this using alias's so we can tell which columns are attached...
February 2, 2007 at 9:17 am
Do you want to exclude the entire record is any field, (column) is NULL or just the individual NULLs?
If it is the individual NULLs, then use the ISNULL() function. ...
February 1, 2007 at 1:53 pm
Ninja is correct. You can convert the value to an integer and attempt seeing the difference in that fashion.
Here is a query showing a 24 second difference and the...
February 1, 2007 at 11:48 am
Viewing 15 posts - 31 through 45 (of 1,085 total)