Microsoft
Software
Hardware
Network
Question : URGENT: Need help parsing string for several numeric values SQL database columns
I need to be able to parse column data :
--start example data found in one column (Column1)
Do you have definitions around how availability will be measured?;#5#Are availability requirements factored into the design?;#5#Are changes tested prior to implementation?;#5#Are RFC's initiated to minimize risk and impact to availability?;#5#Are your RFC's assessed for impact on existing and planned availability levels?;#5#Are your availability monitoring requirements identified?;#5#Are your availability threshold levels identified?;#5#Is a process followed when there are threshold breaches?;#5#Do you collect and maintain availability data?;#5#Is the availability data compared with historical data to calculate trends?;#5#Are your SLA's monitored for compliance?;#5#If an SLA is out of compliance is that highlighted and rectified?;#5#
--end example data--
These are answers to a survey. Each column (there are 9 of them) represents a group of questions and their answers. My most urgent need right now is to be able to extract the answers (the numbers within #s) and average them. So the query result for the column above would be:
Column1
5
I will need to do this totally using T-SQL queries. I won't be able to create stored procedures or functions on the database server.
Answer : URGENT: Need help parsing string for several numeric values SQL database columns
last line can be
select CAST ( @totals as float)/ CAST (@I as float )
this will give more exact figure
Random Solutions
WinMgmt errors in event log, started after applying latest updates
what is the difference between utf-8 or utf-7 both are unicode
Mailbox is missing after moving from Exchange 2003 to Exchange 2007
Nvidia Geforce 8400M GS in a Sony Vaio SZ650N/C WINDOWS 7 INCOMPATIBLE?
varchar sort
SBS 2003 - OWA external access issue
IIS7 WAS Error 5153 - Script Problem
Using Cell Value in a Formula
Network path not found or acess denied to Windows 2003 SBS while logged in as a domain admin on a client computer.
telnet not sending mail content?