Viewing 15 posts - 19,276 through 19,290 (of 26,490 total)
Let us throw in another monkey into the wrench. What happens if the job is started at 20 minutes after the hour, and for various reasons ends up running...
August 11, 2009 at 2:03 pm
Using your test setup try the following:
select RunnerId, [1] as Contest1, [2] as Contest2
from
(select Id, RunnerId, ContestId from #tblResults) p
pivot (
count([Id])
for ContestId in ([1],[2])
) as pvt
order by RunnerId;
August 11, 2009 at 1:43 pm
It isn't a bug in SQL Server 2008 (and yes, there are SQL Server 2008 forums available). I changed the datatype from time to datetime and ran your original...
August 11, 2009 at 1:23 pm
Assumptions:
1. Single Reporting Job: Report Job
2. Multiple Schedules:
Schedule 1, every hour between 6:00 AM and 6:00 PM (i.e 6:00, 7:00, 8:00,...)
Schedule 2,...
August 11, 2009 at 1:05 pm
GilaMonster (8/11/2009)
Chad Crawford (8/11/2009)
Gianluca Sartori (8/11/2009)
Maybe it's time to start the "Should you use your...
August 11, 2009 at 12:37 pm
Untested, but you could give this a try:
with MaxFundDate (
Fund_Number,
Fund_Valuation_Date
) as (
select
Fund_Number,
max(Fund_Valuation_Date
from
...
August 11, 2009 at 12:08 pm
You could use isnull(tb.ID,0), but that still doesn't match with anything in your sample data.
August 11, 2009 at 11:41 am
Based on your sample data, the only way I see to do this is with the following code:
select
*
from
dbo.TableA ta
...
August 11, 2009 at 11:16 am
Shark Energy (8/11/2009)
And surely these should both work if...
August 11, 2009 at 10:29 am
Okay, now I'm slightly confused. One, what are your requirements? We also could use the DDL for your tables, sample data for your tables, and the expected results...
August 11, 2009 at 10:09 am
Glad it worked, and thanks for the feedback.
August 11, 2009 at 9:57 am
Interesting. Too bad publications that do tech edit and peer review articles don't post warnings on their articles as well. I have read misinformation on other sites and...
August 11, 2009 at 9:53 am
GilaMonster (8/11/2009)
Gianluca Sartori (8/11/2009)
Barry is leading a new wave...A boring one.... 😉
Now where's that pic of Qui-gon I had lying around.....
If I were an ubber-geek, I'd figure out how to...
August 11, 2009 at 9:42 am
novice_coder (8/11/2009)
Gianluca Sartori (8/11/2009)
SELECT *
FROM TableA
LEFT JOIN TableB
ON (TableA.ID1=TableB.ID1 AND...
August 11, 2009 at 9:27 am
SA (8/11/2009)
George any update on this? I will be evaluating different options shortly and would like to know if you got to the bottom of this.
I second George on still...
August 11, 2009 at 9:16 am
Viewing 15 posts - 19,276 through 19,290 (of 26,490 total)