Blog to learn about SQL, database, Oracle, SQL Server, MySQL, PostgreSQL concepts and much more.
Thursday, October 24, 2024
How to use WHERE and HAVING clause in SQL? Example Tutorial
Difference between MySQL vs NoSQL (non relational DB) - Pros and Cons
Hello guys, if you are wondering whether to choose a NoSQL database like MongoDB, Cassandara, or MySQL for your application then you have come to the right place. In an earlier article, MySQL vs PostgreSQL I had shared the pros and cons of choosing MySQL over PostgreSQL for your application, and in this article, I am going to show the benefits and drawbacks of choosing MySQL over NoSQL or vice-versa.
How to do Pagination in SQL Server? Query Example Tutorial
What is pagination?
Transposing data in SQL - Example Tutorial
What is Transposition?
A transposition is when data is rotated from one row or column to another in order to modify the data layout and make observations from a different perspective. Row to the column, column to column, and bidirectional transposition are examples of basic transposition algorithms. Others, such as dynamic transposition, transposition with inter-row computations, and join-based transposition, are more complicated. All are prevalent in data analytics and so worthy of investigation.Wednesday, October 23, 2024
SQL cross join Example and it's performance
Hello guys, in the past, I gave you a quick overview of SQL JOINS where we learned about different types of JOINS like right, left, inner, and outer join, and in this article, we'll learn about the SQL CROSS JOIN idea in this post, and we'll back up our knowledge with simple examples and illustrations. So, let's start with the basics.
Difference between DDL and DML commands in SQL with examples
What are SQL commands?
Saturday, October 19, 2024
MySQL vs PostgreSQL? Pros and Cons
Friday, October 18, 2024
What is Virtual columns in MySQL and How to use it? Example Tutorial
What is a Virtual Column and where is it used?
Top 5 Common Errors and Mistakes in SQL and How to Solve Them
After writing some SQL code, you're ready to query your database. You type in the code, and nothing happens. Instead, you're presented with an error notice. Don't give up! SQL, like any other computer language, is prone to coding mistakes. We'll go through a few frequent mistakes individuals make while creating SQL in this tutorial.
Wednesday, October 16, 2024
How to use ROW_NUMBER() Function in SQL with nondeterministic order? Example Tutorial
The ROW NUMBER window function has a wide range of uses, much beyond the apparent ordering requirements. Most of the time, while computing row numbers, you need to do it in a specified order, which you provide in the function's window order clause.
How to filter data in SQL? WHERE, LIKE, and BETWEEN Example
Difference between Primary and Foreign key in Database and SQL
Wednesday, October 2, 2024
How to concatenate columns in SQL Server? Example Tutorial
Hello guys, welcome to my new blog SQLrevisited. I have long back created this blog to exclusively share SQL and Database articles but never get time to start it until today. This is the first article on this blog and in this post, you will learn how to contact multiple columns in an SQL server. Like Java and many other programming languages and databases, you can use the + operator to concatenate multiple columns in SQL Server. You can join as many columns as you want with the + operator but you must remember that concatenating with NULL will produce NULL, which means you can lose the information from other columns if one of them is NULL.
Thursday, September 5, 2024
Top 6 Free SQL Books For Beginners and Experienced [PDF + Online]
There is no doubt that SQL is one of the most essential skills for Programmers, IT professionals, Software Engineers, Quality Analysts, Project Manager, Data scientists, Database admins, and Business Analysts. I had even mentioned this as one of the top skills in my post about 10 things every programmer should know, if you haven't read that yet, you can read it here, it's completely worth your time. Since many Enterprise applications use the relational database at their backend, like Oracle, Microsoft SQL Server, MySQL, it's crucial to learn SQL to work with those applications and use the data stored on those databases.
Wednesday, September 4, 2024
How to join two unrelated tables in SQL? Cross Join Example
In one of the recent programming job interviews, one of my readers was asked the question, how do you join two tables which are not related to each other? i.e. they don't have any common column? is it possible in SQL? My reader got confused because he only knows about INNER join and OUTER join which require a key column like dept_id which is the primary key in one table like Department and foreign key in another table like Employee. He couldn't answer the question, though he did tell them about you can select data from multiple tables by typing multiple table names in from clause using a comma.
Tuesday, September 3, 2024
Difference between UNION and UNION ALL in SQL Server?
Hello guys, what is the difference between UNION vs UNION ALL is one of the most popular SQL interview questions and often asked programmers during a telephonic round of interviews. Though both UNION and UNION ALL is used to combine results of two SELECT queries, the main difference between them is that UNION doesn't include duplicate record but UNION ALL does. Another difference between them is that UNION ALL is faster than UNION but may look slow because it returns more data which takes more time to travel via the network. The difference between UNION and UNION ALL can be a tricky SQL question, especially for developers, who have not used this useful keyword ever.
Monday, September 2, 2024
10 Examples of ALTER Table Command in SQL
In this SQL tutorial, you will learn how to use ALTER command in the table on the database. ALTER command is mainly used to add, modify and drop columns, indexes, and constraints on the table in relational databases e.g. MySQL, Oracle, Sybase, and SQL Server. Though ALTER is not part of classical CRUD operation but it’s one of the important DDL commands. One of the most frequent uses of ALTER command in SQL is adding and removing indexes to improve the performance of SQL SELECT queries.
Sunday, September 1, 2024
Difference between View vs Materialized View in Database or SQL
The difference between View and Materialized view is one of the popular SQL interview questions, much like truncate vs delete, correlated vs noncorrelated subquery, or primary key vs unique key. This is one of the classic questions which keeps appearing in SQL interviews now and then and you simply can’t afford to learn about them. Doesn’t matter if you are a programmer, developer, or DBA, these SQL questions are common to all. Views are a concept which not every programmer is familiar with, it is simply not in the category of CRUD operation or database transactions or SELECT query, its little advanced concept for the average programmer.
Saturday, August 31, 2024
When to use TRUNCATE vs DELETE command in SQL?
While working with the database we often need to delete data, sometimes to create more space, sometimes just remove all data to make the table ready for the next day's transaction, or sometimes just selectively remove stale data. SQL provides a couple of handy commands to remove data e.g. truncate, delete and drop. The last one is a bit different because instead of removing data it just deletes the table. What is the difference between truncate and delete command in SQL or when to use truncate vs delete is one of the most frequently asked SQL interview questions?
Friday, August 30, 2024
How to use JOIN Multiple Tables in MySQL? Example Tutorial
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. Things get worse when the table locked due to such SQL Join queries which were fired without knowing how much time it would and how big the result set could be.
Thursday, August 29, 2024
What is table scan, index scan, and index seek in SQL? Interview Question
Hello guys, a good understanding of how the index works and how to use them to improve your SQL query performance is very important while working in a database and SQL and that's why you will find many questions based upon indexes on Programming Job interviews. One of such frequently asked SQL questions is the real difference between table scan, index scan, and index seek? which one is faster and why? How does the database chooses which scan or seek to use? and How you can optimize the performance of your SQL SELECT queries by using this knowledge. In general, there are only two ways in which your query engine retrieves the data, using a table scan or by using an index.
Wednesday, August 28, 2024
Difference between Self and Equi Join in MySQL
The main difference between Self Join and Equi Join is that In Self Join we join one table to itself rather than joining two tables. Both Self Join and Equi Join are types of INNER Join in SQL, but there is a subtle difference between the two. Any INNER Join with equal as join predicate is known as Equi Join. SQL Joins are the fundamental concept of SQL similar to correlated and noncorrelated subqueries or using group by clause and a good understanding of various types of SQL join is a must for any programmer.
Tuesday, August 27, 2024
Don't use SELECT * in Production Query
Hello guys, if you are doing a code review and see a SELECT * in production code, would you allow it? Well, its not a simple question as it looks like but let's find out pros and cons about using SELECT * in a production SQL query and then decide. I have read many articles on the internet where people suggest that using SELECT * in SQL queries is a bad practice and you should always avoid that, but they never care to explain why? Some of them will say you should always use an explicit list of columns in your SQL query, which is a good suggestion and one of the SQL best practices I teach to junior programmers, but many of them don't explain the reason behind it.
Monday, August 26, 2024
When to use EXISTS and NOT EXISTS in SQL? SQL Server Example
Hello guys, if you are wondering how to use the IF EXISTS and NOT EXISTS in SQL then you are at the right place. Earlier, I have shared how to use GROUP BY, WHERE, and HAVING clause and in this tutorial I will share how to use exists and not exists clause in SQL. The IF EXISTS and NOT EXISTS commands in T-SQL are covered in depth in this article. When comparing data sets using subqueries, it also illustrates why EXISTS should be preferred over IN and NOT EXISTS over NOT IN.
Saturday, August 24, 2024
Top 50 Database and SQL Interview Questions Answers for 2 to 5 Years Experienced
Hello guys, whether you are preparing for Java developer interview or any other Software Developer Interview, a DevOps Interview or a IT support interview, you should prepare for SQL and Database related questions. Along with Data Structure, Algorithms, System Design, and Computer Fundamentals, SQL and Database are two of the essential topic for programming or technical Job interview. In the past, I have shared many questions related to MSSQL questions, Oracle Questions, MySQL questions, and PostgreSQL questions and in this article, I am going to share both theory based and query based Database and SQL Interview questions with to the points answers.
Friday, August 23, 2024
What is temporary table? Example Tutorial
Hello folks, if you have heard the term temporary table online or by your colleague in a call and wondering what is temporary table, what is the difference between a normal table and a temporary table, and when and how to use it then you have come to the right place. In this blog, we shall learn how to use a temporary table in SQL. But before we go into that we need an overview of SQL. What is SQL? SQL stands for Structured query language. it is a programming language used in communicating or relating to the relational database.
Thursday, August 22, 2024
Difference between 1NF, 2nd NF, 3rd NF and BCNF? Normalization Example Tutorial
Wednesday, August 21, 2024
How to convert String to Integer SQL? Example Tutorial
Tuesday, August 20, 2024
Top 10 SQL Commands and Functions Every Developer should learn
Hello guys, if you are starting with SQL and wondering which commands you should learn first then you have come at the right place. In this article, I have shared 10 most essential SQL commands and functions which I believe every programmer should learn. This includes commands to pull data from database as well write data into data, update data, and remove data from database. While writing in the SQL language, you will utilize an assortment of SQL keywords to make explanations and questions. An assertion includes a series of characters and SQL keywords that adjusts to the designing and grammar rules of the language and may influence information or control processes corresponding to your information.
Monday, August 19, 2024
How to remove tables in Oracle, MySQL and SQL Server? DROP table Example
Hello guys, if you want to learn about DROP command in SQL then you have come to the right place. Earlier, I have shared the best free SQL and Database courses and several tutorials to learn SELECT, GROUP BY, and other important commands, and in this article, I will show you to use the DROP command in SQL. DROP is one of the basic SQL commands, which is used to DROP database objects. Since it's part of ANSI SQL, the DROP command is supported by all major database vendors, including Oracle, MySQL, and Microsoft SQL Server.
Sunday, August 18, 2024
Top 20 PL/SQL Interview Questions with Answers for 1 to 3 years
Hello guys, if you are preparing for Oracle or PL/SQL Job or a Developer job where PL/SQL skills are needed and looking for frequently asked PL/SQL Interview Questions then you have come to the right place. Earlier, I have shared both best PL/SQL courses and best PL/SQL books and in this article, I am going to share popular PL/SQL Interview Questions you can revise before your interview. Preparing for PL/SQL Interview is not a rocket science and you can prepare for it the same way you prepare for other interviews.
Saturday, August 17, 2024
Difference between VARCHAR vs CHAR data type in SQL Server? (with Example)
Hello all, today, I am going to share an interesting SQL Server interview question, which will not only help you in your interview but also in your day-to-day work. It explains one of the critical concepts of SQL Server, the difference between VARCHAR and CHAR data type. I am sure, you all have used both of them numerous times but because it's so common many of us ignore the difference between them and when asked to choose between VARCHAR and CHAR on interviews, they fail to give a convincing reason.
Friday, August 16, 2024
Top 20 MySQL Interview Questions and Answers for 1 to 3 years Experienced
Hello guys, if you are preparing for MySQL and Database interview or a Java developer role with MySQL experience and looking for frequently asked MySQL interview questions and answers then you have come to the right place. Earlier, I have shared popular SQL Interview Questions and common SQL queries from Interviews and in this article, I will share frequently asked MySQL database interview questions with answers. MySQL is very vital as far as web application is concerned. Therefore, this is an area that cannot be taken for granted. This simply means that various questions regarding MySQL have to be asked whenever you are seeking a job.
Thursday, August 15, 2024
Second Highest Salary in MySQL and Microsoft SQL Server - LeetCode Solution
Hello guys, if you are practicing SQL or preparing for tech interview then you may have seen this problem on Leetcode, write a SQL query to get the second highest salary from the Employee table.
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
For example, given the above Employee table, the second highest salary is 200. If there is no second highest salary, then the query should return NULL. You can write SQL query in any of your favorite databases e.g. MySQL, Microsoft SQL Server, or Oracle.
Wednesday, August 14, 2024
Correlated vs Non-correlated subquery in SQL
Hello guys, the difference between correlated and non-correlated subquery is one of the popular SQL interview question and an important concept for any programmer to learn. The correlated subquery is one of the tricky concepts of SQL. It's similar to recursion in programming which many programmers struggle to understand, but like recursion, it also offers the unique capability to solve many SQL query-based problems like the second-highest salary problem where you need to compare one row of the table to another row. It gives you a different kind of power.
Difference between Primary key vs Unique key in a Table
The primary key and unique key are two important concepts in a relational database and are used to uniquely identify a row in a table. Both primary key and unique keys can identify a row uniquely but there is some subtle difference between them which we will see in this article. In fact, primary key vs unique is a popular SQL interview question along with classics like truncate vs delete and How to manage transactions in a database, mostly asked to fresher and 2 to 3 years experience guys in any programming language.
Sunday, June 30, 2024
How to get the version of Microsoft SQL Server Database ? 3 Examples
SELECT @@VERSION
This will print product, version, operating system and other details.
It will print Many times while working with SQL SERVER database, we need the version and this is the quickest way to get it.
But this is not the only way, you can also get the SQL SERVER version from Object explorer by right click on any node and looking at details, which we will learn in this article.
Why Knowing Your SQL Server Version is Important
Before we start, let's talk about why this matters. Knowing your SQL Server version is like knowing which grade you're in at school. It helps you:
- Use the right tools and tricks
- Keep your database safe and happy
- Know when it's time for an upgrade
Now, let's dive into our three easy ways to find out your SQL Server version!
In this blog post we will se three examples of how to get the SQL Server version:
- Using the @@VERSION command
- Using the SERVERPROPERTY function
- Checking the version in SQL Server Management Studio
Example 1: Ask SQL Server Directly
Imagine you could ask SQL Server, "Hey, how old are you?" Well, you can! Here's how:
SELECT @@VERSION
When you run this, SQL Server will tell you everything about itself, including its version. It's like it's introducing itself at a party!
Here is sample output but it can vary depending upon where exactly you are running this
Microsoft SQL Server 2019 (RTM-CU8) (KB5000642) - 15.0.4083.2 (X64)
Feb 15 2021 01:24:17
Copyright (C) 2019 Microsoft Corporation
Developer Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 19042: )
Example 2: Use a Special Built-in Function
SQL Server has a special function that tells you its version. It's like a secret handshake! Here's how to use it:
SELECT SERVERPROPERTY('ProductVersion')
This will give you a number like "15.0.2000.5". The first part (15) is the main version number.
Example 3: Check the Version in SQL Server Management Studio
If you're using SQL Server Management Studio (SSMS), finding the version is as easy as looking at the label on your lunchbox:
- Open SSMS
- Connect to your SQL Server
- Right-click on the server name
- Click on "Properties"
- Look for "Version" in the window that pops up
It's like peeking at the answer sheet, but it's okay because it's your own SQL Server as shown below:
That's all about 3 ways to find the version of Microsoft SQL Server. Now you know three super easy ways to find out which version of SQL Server you're using. It's important to know this so you can take good care of your database and use all the cool features available.
Remember, keeping your SQL Server up-to-date is like getting new shoes when you outgrow your old ones. It helps you run faster and do more!
- How to use WHERE and HAVING clause in SQL
- How to convert String to Date in SQL?
- Difference between Primary key and Unique key
- Does order of columns matter in Composite index?
- Difference between Self and Equi join in SQL
- 10 Example of SELECT queries in SQL
- 6 Examples of Correlated subqueries for beginners
- How to get rows between two given dates in MSSQL
- How to remove duplicate rows from table in SQL Server
- How to create and rollback transaction in database?
- 4 Examples of CASE expression in SQL Server
- Difference between UNION and UNION ALL in SQL
- 10 Examples of ALTER command in SQL
Sunday, May 26, 2024
How to convert DATETIME to VARCHAR in Microsoft SQL Server? Example Tutorial
Saturday, May 25, 2024
What is Primary key in SQL? How to choose Primary key in table? Example
If you've ever dealt with databases, you've almost certainly come across the term - primary key (PK). And if you're following this series to learn about databases, this piece should help you understand what the PK is all about. Even if you're a database specialist, you could learn something new or improve your skills. So sit back, relax, and let's get started with the PKs.
Tuesday, May 14, 2024
How to get rows between two dates in Microsoft SQL Server? MSSQL Example
Solution : You can get the records between two dates in SQL SERVER by using dates in WHERE clause, for example, below query will return all the courses for which start date is greater than 2025/01/01 and less than 2025/01/31
Tuesday, May 7, 2024
How to Remove duplicate rows from table in SQL Server using temp table? Example
Wednesday, May 1, 2024
Difference between Primary key Unique key in Database SQL
Hello friends, both primary key and unique key are two important concepts in a relational database which are used to uniquely identify a row in a table. For example, EmployeeId is often primary key in Employee table which can uniquely identify any employee which is denoted by a row in Employee table. Similarly, a employee can also be identify with EmployeeName if there is no duplicate but if its not primary key then we call it a unique key. While both primary key and unique keys can identify a row uniquely but there is some subtle difference between them which we will see in this article.
Sunday, April 14, 2024
6 Examples of Correlated Subqueries in SQL
Saturday, March 23, 2024
How to calculate Running Total and Running Average in SQL (with PARTITION BY Example)
Sunday, March 10, 2024
Does order of columns matter in composite index? Examples
Thursday, March 7, 2024
10 Examples of SELECT Queries in SQL
Thursday, February 1, 2024
What is NULL in SQL? How to use Nulls in Query? Example Tutorial
Wednesday, January 31, 2024
How to remove duplicate values from a table in SQL? Example
In the world of data management, duplicate values can be a persistent nuisance. Duplicate records not only clutter your database but can also lead to erroneous results and performance issues when querying or analyzing data. Fortunately, SQL provides a powerful set of tools for identifying and removing duplicate values from a table. In this comprehensive guide, we will explore various techniques and best practices for deduplicating your data using SQL.
Saturday, January 27, 2024
What is Window Functions in SQL? Rank, Row_Number, and Dense_Rank? How to use it and Performance Analysis
The 2024 Database Administrator RoadMap
As the digital realm continues to advance at a rapid pace, the role of a Database Administrator (DBA) becomes increasingly vital in ensuring the seamless management, security, and efficiency of data systems. This Database Administrator roadmap is tailored to equip both aspiring and seasoned DBAs with the knowledge, skills, and strategies needed to thrive in the dynamic world of database management in 2024. From fundamental concepts to emerging technologies, we will explore the key areas that define the modern database administration landscape. Whether you are seeking to enhance your existing expertise or embark on a new career path, this roadmap will be your trusted companion in mastering the latest tools, best practices, and industry trends shaping the field of database administration in 2024 and beyond.
2 Ways to remove duplicate rows in SQL? Example Tutorial
Wednesday, January 24, 2024
4 Examples of CASE expression in SQL
When a condition is met, the CASE statement evaluates different conditions and returns a scalar value. The phrase from the ELSE block will be returned if none of the conditions are evaluated to TRUE. The ELSE block, however, is optional. Above all, the CASE statement has two formats Simple CASE & Searched CASE.
The Searched CASE statement is highlighted in this post. To get the results, you'll need to use search and pattern matching.
Monday, January 22, 2024
Top 30 MySQL Interview Questions for 2 to 3 Years Experienced Developers
Hello guys, if you are preparing for MySQL interviews or you are preparing for a tech interviews where MySQL skills are needed and you are looking for MySQL questions then you have come to the right place. Earlier, I have shared 15 SQL queries from interviews and 30 Database Interview Questions and in this article, I am going to share 50+ MySQL questions which you can practice before interviews. These MySQL question touches many different topics on MySQL like Database and SQL related as well MySQL engine specific questions like MyISAM vs InnoDB etc.
How to find Find all tables containing column with specified name - MS SQL Server
Have you ever found yourself lost in a vast SQL Server database, wondering where a particular column is hiding? Or perhaps you need to perform some maintenance tasks on all tables with a specific column name? Well, you're in luck, because I'm here to guide you through this adventure.
How to find Find all tables containing column with specified name - MS SQL Server Example
Introduction
Approach 1: Using SQL Server Management Studio (SSMS)
Approach 2: Using SQL Queries
SELECT TABLE_NAME FROM information_schema.columns WHERE COLUMN_NAME = 'email';
SELECT t.name AS table_name FROM sys.tables t INNER JOIN sys.columns c ON t.object_id = c.object_id WHERE c.name = 'email';
Conclusion
Other Related Articles
FAQ: Your Burning Questions Answered
Quiz Time: Test Your SQL Explorer Skills
Sunday, January 14, 2024
How to combine AND and OR operators in SQL Queries? Example Tutorial
You can use Parentheses to combine AND and OR in complex SQL statements. Combining AND and OR operators in SQL queries allows you to create more complex conditions to filter data from your database. Parentheses allows you to control the order of evaluation. Here's an example of how you can combine AND and OR operators in a SQL query. Let's see an example to understand this concept better.
Difference between Equi Join and Non-Equi Join in SQL with Examples
Hello guys, If you want to learn about the difference between Equi and Non-Equi join in SQL then you have come to the right place. Earlier, I have shared the difference between LEFT and RIGHT join in SQL and now we will understand equi and non-equi join in SQL and database. The term "Non-Equi join" in SQL Server may sound abstract, but it's far from it. Equi joins are the same way. I think you'll agree with me after reading this essay. I'll attempt to explain what they are and when they should be used today. So, let's get this party started.
Friday, January 12, 2024
10 Example of SubQuery in SQL
Hey there! Today, we're diving headfirst into the fascinating world of SQL subqueries. As someone who's spent countless hours exploring databases, almost 24 years now, I'm excited to show you how these versatile subqueries can supercharge your SQL game. Along with Joins, subquery is one of the must know concept for SQL developers. It's also slightly easier to understand then join, especially non-correlated subquery. Correlated subquery is slightly harder to understand but don't worry these 10 example will ensure you know subquery well.
Top 10 Websites to Learn SQL for FREE
How to Sort or Order results in SQL query? ORDER BY Example Tutorial
Monday, January 8, 2024
How to find Nth Highest Salary of Employee in SQL? Example Tutorial
The Problem description
Finding the Nth highest salary of workers, where N might be 2, 3, 4, or anything, is one of the most typical SQL interview questions. This query is sometimes rephrased as "find the nth minimal wage in SQL." Many programmers struggle to design the SQL query when the Interviewer keeps asking for the 4th highest, 5th highest, and so on since they only know the easiest approach to address this problem, like by utilizing the SQL IN clause, which doesn't scale well.
Sunday, January 7, 2024
Difference between Correlated and Non-Correlated SubQuery in SQL
Top 15 SQL Query Interview Questions for Practice (with Solutions)
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.
How to use LEFT, RIGHT, INNER, OUTER, FULL, and SELF JOINs in SQL? Example Tutorial
What are joins and why are they required?
Hello, everyone. Have you ever faced any issues while generating reports or loading data but were using data of just one table was not enough? One table's data is typically insufficient to provide important insights when doing sophisticated analytical processing and data discovery, therefore merging numerous tables is required. SQL, as a method for communicating with relational databases, allows you to create relationships between tables