Welcome to my SQL interview preparation repository! Below are a collection of common SQL questions and theoretical concepts that are frequently asked in Data Science interviews.
- Write a query to add multiple columns in a table.
- Write a query to add/delete multiple columns in a table.
- Write a query to find out the 2nd highest value in a table.
- Find the maximum value without using ORDER BY.
- Find managers of all employees.
- Use of wildcards.
- If-else based questions.
- Find category-wise top value.
- Find/delete all the duplicate values.
- Joining tables.
- SQL Vs NoSQL Databases.
- Tables required for many-to-many relationships.
- Draw schema design for swiggy.
- Types of Joins -> Union Vs Union All
- OLAP Vs OLTP [Normalized Vs Denormalized Data]
- Database keys
- Types of normalization
- What are indexes in Databases and what are its types
- What are transactions in databases? Explain ACID properties.
- Define
- Views
- Stored Procedures
Feel free to contribute by adding more questions or improving existing solutions!
Contributions are welcome! If you have additional SQL questions or improvements to existing solutions, feel free to open a pull request.
This repository is licensed under the MIT License. See the LICENSE file for details.