SQL DROP TABLE and DROP DATABASE
Remove tables and databases with SQL DROP: DROP TABLE, IF EXISTS, dropping tables with foreign keys, DROP DATABASE, and DROP vs TRUNCATE vs DELETE in MySQL.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Remove tables and databases with SQL DROP: DROP TABLE, IF EXISTS, dropping tables with foreign keys, DROP DATABASE, and DROP vs TRUNCATE vs DELETE in MySQL.
Change a table's structure with SQL ALTER TABLE: add, modify, rename and drop columns, rename tables, add keys and indexes, and change big tables safely.
Remove rows with SQL DELETE: by condition, with a subquery or JOIN, foreign key errors, and DELETE vs TRUNCATE vs DROP explained with real MySQL output.
Change data with the SQL UPDATE statement: one column, several columns, calculated values, CASE, UPDATE with JOIN and safe-update habits, with MySQL output.
Learn the SQL SELECT statement step by step: columns, SELECT *, calculated columns and query execution order, with sample tables and real MySQL output.
Add data with SQL INSERT INTO: one row, many rows, selected columns, default values, INSERT INTO SELECT and the errors you will meet, with MySQL 8.4 output.
What is SQL and why learn it? A beginner introduction to databases, tables, RDBMS, SQL vs MySQL and the five SQL command types, with real MySQL examples.
Learn SQL views in MySQL: CREATE VIEW, querying a view, CREATE OR REPLACE, updatable views, WITH CHECK OPTION, views for security, and view vs table.
Learn MySQL triggers step by step: BEFORE and AFTER triggers, NEW and OLD rows, audit logs, validation with SIGNAL, keeping stock in sync, and trigger pitfalls.
Learn SQL transactions in MySQL: START TRANSACTION, COMMIT, ROLLBACK, SAVEPOINT, autocommit, ACID properties and isolation levels, with a bank transfer example.
Learn SQL aggregate functions COUNT, SUM, AVG, MIN and MAX step by step: COUNT(*) vs COUNT(column), DISTINCT, NULL handling and GROUP_CONCAT, on MySQL.
Learn SQL SELF JOIN step by step: join a table to itself with aliases, list employees with their managers, compare rows in the same table, find pairs, in…
Take free timed mock tests with answers and explanations.