Professional Documents
Culture Documents
Hands-On Activity # 3
Hands-On Activity # 3
1. Data Type - Check if the ingested data matches your defined data type.
SHOW CREATE TABLE <TABLE NAME>
2. Number of Columns – Check if the ingested number of columns is the same with your defined
mapping.
SHOW CREATE TABLE <TABLE NAME>
3. Order of Columns – Check if the ingested order of columns is the same with your defined
mapping.
SHOW CREATE TABLE <TABLE NAME>
4. Date Format – Check columns with date if it follows the defined format. (If applicable)
SELECT <column_name> FROM <table_name>
5. Precision and Scale - Check if the ingested data matches your defined field size.
(Including decimal if applicable)
SELECT MAX(LENGTH (<COLUMN NAME>))
SELECT COUNT (*) as total_count, COUNT (DISTINCT <primary key column>) as distinct_count
FROM <table_name>
**Null Count (Make sure that your primary key has no null value)