This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
unusedindexes

MySQL – Identifying Unused Indexes in Databases

August 4, 2023
Pinal Dave
SQL Performance
MySQL, Schema, SQL Index

Unused indexes slow down writes and waste space. Identifying unused indexes in your MySQL database is easy with INFORMATION_SCHEMA. Here is how.

Read More
Pythagorean Triples

SQL SERVER – Stored Procedures to Check for Pythagorean Triples

August 3, 2023
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function

I wanted to share another useful programming technique for learning math – using stored procedures to check for Pythagorean triples.

Read More
Gouache painting: a frosted-glass window over a market stall, fruit shapes blurred behind it, one vermilion pomegranate seen sharp and clear

Masking Functions in SQL Server: What Each One Shows

August 2, 2023
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server 2022, SQL Server Security

Dynamic data masking hides values at query time, and the masking functions decide what a reader still sees. This post tests default, email, partial, random and datetime on SQL Server 2025 and shows what each one returns. It also covers adding and dropping a mask on an existing column.

Read More
usedtable

MySQL – Identifying and Optimizing the Busiest Tables

August 1, 2023
Pinal Dave
SQL Performance
MySQL, Performance Schema, Schema

Let us learn Identifying and Optimizing the Busiest Tables in MySQL. MySQL provides an easy way to identify the busiest tables using the performance_schema.

Read More
The Flight Connection Puzzle

SQL SERVER – The Flight Connection Puzzle

July 31, 2023
Pinal Dave
SQL Puzzle
CTE, SQL Server

Today we are going to see another such puzzle – The Flight Connection Puzzle. This blog post is going to be really fun blog post.

Read More
The Two Doors, Two Guards Puzzle

SQL SERVER – The Two Doors, Two Guards Puzzle

July 28, 2023
Pinal Dave
SQL Puzzle
SQL Scripts

I came across a puzzle about “The Two Doors, Two Guards,” popularly known as the “Two Doors Riddle” or the “Heaven and Hell Riddle”.

Read More
A shell bead necklace with repeated shell colors beside one specimen of each color

Running Distinct Counts: Working Around COUNT(DISTINCT) OVER

July 27, 2023
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

Your report wants unique customers so far, and SQL Server refuses COUNT(DISTINCT) over a window. Flag each first appearance and add up the flags instead.

Read More
Previous 1 … 31 32 33 34 35 36 37 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com