Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hours of day availability
Message
De
12/07/2011 15:44:50
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01517976
Message ID:
01518007
Vues:
47
Thank you Naomi!, I'm working on the calendar table.

>Assuming you have a Calendar table that has hours intervals and days.

>select min(Interval) as NextAvailable from Calendar C
>where not exists (select 1 from Assignments A where A.[DayOfWeek] = C.[Day Of Week]
>and A.[Interval] = C.[Interval])
>were C.[DayOfWeek] = 'Tuesday';

>If it's not broken, fix it until it is.
John Harold Belalcázar Lozano
Associate Director Of Development
http://www.belvicto.co/
jhbelalc@gmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform