Initial Commit
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
DROP TABLE IF EXISTS schools;
|
||||
CREATE TABLE schools (
|
||||
schoolId INT NOT NULL AUTO_INCREMENT,
|
||||
name varchar(50) NOT NULL,
|
||||
province varchar(20) DEFAULT NULL,
|
||||
language char(2) DEFAULT NULL,
|
||||
level varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (schoolId)
|
||||
);
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,6 @@
|
||||
insert into schools (name, province, language, level) values ('University of New Brunswick', 'New Brunswick', 'EN', 'University');
|
||||
insert into schools (name, province, language, level) values ('Leo Hayes', 'New Brunswick', 'EN', 'High School');
|
||||
insert into schools (name, province, language, level) values ('Fredericton High School', 'New Brunswick', 'EN', 'High School');
|
||||
insert into schools (name, province, language, level) values ('Liverpool Elementary', 'New Brunswick', 'EN', 'Elementary');
|
||||
insert into schools (name, province, language, level) values ('Forest Hill', 'New Brunswick', 'EN', 'Elementary');
|
||||
insert into schools (name, province, language, level) values ('Bliss Carmen', 'New Brunswick', 'EN', 'Middle School');
|
||||
@@ -0,0 +1 @@
|
||||
update schools set province = 'Manitoba' where (schoolId = 2);
|
||||
@@ -0,0 +1 @@
|
||||
delete from schools where province = 'Manitoba';
|
||||
Reference in New Issue
Block a user