Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get Week number for date for month
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01219925
Message ID:
01231401
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
Try (not tested)
SELECT (DATEPART(dd, @dt)-1)/7+1
-- or
SELECT (DAY(@dt)-1)/7 + 1
>Sergey
>
>You wouldn't happen to know how to do this in SQL Server 2000 as part of a select statement would you?
>

>Try
>
>? INT((DAY(ldDate)-1)/7) + 1
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform