● Table Name : school -> stdnum : Student Number, name : Name, birth : Birthday, eng : English, hb_no : Hobby Number
CREATE TABLE school (stdnum VARCHAR(15),name VARCHAR(15),
birth DATE,eng INT(3),hb_no INT(2), PRIMARY KEY(stdnum));
INSERT INTO school (stdnum,name,birth,eng,hb_no) VALUES
('20210110','Iron Man','1970-5-29',95,1),
('20200207','Black Widow','1984-12-3',100,2),
('20190522','Spider Man','2001-8-10',99,4),
('20201007','Batman','1915-4-17',100,2),
('20211201','Hulk','1969-12-18',80,5)";
● Table Name : hobby -> hb_no : Hobby Number, hb_name : Hobby Name
CREATE TABLE hobby (hobby_no int(3),hobby_name varchar(15));
INSERT INTO hobby (hb_no,hb_name) VALUES (1,'Movie'),(2,'Trip'),(3,'Soccer'),(4,'Song'),(5,'Basketball');