Blog to learn about SQL, database, Oracle, SQL Server, MySQL, PostgreSQL concepts and much more.
Monday, May 19, 2025
How to Sort or Order results in SQL query? ORDER BY Example Tutorial
Wednesday, May 14, 2025
How to add/remove and modify column in a table?
Hey there! Today, I'm going to share some DB wizardry that's incredibly handy in your SQL adventures: how to add, remove, and modify columns in a database table. Whether you're a seasoned data sorcerer or just starting your magical journey, this article has something for everyone.
Friday, January 24, 2025
How to store and Query Hierarchical Data in Database using SQL? Example Tutorial
What methods do you use to detect hierarchical data and query it? We're about to get answers to two popular SQL queries. When working with SQL and relational databases, querying hierarchical data is a typical occurrence. It's not that hierarchical data is mysterious or uncommon; on the contrary, it's all around us. So, why is hierarchical data so difficult to work within relational databases? The issues arise mostly when converting hierarchical data to relational database concepts.
Thursday, January 23, 2025
Top 30 Database Interview Questions and Answers
Hello guys, if you are preparing for programming or technical interview then you must prepare for Database and SQL, these two are the most important skill for any programming or software development job be it a Java developer, C++ developer or a web developer. Earlier, I have shared 15 SQL Query Interview Questions and in this article, I am going to share 30 common database interview questions. I am not sharing the answer though as I expect you to already know the answers of these basic Database questions but if you struggle with any questions, ping me on comments section and I might just add the answers as well, depending upon what you guys like.
How to create and Rollback Transaction in SQL query? Example Tutorial
A transaction in SQL Server is a consecutive gathering of explanations or queries to perform single or numerous undertakings in a data set. Every transaction might have single perused, compose, update, or delete tasks or a blend of this large number of tasks. Every transaction should happen two things in SQL Server:
- Either all alteration is effective when the transaction is committed.
- Or on the other hand, all alterations are scattered when the transaction is rollback.
Monday, January 20, 2025
Difference between DELETE vs DROP vs TRUNCATE in SQL
What the differences are between the commands Delete, Drop, and Truncate has to be one of the most popular queries during SQL interviews. We are here to answer any of your questions regarding this interview question. In this article, we will go over this concept and learn the difference between them in a very practical manner. So, what's the wait? let's start!
How to find top 10 records from a table in Oracle, MySQL, and SQL Server? Examples
Friday, December 27, 2024
Difference between UNION and UNION ALL in SQL
Thursday, October 24, 2024
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
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?
Wednesday, October 16, 2024
How to filter data in SQL? WHERE, LIKE, and BETWEEN Example
Difference between Primary and Foreign key in Database and SQL
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.
Thursday, August 22, 2024
Difference between 1NF, 2nd NF, 3rd NF and BCNF? Normalization Example Tutorial
Wednesday, August 14, 2024
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.
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.