troubleshooting Question

SQL - Data quality records that are missing addresses

Avatar of jose11au
jose11auFlag for Australia asked on
SQLMicrosoft SQL Server
6 Comments1 Solution12 ViewsLast Modified:
Hi All,

Could I please ask if this query is correct?

Basically I am looking for data quality issues where a record is missing address details. If either address_1, address_2 or address_3  is populated then the record is okay.

select  *
from Sales
where address_1 Is Null or address_2 Is Null or address_3 Is Null
First_name is not null or Last_name is not null
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros