Copy Database
MySQL has no COPY DATABASE keyword. You dump and restore: mysqldump college > college.sql then mysql college2 < college.sql after CREATE DATABASE college2.
For one table: CREATE TABLE students_bak AS SELECT * FROM students; That copies data, not always indexes/triggers. For a true clone, dump is safer.
Trap — thinking CREATE DATABASE college LIKE other; exists like CREATE TABLE LIKE. It does not.
On the example next to this theory: Copy Database: create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
mysqldump then mysql < file. Or CREATE TABLE new AS SELECT * FROM old.