Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find the month status
Message
From
11/09/2007 13:11:25
 
 
To
11/09/2007 13:05:36
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01253723
Message ID:
01253725
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform