The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Courses ▼▲
    • Learn Java Collections

      Explore the Java Collections Framework and Algorithms

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Maven

      Simplify your build with Apache Maven

    • View All Courses

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung

Monthly Archives: August 2024

Using ALTER to Drop a Column Only if the Column Exists in SQL

Learn to use ALTER to drop a column only if it exists. >>>

How to List Table Foreign Keys in SQL

Learn how to find the foreign keys in a table in MySQL, PostgreSQL, and SQL Server. >>>

How to Find the Engine for a Specific Table in MySQL?

Learn how to find the storage engine used for a specific table or all tables in our MySQL database. >>>

Creating Temporary Tables in a SELECT Statement Without a Separate CREATE TABLE

Learn how to create temporary tables directly within a SELECT statement in SQL. >>>

Conditionally Renaming a Column if It Exists in SQL

Learn how to rename a column only if it exists in MySQL and PostgreSQL. >>>

Commit, Rollback, Savepoint in MySQL

Learn to manage transactions in MySQL. >>>

Retrieving Data From the Last N Days in SQL

Learn to select rows from the last N days. >>>

Merging Two Rows in SQL

Learn how to combine data from two records into a single record in SQL. >>>

Deleting All Records Except the Top or Bottom N in SQL

Learn how to delete all rows from a table except the top or bottom few. >>>

Storing Data in MySQL as JSON

Explore various ways to store data as JSON in MySQL. >>>

  • «
  • ← Previous
  • 1
  • 2
  • 3
  • Next →
Authors – All
Authors – All

Recent Posts

  • Import an SQL File Using the Command Line in MySQL
  • Introduction to CrateDB
  • How to Retrieve the Database Size?
  • Viewing Roles and Permissions Granted to Users of Azure SQL Server Instance
  • How to Exclude a Column Using SELECT EXCEPT in SQL

Recent Comments

  1. Ulisses Lima on How to Remove Duplicate Rows in SQL
  2. Giri on How to Remove Duplicate Rows in SQL
The Baeldung logo

Categories

  • Database Concepts
  • SQL Queries

About

  • About Baeldung
  • The Full Archive
  • Editors
  • eBooks
  • FAQ
  • Baeldung Pro

Archives

  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • February 2024
  • December 2023
  • September 2023
  • August 2023
  • June 2023
  • March 2023
  • August 2022

Categories

  • Database Access
  • Database Concepts
  • database-manipulation
  • Databases
  • DDL
  • DML
  • Security
  • SQL Basics
  • SQL Constraints
  • SQL Functions
  • SQL Joins
  • SQL Operators
  • SQL Programming
  • SQL Queries
  • SQL Tables
  • SQL Views
  • Terms Of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo