Many people reached out to me saying telegram may get banned in their countries. So I've decided to create WhatsApp channels based on your interests ππ
Free Courses with Certificate: https://whatsapp.com/channel/0029Vamhzk5JENy1Zg9KmO2g
Data Analysts: https://whatsapp.com/channel/0029VaGgzAk72WTmQFERKh02
MS Excel: https://whatsapp.com/channel/0029VaifY548qIzv0u1AHz3i
Jobs & Internship Opportunities:
https://whatsapp.com/channel/0029VaI5CV93AzNUiZ5Tt226
Web Development: https://whatsapp.com/channel/0029VaiSdWu4NVis9yNEE72z
Python Free Books & Projects: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L
Java Resources: https://whatsapp.com/channel/0029VamdH5mHAdNMHMSBwg1s
Coding Interviews: https://whatsapp.com/channel/0029VammZijATRSlLxywEC3X
SQL: https://whatsapp.com/channel/0029VanC5rODzgT6TiTGoa1v
Power BI: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c
Programming Free Resources: https://whatsapp.com/channel/0029VahiFZQ4o7qN54LTzB17
Data Science Projects: https://whatsapp.com/channel/0029Va4QUHa6rsQjhITHK82y
Learn Data Science & Machine Learning: https://whatsapp.com/channel/0029Va8v3eo1NCrQfGMseL2D
Improve your communication skills: https://whatsapp.com/channel/0029VaiaucV4NVik7Fx6HN2n
Donβt worry Guys your contact number will stay hidden!
ENJOY LEARNING ππ
Free Courses with Certificate: https://whatsapp.com/channel/0029Vamhzk5JENy1Zg9KmO2g
Data Analysts: https://whatsapp.com/channel/0029VaGgzAk72WTmQFERKh02
MS Excel: https://whatsapp.com/channel/0029VaifY548qIzv0u1AHz3i
Jobs & Internship Opportunities:
https://whatsapp.com/channel/0029VaI5CV93AzNUiZ5Tt226
Web Development: https://whatsapp.com/channel/0029VaiSdWu4NVis9yNEE72z
Python Free Books & Projects: https://whatsapp.com/channel/0029VaiM08SDuMRaGKd9Wv0L
Java Resources: https://whatsapp.com/channel/0029VamdH5mHAdNMHMSBwg1s
Coding Interviews: https://whatsapp.com/channel/0029VammZijATRSlLxywEC3X
SQL: https://whatsapp.com/channel/0029VanC5rODzgT6TiTGoa1v
Power BI: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c
Programming Free Resources: https://whatsapp.com/channel/0029VahiFZQ4o7qN54LTzB17
Data Science Projects: https://whatsapp.com/channel/0029Va4QUHa6rsQjhITHK82y
Learn Data Science & Machine Learning: https://whatsapp.com/channel/0029Va8v3eo1NCrQfGMseL2D
Improve your communication skills: https://whatsapp.com/channel/0029VaiaucV4NVik7Fx6HN2n
Donβt worry Guys your contact number will stay hidden!
ENJOY LEARNING ππ
π11β€9π1
Frequently asked SQL interview questions for Data Analyst/Data Engineer role-
1 - What is SQL and what are its main features?
2 - Order of writing SQL query?
3- Order of execution of SQL query?
4- What are some of the most common SQL commands?
5- Whatβs a primary key & foreign key?
6 - All types of joins and questions on their outputs?
7 - Explain all window functions and difference between them?
8 - What is stored procedure?
9 - Difference between stored procedure & Functions in SQL?
10 - What is trigger in SQL?
11 - Difference between where and having?
1 - What is SQL and what are its main features?
2 - Order of writing SQL query?
3- Order of execution of SQL query?
4- What are some of the most common SQL commands?
5- Whatβs a primary key & foreign key?
6 - All types of joins and questions on their outputs?
7 - Explain all window functions and difference between them?
8 - What is stored procedure?
9 - Difference between stored procedure & Functions in SQL?
10 - What is trigger in SQL?
11 - Difference between where and having?
π15β€2
Do not wait till you've mastered SQL till you apply to your first Data Analyst Job.
You can do both at the same time.
You can do both at the same time.
π21β€4π4
πHere's a breakdown of SQL interview questions covering various topics:
πΊBasic SQL Concepts:
-Differentiate between SQL and NoSQL databases.
-List common data types in SQL.
πΊQuerying:
-Retrieve all records from a table named "Customers."
-Contrast SELECT and SELECT DISTINCT.
-Explain the purpose of the WHERE clause.
πΊJoins:
-Describe types of joins (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN).
-Retrieve data from two tables using INNER JOIN.
πΊAggregate Functions:
-Define aggregate functions and name a few.
-Calculate average, sum, and count of a column in SQL.
πΊGrouping and Filtering:
-Explain the GROUP BY clause and its use.
-Filter SQL query results using the HAVING clause.
πΊSubqueries:
-Define a subquery and provide an example.
πΊIndexes and Optimization:
-Discuss the importance of indexes in a database.
&Optimize a slow-running SQL query.
πΊNormalization and Data Integrity:
-Define database normalization and its significance.
-Enforce data integrity in a SQL database.
πΊTransactions:
-Define a SQL transaction and its purpose.
-Explain ACID properties in database transactions.
πΊViews and Stored Procedures:
-Define a database view and its use.
-Distinguish a stored procedure from a regular SQL query.
πΊAdvanced SQL:
-Write a recursive SQL query and explain its use.
-Explain window functions in SQL.
β πThese questions offer a comprehensive assessment of SQL knowledge, ranging from basics to advanced concepts.
β€οΈLike if you'd like answers in the next post! π
πBe the first one to know the latest Job openings π
https://t.me/jobs_SQL
πΊBasic SQL Concepts:
-Differentiate between SQL and NoSQL databases.
-List common data types in SQL.
πΊQuerying:
-Retrieve all records from a table named "Customers."
-Contrast SELECT and SELECT DISTINCT.
-Explain the purpose of the WHERE clause.
πΊJoins:
-Describe types of joins (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN).
-Retrieve data from two tables using INNER JOIN.
πΊAggregate Functions:
-Define aggregate functions and name a few.
-Calculate average, sum, and count of a column in SQL.
πΊGrouping and Filtering:
-Explain the GROUP BY clause and its use.
-Filter SQL query results using the HAVING clause.
πΊSubqueries:
-Define a subquery and provide an example.
πΊIndexes and Optimization:
-Discuss the importance of indexes in a database.
&Optimize a slow-running SQL query.
πΊNormalization and Data Integrity:
-Define database normalization and its significance.
-Enforce data integrity in a SQL database.
πΊTransactions:
-Define a SQL transaction and its purpose.
-Explain ACID properties in database transactions.
πΊViews and Stored Procedures:
-Define a database view and its use.
-Distinguish a stored procedure from a regular SQL query.
πΊAdvanced SQL:
-Write a recursive SQL query and explain its use.
-Explain window functions in SQL.
β πThese questions offer a comprehensive assessment of SQL knowledge, ranging from basics to advanced concepts.
β€οΈLike if you'd like answers in the next post! π
πBe the first one to know the latest Job openings π
https://t.me/jobs_SQL
π24β€4
SQL Interview Ques & ANS π₯π
https://t.me/learndataanalysis/1156
https://t.me/learndataanalysis/1156
Here you can find the detailed answers for the above questions
ππ
https://medium.com/@data_analyst/top-25-sql-questions-to-crack-your-next-data-analytics-interview-de6ab3634e1e
ππ
https://medium.com/@data_analyst/top-25-sql-questions-to-crack-your-next-data-analytics-interview-de6ab3634e1e
π4
Frequently asked SQL interview questions for Data Analyst/Data Engineer role-
1 - What is SQL and what are its main features?
2 - Order of writing SQL query?
3- Order of execution of SQL query?
4- What are some of the most common SQL commands?
5- Whatβs a primary key & foreign key?
6 - All types of joins and questions on their outputs?
7 - Explain all window functions and difference between them?
8 - What is stored procedure?
9 - Difference between stored procedure & Functions in SQL?
10 - What is trigger in SQL?
11 - Difference between where and having?
1 - What is SQL and what are its main features?
2 - Order of writing SQL query?
3- Order of execution of SQL query?
4- What are some of the most common SQL commands?
5- Whatβs a primary key & foreign key?
6 - All types of joins and questions on their outputs?
7 - Explain all window functions and difference between them?
8 - What is stored procedure?
9 - Difference between stored procedure & Functions in SQL?
10 - What is trigger in SQL?
11 - Difference between where and having?
π11β€10
βCommon Mistakes In SQL JOINS
Interviewer can only trick you with two things in SQL JOIN questions!π€·
Maximum people are making the most common mistake in SQL JOIN even after gaining few years of experience!
What makes SQL JOIN tricky?
1. Duplicate Values
2. NULL
Once you understand handling both, you can solve any of the toughest SQL JOIN questions in any interview.
Read more.....
Interviewer can only trick you with two things in SQL JOIN questions!π€·
Maximum people are making the most common mistake in SQL JOIN even after gaining few years of experience!
What makes SQL JOIN tricky?
1. Duplicate Values
2. NULL
Once you understand handling both, you can solve any of the toughest SQL JOIN questions in any interview.
Read more.....
π12π2β€1π1
Here are some essential SQL tips for beginners ππ
β Primary Key = Unique Key + Not Null constraint
β To perform case insensitive search use UPPER() function ex. UPPER(customer_name) LIKE βA%Aβ
β LIKE operator is for string data type
β COUNT(*), COUNT(1), COUNT(0) all are same
β All aggregate functions ignore the NULL values
β Aggregate functions MIN, MAX, SUM, AVG, COUNT are for int data type whereas STRING_AGG is for string data type
β For row level filtration use WHERE and aggregate level filtration use HAVING
β UNION ALL will include duplicates where as UNION excludes duplicates
β If the results will not have any duplicates, use UNION ALL instead of UNION
β We have to alias the subquery if we are using the columns in the outer select query
β Subqueries can be used as output with NOT IN condition.
β CTEs look better than subqueries. Performance wise both are same.
β When joining two tables , if one table has only one value then we can use 1=1 as a condition to join the tables. This will be considered as CROSS JOIN.
β Window functions work at ROW level.
β The difference between RANK() and DENSE_RANK() is that RANK() skips the rank if the values are the same.
β EXISTS works on true/false conditions. If the query returns at least one value, the condition is TRUE. All the records corresponding to the conditions are returned.
Like for more ππ
β Primary Key = Unique Key + Not Null constraint
β To perform case insensitive search use UPPER() function ex. UPPER(customer_name) LIKE βA%Aβ
β LIKE operator is for string data type
β COUNT(*), COUNT(1), COUNT(0) all are same
β All aggregate functions ignore the NULL values
β Aggregate functions MIN, MAX, SUM, AVG, COUNT are for int data type whereas STRING_AGG is for string data type
β For row level filtration use WHERE and aggregate level filtration use HAVING
β UNION ALL will include duplicates where as UNION excludes duplicates
β If the results will not have any duplicates, use UNION ALL instead of UNION
β We have to alias the subquery if we are using the columns in the outer select query
β Subqueries can be used as output with NOT IN condition.
β CTEs look better than subqueries. Performance wise both are same.
β When joining two tables , if one table has only one value then we can use 1=1 as a condition to join the tables. This will be considered as CROSS JOIN.
β Window functions work at ROW level.
β The difference between RANK() and DENSE_RANK() is that RANK() skips the rank if the values are the same.
β EXISTS works on true/false conditions. If the query returns at least one value, the condition is TRUE. All the records corresponding to the conditions are returned.
Like for more ππ
π28β€11
Most Asked SQL Interview Questions at MAANG Companiesπ₯π₯
Preparing for an SQL Interview at MAANG Companies? Here are some crucial SQL Questions you should be ready to tackle:
1. How do you retrieve all columns from a table?
SELECT * FROM table_name;
2. What SQL statement is used to filter records?
SELECT * FROM table_name
WHERE condition;
The WHERE clause is used to filter records based on a specified condition.
3. How can you join multiple tables? Describe different types of JOINs.
SELECT columns
FROM table1
JOIN table2 ON table1.column = table2.column
JOIN table3 ON table2.column = table3.column;
Types of JOINs:
1. INNER JOIN: Returns records with matching values in both tables
SELECT * FROM table1
INNER JOIN table2 ON table1.column = table2.column;
2. LEFT JOIN: Returns all records from the left table & matched records from the right table. Unmatched records will have NULL values.
SELECT * FROM table1
LEFT JOIN table2 ON table1.column = table2.column;
3. RIGHT JOIN: Returns all records from the right table & matched records from the left table. Unmatched records will have NULL values.
SELECT * FROM table1
RIGHT JOIN table2 ON table1.column = table2.column;
4. FULL JOIN: Returns records when there is a match in either left or right table. Unmatched records will have NULL values.
SELECT * FROM table1
FULL JOIN table2 ON table1.column = table2.column;
4. What is the difference between WHERE & HAVING clauses?
WHERE: Filters records before any groupings are made.
SELECT * FROM table_name
WHERE condition;
HAVING: Filters records after groupings are made.
SELECT column, COUNT(*)
FROM table_name
GROUP BY column
HAVING COUNT(*) > value;
5. How do you calculate average, sum, minimum & maximum values in a column?
Average: SELECT AVG(column_name) FROM table_name;
Sum: SELECT SUM(column_name) FROM table_name;
Minimum: SELECT MIN(column_name) FROM table_name;
Maximum: SELECT MAX(column_name) FROM table_name;
Here you can find essential SQL Interview Resourcesπ
https://t.me/mysqldata
Like this post if you need more πβ€οΈ
Hope it helps :)
Preparing for an SQL Interview at MAANG Companies? Here are some crucial SQL Questions you should be ready to tackle:
1. How do you retrieve all columns from a table?
SELECT * FROM table_name;
2. What SQL statement is used to filter records?
SELECT * FROM table_name
WHERE condition;
The WHERE clause is used to filter records based on a specified condition.
3. How can you join multiple tables? Describe different types of JOINs.
SELECT columns
FROM table1
JOIN table2 ON table1.column = table2.column
JOIN table3 ON table2.column = table3.column;
Types of JOINs:
1. INNER JOIN: Returns records with matching values in both tables
SELECT * FROM table1
INNER JOIN table2 ON table1.column = table2.column;
2. LEFT JOIN: Returns all records from the left table & matched records from the right table. Unmatched records will have NULL values.
SELECT * FROM table1
LEFT JOIN table2 ON table1.column = table2.column;
3. RIGHT JOIN: Returns all records from the right table & matched records from the left table. Unmatched records will have NULL values.
SELECT * FROM table1
RIGHT JOIN table2 ON table1.column = table2.column;
4. FULL JOIN: Returns records when there is a match in either left or right table. Unmatched records will have NULL values.
SELECT * FROM table1
FULL JOIN table2 ON table1.column = table2.column;
4. What is the difference between WHERE & HAVING clauses?
WHERE: Filters records before any groupings are made.
SELECT * FROM table_name
WHERE condition;
HAVING: Filters records after groupings are made.
SELECT column, COUNT(*)
FROM table_name
GROUP BY column
HAVING COUNT(*) > value;
5. How do you calculate average, sum, minimum & maximum values in a column?
Average: SELECT AVG(column_name) FROM table_name;
Sum: SELECT SUM(column_name) FROM table_name;
Minimum: SELECT MIN(column_name) FROM table_name;
Maximum: SELECT MAX(column_name) FROM table_name;
Here you can find essential SQL Interview Resourcesπ
https://t.me/mysqldata
Like this post if you need more πβ€οΈ
Hope it helps :)
π15β€6
SQL Interview Questions !!
π Write a query to find all employees whose salaries exceed the company's average salary.
π Write a query to retrieve the names of employees who work in the same department as 'John Doe'.
π Write a query to display the second highest salary from the Employee table without using the MAX function twice.
π Write a query to find all customers who have placed more than five orders.
π Write a query to count the total number of orders placed by each customer.
π Write a query to list employees who joined the company within the last 6 months.
π Write a query to calculate the total sales amount for each product.
π Write a query to list all products that have never been sold.
π Write a query to remove duplicate rows from a table.
π Write a query to identify the top 10 customers who have not placed any orders in the past year.
Here you can find essential SQL Interview Resourcesπ
https://t.me/mysqldata
Like this post if you need more πβ€οΈ
Hope it helps :)
π Write a query to find all employees whose salaries exceed the company's average salary.
π Write a query to retrieve the names of employees who work in the same department as 'John Doe'.
π Write a query to display the second highest salary from the Employee table without using the MAX function twice.
π Write a query to find all customers who have placed more than five orders.
π Write a query to count the total number of orders placed by each customer.
π Write a query to list employees who joined the company within the last 6 months.
π Write a query to calculate the total sales amount for each product.
π Write a query to list all products that have never been sold.
π Write a query to remove duplicate rows from a table.
π Write a query to identify the top 10 customers who have not placed any orders in the past year.
Here you can find essential SQL Interview Resourcesπ
https://t.me/mysqldata
Like this post if you need more πβ€οΈ
Hope it helps :)
β€7π7