Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

My technology blog on SQL Server, TSQL, XML, FILESTREAM and other areas of SQL Server.
Browse by Tags · View All
XML 112
TSQL 69
XQuery 69
XQuery Functions 67
XQuery Training 65
XQuery in TSQL 64
XQuery Tutorial 63
SQL Server XQuery 63
XQuery-Labs 57
BRH 38

Archive · View All
September 2008 32
August 2008 30
July 2008 21
August 2009 19
June 2009 19
May 2010 18
January 2009 15
January 2010 14
October 2008 14
June 2008 13

Another tricky scenario to test your solutions for TSQL Challenge 24

Feb 27 2010 7:13AM by Jacob Sebastian   

Lutz has submitted another tricky scenario where there are 3 records in the activity log for the same 30 minute slot.

Schedule Table
INSERT INTO TC24_Schedules (EmpName, Activity, StartTime, Duration) 
SELECT 'Tom', 'HR Meeting', '2010-01-04 09:30:00', '00:15'
UNION ALL
SELECT 'Tom', 'Training1', '2010-01-04 09:45:00', '00:30' 
UNION ALL
SELECT 'Tom', 'Lunch', '2010-01-04 10:15:00', '00:45'
Activity Log
INSERT INTO TC24_ActivityLog(EmpName, Activity, StartTime, Duration)
SELECT 'Tom', 'Training1', '2010-01-04 09:30:00', '00:15' 
UNION ALL
SELECT 'Tom', 'Training1', '2010-01-04 10:00:00', '00:10' 
UNION ALL
SELECT 'Tom', 'HR Meeting', '2010-01-04 10:00:00', '00:15' 
UNION ALL
SELECT 'Tom', 'Lunch', '2010-01-04 10:00:00', '00:05' 
UNION ALL
SELECT 'Tom', 'Lunch', '2010-01-04 10:30:00', '00:30'
Expected Result
Date       EmpName activity   SchSt SchDur ActSt ActDur
2010-01-04 Tom     HR Meeting 09:30 00:15  10:10 00:15
2010-01-04 Tom     Training1  09:45 00:30  09:45 00:25
2010-01-04 Tom     Lunch      10:15 00:45  10:25 00:35

Please note that there are no changes in the rules. This scenario is created based on the rules already published in the challenge. The purpose of this post is to help you test your solutions with yet another tricky scenario and make sure that it succeeds the test.

Thanks Lutz for building and submitting this.  If some of you have already created tricky scenarios to test your solutions, we will be very happy to publish them on your behalf. Alternatively, you can publish it on your blog/website and share a link here.

Tags: 


Jacob Sebastian
1 · 100% · 32002
0
Liked
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]