Skip to content

Instantly share code, notes, and snippets.

@sandeepjain2015
Created September 27, 2023 10:40
Show Gist options
  • Save sandeepjain2015/a4dc04515cfee66aac98e1ac4f8f7ecd to your computer and use it in GitHub Desktop.
Save sandeepjain2015/a4dc04515cfee66aac98e1ac4f8f7ecd to your computer and use it in GitHub Desktop.
Mysql join
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