Hello folks, if you are preparing for technical interviews for software developer, system admin, data analyst, or data scientist, one skill you must prepare is SQL. It's one of the important topic for programmers, support engineers and DBAs as you have to deal with SQL in your day to day job. If you don't know, SQL is the declarative language that allows you to interact with the database. By using SQL you can insert, update, search, and delete data in a relational database. The code you write is called SQL queries and it's one of the essential skills for many technical people who have to deal with databases. That's why SQL queries are very popular in interviews and you will often see one or more SQL queries on interviews.
SQLrevisited
Blog to learn about SQL, database, Oracle, SQL Server, MySQL, PostgreSQL concepts and much more.
Friday, March 21, 2025
Wednesday, February 26, 2025
5 Ways to find the Second Highest Salary of Employee in SQL [Solved]
Hello guys, if you have attended programming or software development interview then you may have come across SQL queries. In the past, I have shared popular SQL queries from interviews and one of them is how to find the 2nd highest salary of employee in SQL. This is probably the most popular SQL query question I have come across in my career and I have seen it many times. When I first come across this one I have hard time to solve it but over the years, I have learned several ways to solve this problem and find the 2nd highest or even 3rd highest salary in SQL. Earlier, I have shared how to find Nth highest salary and in this article, I am going to share 5 different ways to find the second highest salary in SQL.
Difference between JOIN and SUBQUERY in SQL
Hey there! Ever found yourself at the crossroads of JOIN and SUBQUERY, wondering which path to take in your database adventures? Well, you're not alone! Today, I'm here to help you decipher the intriguing differences between these SQL techniques.
Difference between ISNULL and COALESCE in SQL Server
Hey there! Today, I'm diving deep into the fascinating world of SQL Server to unravel the mysteries of two essential functions: ISNULL and COALESCE. You've probably encountered these in your SQL adventures, but do you know when to use one over the other? Join me as I break it down.
Saturday, February 22, 2025
How to join two tables in a single SQL query? MySQL Example
Hello guys, if you are wondering how to join multiple tables in SQL to produce a combine result which contains columns from all tables but not sure how to do it then you have come to the right place. SQL Join is one of the basic concepts while working in databases or tables but yet less understood and most confusing topic for beginners and even intermediate developers. I compare Joins in SQL with Recursion in programming in terms of confusion because I have found that these two topics are special in their nature and you can't get it right with casual reading until you understand the concept and its various well.