Viewing 15 posts - 61 through 75 (of 105 total)
It looks like he's building the summary for the time column from the UserCode and the time the user starts viewing the account (WorkStart). Judging from the row with zero...
December 11, 2006 at 2:14 pm
I'm sure there's a nice way to consolidate everthing throwing in some left joins and isnulls (maybe a union or two) but here's a quick example:
Create Table #Employee(EmployeeID int, Employee_Name...
December 11, 2006 at 8:44 am
or then again you can always do a combination cross join and left join:
SELECT a.x, t.y FROM a LEFT JOIN (SELECT x, y FROM a CROSS JOIN b) t ON a.x =...
December 8, 2006 at 12:14 pm
To the eye, 'Won''t Fix' with two single quotes inside (the proper way to do it) appears to be 'Won"t Fix' with a double quote inside. but if we change...
December 8, 2006 at 6:49 am
Do you still come across this limit when you populate the Row Source Type with a callback function?
You could return a smaller chunk of the data but still have all...
December 6, 2006 at 9:34 am
No problem.
Take a look at the third(?) option mentioned above.
WHERE ecommerce.dbo.order_header.submitted_date >= @submitted_date and ecommerce.dbo.order_header.submitted_date < dateadd(d,1, @submitted_date)
November 30, 2006 at 10:50 am
If you want to stick to the current structure, you can do:
WHERE convert(datetime, convert(varchar, ecommerce.dbo.order_header.submitted_date, 101)) = @submitted_date
(there's probably a more elegant way of doing it that I'm blanking on
November 30, 2006 at 10:20 am
I think she means that she wants to get the last balance before the @as_of_date. Hopefully, there is just one entry per date (or we are dealing with a date...
November 29, 2006 at 9:48 am
Ah... I didn't think about breaking it out like that.
Still could get hard to manage as you add columns:
order by case when @sort1_columncode=1 and @sort1_direction=1 then Title
November 29, 2006 at 8:49 am
Just curious...
Any reason not to use the AVG aggregate?
(Is SQL Server smart enough not to compute the Sum twice if it were used? It is still just the one scan...
November 27, 2006 at 9:27 am
or maybe a trigger that checks for cross-posting users and inserts records in the private message table with the moderators' ids and a message consisting of a link to the...
November 24, 2006 at 8:52 am
Take the easy way out, why don't ya?
(sorry. that was wrong of me. there's always a chance the original poster didn't understand that first reply.)
November 24, 2006 at 4:50 am
Something like this is also a possibility (and a mess):
order by case when @sort1_direction = 1 then case @sort1_columncode when 1...
November 22, 2006 at 10:39 am
Check mine.
I'm saying "Don't do that!".
If you distribute the load correctly you can probably stay under 10.
CASE WHEN (11=12) OR (12=13) THEN CASE WHEN (11=12) THEN 1111 ...
November 17, 2006 at 9:44 am
Viewing 15 posts - 61 through 75 (of 105 total)