Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

SQL query to change column value name as different name

$
0
0

Hello, Sorry for question, I'm really beginner of SQL.

I made simple queary to gather information:

select Operating_System_Name_and0 as 'OperatingSystem', Netbios_Name0 as 'ComputerName'
FROM v_R_System;

Output:

OperatingSystemComputerName
Microsoft Windows NT Workstation 6.1X01040
Microsoft Windows NT Workstation 6.1X01042
Microsoft Windows NT Workstation 6.1X01041
Microsoft Windows NT Workstation 6.1X01043
Microsoft Windows NT Workstation 6.1X01044
Microsoft Windows NT Workstation 6.1X01045
Microsoft Windows NT Workstation 6.1X01046
Microsoft Windows NT Workstation 6.1X01047

Microsoft Windows NT Workstation 6.1

I would like to change all values of Microsoft Windows Workstation 6.1 to Windows 7.

I hope I should use:WHERE

Could someone give suggestion, little bit help or article how to make it?

It should be just for output, not DB edit and replace value

X01048



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>