Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find the month status
Message
De
11/09/2007 13:11:25
 
 
À
11/09/2007 13:05:36
Issam Mansour
Jordan Business Machines
Amman, Jordanie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01253723
Message ID:
01253725
Vues:
14
How about:

Select max(year_monthname) from mytable where month_closed = true
>Hi,
>
>I have a table shows 12 month and the status of each month if it's closed of not, how to find the last month closed in a SQL Staement, the file looks like this:-
>
>year 1 2 3 4 5 6 7 8 9 10 11 12
>2007 T T T T T T T T F F F F
>
>
>the field name are not numbers its just for the example
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform