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
SQL Server joins tool.

MySQL – How to do Natural Join in MySQL? – A Key Difference Between Inner Join and Natural Join

March 10, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Joins

MySQL supports NATURAL JOIN, which maps matching columns from both tables on its own. I show how it works and the key difference from INNER JOIN.

Read More
MySQL - Reset Row Number for Each Group - Partition By Row Number

MySQL – Reset Row Number for Each Group – Partition By Row Number

March 9, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, Ranking Functions

MySQL has no ROW_NUMBER() OVER (PARTITION BY), so here is how to reset row number for each group with a variable, using a simple example.

Read More
A corridor of wooden gym lockers with small brass number plates, receding into soft light.

MySQL – Generating Row Number for Each Row Using Variable

March 8, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, Ranking Functions, SQL Scripts

MySQL has no ROW_NUMBER() function like SQL Server. Here are two methods for generating row number values for each row with a variable in a SELECT statement.

Read More
World Time Zones Map.

MySQL – How to Detect Current Time Zone Name in MySQL

February 16, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL DateTime

Need the current time zone of the MySQL server you are connected to? One simple query with @@system_time_zone returns the time zone name.

Read More
MySQL - When to Use TIMESTAMP or DATETIME - Difference Between TIMESTAMP or DATETIME

MySQL – When to Use TIMESTAMP or DATETIME – Difference Between TIMESTAMP or DATETIME

February 14, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL DateTime

Confused about TIMESTAMP or DATETIME in MySQL? I explain the two factors, starting with supported range, that help you decide which one to use.

Read More
A fork and chopsticks resting side by side beside a plate of noodles

Backing Up MySQL, Explained for SQL Server DBAs

February 4, 2014
Pinal Dave
SQL Tips and Tricks
DBA, MySQL, SQL Backup and Restore

Backing up MySQL means choosing logical or physical copies and retaining binary logs for point-in-time recovery, then testing restores.

Read More
Could not drop object dialog.

MYSQL – Could not Drop Object [Content] (‘Cannot delete or update a parent row: a foreign key constraint fails’, 1217) DROP DATABASE DatabaseName

February 1, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Error Messages

Cannot drop a MySQL table or database because a foreign key constraint fails with error 1217? Turn off FOREIGN_KEY_CHECKS, drop it, then turn checks back on.

Read More
Previous 1 … 6 7 8 9 10 11 12 Next
  • Books
  • Testimonials
  • Privacy Policy

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