Created
September 27, 2023 10:40
-
-
Save sandeepjain2015/a4dc04515cfee66aac98e1ac4f8f7ecd to your computer and use it in GitHub Desktop.
Mysql join
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE members ( | |
| member_id INT AUTO_INCREMENT, | |
| name VARCHAR(100), | |
| PRIMARY KEY (member_id) | |
| ); | |
| CREATE TABLE committees ( | |
| committee_id INT AUTO_INCREMENT, | |
| name VARCHAR(100), | |
| PRIMARY KEY (committee_id) | |
| ); | |
| INSERT INTO members(name) | |
| VALUES('John'),('Jane'),('Mary'),('David'),('Amelia'); | |
| INSERT INTO committees(name) | |
| VALUES('John'),('Mary'),('Amelia'),('Joe'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment