Advertisement

03.28.2008 at 05:42AM PDT, ID: 23276949
[x]
Attachment Details

microsoft, sql server, database, date range query

Asked by rutgermons in MS SQL Server

Tags: microsoft, sql server, database, date range query

folks

i have a following working calendar data

CALENDAR      START      END
DAYCAL      1/1/2008      1/31/2008

i have a another table called shift with the workshifts performed along the following days per week

SHIFT      DAYSTART      STARTIME      FINISHTIME
DAY      SUNDAY      7:00      15:00
DAY      MONDAY      7:00      15:00
DAY      TUESDAY      7:00      15:00
DAY          WEDNESDAY      7:00      15:00
DAY      THURSDAY      7:00      15:00
DAY      FRIDAY      7:00      15:00


how based on my data can I display my data as working time/days between 1-1-2008 and 1-15-2008

i.e like so

1-Jan      7:00      15:00
2-Jan      7:00      15:00
3-Jan      7:00      15:00
4-Jan      7:00      15:00
5-Jan      7:00      15:00
6-Jan            
7-Jan            
8-Jan      7:00      15:00
9-Jan      7:00      15:00
10-Jan      7:00      15:00
11-Jan      7:00      15:00
12-Jan      7:00      15:00
13-Jan            
14-Jan            
15-Jan      7:00      15:00


all help will be greatly appreciated!

rStart Free Trial
[+][-]03.28.2008 at 05:46AM PDT, ID: 21229816

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 06:15AM PDT, ID: 21230038

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 06:18AM PDT, ID: 21230068

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: microsoft, sql server, database, date range query
Sign Up Now!
Solution Provided By: danielegs
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628