O'Reilly logo

What's New in SQL Server 2012 by Jon Reade, Rachel Clements

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Data Quality Services

Now let us jump straight into using DQS. We will begin by creating a basic table in SQL Server, which has some valid and invalid data that needs cleansing. Here is the table we are going to use for this example, followed by the code that created it:

Using Data Quality Services

The following code creates the table shown in the previous screenshot:

CREATE DATABASE TEST GO CREATE TABLE Customer ( CustomerName varchar(200), DateOfBirth datetime, Sex char(10), Salary int, LoanAmount int )
 GO INSERT INTO Customer VALUES ('John Smith', '01/February/1980', 'M', 50000, 100000), ('Alice Jones', '14/April/1990', 'Female', 75000, 1000), ('Simon Evans', '01/January/1900', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required