Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter by month and year
Message
De
10/01/2005 08:24:39
 
 
À
05/01/2005 09:34:35
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00974373
Message ID:
00975616
Vues:
10
Hi Winan,

T-SQL:
select * from table
where datepart(yyyy, salesdate) = 2004
and datepart(mm, salesdate) = 12
>Can someone please help me, I have some records with date field type, what I want to ask is simple: how to filter those records by month and year .. (ie. I want to show sales records with the following criteria:
>
>date field is salesdate
>
>month = 12
>year = 2004
>
>please advise .. thanks a lot in advance
>
>Regards
>Winanjaya
Magnus Nordin
VFP MCP

"We have tested the GUI on 5-year olds. Why? Beacuse they aren't braindead!"
Michael Spindler, Apple

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform