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: November 2024

SQL Query for Calculating a Rolling 7-Day Average

Discuss a general approach to calculating a 7-day rolling average, including indexed views in MSSQL Server, materialized views in MySQL, and materialized views with refresh in PostgreSQL. >>>

Sorting by a List of Strings in SQL

Learn how to sort a list of strings alphabetically or in a specific order. >>>

What Does Collation Mean in SQL?

Explore the concept of collation in SQL databases and understand how it affects text comparison and sorting. >>>

Adding a Comment to a Column When Creating a Table in SQL

Learn how to add a comment to a column when creating a table in various SQL platforms. >>>

How to Loop Through a Set of Records in SQL

Learn how to loop through a set of records using various methods in SQL. >>>

Using CASE Statements in SQL SELECT Queries

Learn how to combine SELECT queries with CASE statements for complex conditional checks. >>>

Query to Retrieve Rows With Datetime Column Equal to Today in SQL

Learn to filter rows for today’s date. >>>

Detecting Locked Tables in MySQL

Explore several techniques for identifying locks, including SHOW OPEN TABLES, GET_LOCK, and performance_schema.metadata_locks. >>>

Counting Distinct Values With Conditions in SQL

Explore several techniques for counting distinct values with conditions in SQL, focusing on a university database as the example. >>>

How to Insert a CSV File Into an SQL Table

Learn to import data from a CSV (Comma-Separated Values) file into an SQL table. >>>

  • ↑ Back to Top
  • 1
  • 2
  • 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