#datavalidation #datadescritption #BigQuery
Based on a hands-on activity of Google Data Analytics Professional issued by Coursera
File > Download (csv file) the reference table automobile_data


Create a new data set: open Big Query console, go to the Explorer pane in your workspace to add data


Create a table (first create a project and a dataset)




Get an initial understanding of the data table by clicking on the PREVIEW tab

Enlarged view

Check the data according to a given data description.
Requirement 1: the fuel_type column should only have two unique string values: diesel and gas.

Requirement 2: Length column should range from 141,1 to 208,1.

Requirement 3: manage null data in the number of doors column.
Select all lines with a null value in num_of_doors colum with a query

Update this null value with four (4) with this query:

Note that Update operation requires a billing account (you can skip). Repeat the same for mazda
Requirement 4: check potential errors for number of cylinders column

“tow” in line 7 is a spell-check error. It should be “Two”

Requirement 5: ensure consistency
Getting data from a table using SELECT statements.
De-duplicating data using commands like DISTINCT and COUNT + WHERE.
Manipulating string data with TRIM to remove extra spaces in a string and SUBSTR to get a portion of a string.
Creating/dropping tables with CREATE TABLE and DROP TABLE per create or delete tables.
Changing data types with CAST TO Convert the results of an expression to the given type.

















