Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 checking for version of database

Author  Topic 

Rayman
Starting Member

39 Posts

Posted - 2010-09-22 : 15:48:50
Good Day,

I am working on trying to find out the version of SQL database in a table

Current table

database_version

sql2000 version 1.0223
sql2005 version 2.113 rev 1
sql2000 version 1.0223
sql2005 version 3.0220 rev 2

My goal is to produce output to look like this

SQL 2000 SQL2005
YES NO
NO YES
YES NO
NO YES

Any help would be appreciated. Thank you

Terry L King

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2010-09-22 : 17:38:01
quote:

I have the following table with the data:

Database_date

11/30/08 1:52 AM
12/31/08 9:22 AM
3/17/08 11:22 AM
1/4/09 11:22 PM

I would like to determine how to produce the sql code to display the information by the following output;

Month AM PM
1 November YES NO
2 December NO YES
3 March YES NO
4 January NO YES

Any suguestions would be appreciated. Thank you

Terry L King



This question looks familiar

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

Rayman
Starting Member

39 Posts

Posted - 2010-09-22 : 17:54:50
yes, I should have said that I need to produce output
that displays the following:

two columns, with yes or no

SQL 2000 SQL 2005
YES NO
NO YES
YES NO
NO YES

Terry L King
Go to Top of Page
   

- Advertisement -