I am the Co-Founder of The Data Monk. I have a total of 6+ years of analytics experience
3+ years at Mu Sigma
2 years at OYO
1 year and counting at The Data Monk
I am an active trader and a logically sarcastic idiot :)
Follow Me
1) The data types of the columns involved in a join condition need to be compatible.
2) A join condition involves columns that relate two tables in some logical way.
3) The columns specified in a join condition need to be specified in the SELECT statement with table alias.
Primary conditions for joining two tables on keys:
1. The key column should contain non-NULL values
2. The datatype of both tables’s column should be similar
Important conditions for joining 2 tables on a particular key :
1. The data type has to be similar with respect to table columns.
2. We need to use different Aliases for the columns with respect to the table name given in the select statement.
Answers ( 4 )
1) The data types of the columns involved in a join condition need to be compatible.
2) A join condition involves columns that relate two tables in some logical way.
3) The columns specified in a join condition need to be specified in the SELECT statement with table alias.
Primary conditions for joining two tables on keys:
1. The key column should contain non-NULL values
2. The datatype of both tables’s column should be similar
Important conditions for joining 2 tables on a particular key :
1. The data type has to be similar with respect to table columns.
2. We need to use different Aliases for the columns with respect to the table name given in the select statement.
Before joining two tables points to remember-
There should be no null values to avoid error.
Data type of columns should be similar.