Advertisement

04.06.2008 at 07:26PM PDT, ID: 23300334
[x]
Attachment Details

SQL Server stored procedure to parse data prior to comparing

Asked by softdimensions in SQL Server 2008

Tags: Microsoft, SQL Server, 2000, T-SQL

I need to compare data between 2 fields (actually more but the solution to 1 will work for all).  The values in these fields are intended to be money type data but the website stores the data as text and does not validate the data so there are often times vaules such as NA, $, ^ and other non numeric characters.  My plan is 2 fold, 1-remove the non numeric characters and then 2-use the convert function to covert the data to INT from the varchar that it is now. Then I will be able to compare the data. The goal is a stored procedure that will have a select statement that I can display as an output.  The output form could be a VB form, Access Form, web page etc but I don't think that matters as long as I have a Select statement within the stored procedure that can be passed to the form.Start Free Trial
[+][-]04.06.2008 at 07:35PM PDT, ID: 21294038

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.06.2008 at 07:47PM PDT, ID: 21294072

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 05:27AM PDT, ID: 21296124

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Server 2008
Tags: Microsoft, SQL Server, 2000, T-SQL
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 1
Solution Grade: B
 
 
[+][-]04.07.2008 at 03:50PM PDT, ID: 21301210

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628