fbpx

2. Locating Empty Rows

This advanced SQL exercise is part of the book: Advanced SQL – Practical Techniques and Use-Cases, which includes 100 day-to-day SQL challenges (and solutions), need-to-know advanced features, and key concepts.
 

Following the previous exercise, the same company also needs to locate empty rows. The process of transferring data from Excel to SQL Server sometimes results in transferring rows whose entire fields are empty (equal Null). In the following exercise you are asked to locate all Null rows and delete them.

 

Locating Empty Rows in Specific Table

Given the following customer table:

CREATE TABLE customers  
        (customer_id int,   
         customer_name varchar(250),   
         customer_address varchar(250),  
         customer_age int)  
GO  

To read more

UpScale Analytics is one of the largest platforms in the world for learning SQL by doing, consisting over 300 SQL exercises at different levels (including solutions), by topics, across over 100 different datasets. More…