Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use project;
- -- MySQL Workbench Forward Engineering
- SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
- SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
- SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
- -- -----------------------------------------------------
- -- Schema project
- -- -----------------------------------------------------
- DROP SCHEMA IF EXISTS `project` ;
- -- -----------------------------------------------------
- -- Schema project
- -- -----------------------------------------------------
- Create DataBase if not exists project;
- USE `project` ;
- -- -----------------------------------------------------
- -- Table `project`.`Person`
- -- -----------------------------------------------------
- CREATE TABLE person (
- personID mediumint,
- FName varchar(255) default NULL,
- LName varchar(255) default NULL,
- Gender varchar(255) default NULL,
- StreetAddress varchar(255) default NULL,
- Phone varchar(100) default NULL,
- Email varchar(255) default NULL,
- PRIMARY KEY (personID)
- );
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (1,"Karleigh","Bright","M","5136 Pretium Avenue","(705) 935-8781","nec.urna.suscipit@scelerisque.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (2,"Yardley","Fischer","M","448-8439 Gravida Street","(884) 430-0762","at@arcuvel.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (3,"Gloria","Maynard","F","P.O. Box 981, 7046 Mus. Ave","(135) 154-3652","euismod.urna@Vivamussit.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (4,"Stewart","Parsons","M","517-9268 Proin Road","(169) 843-5948","vel@arcuVestibulumante.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (5,"Heather","Shelton","F","5089 Rhoncus St.","(694) 702-3223","elit.pede.malesuada@pharetrafelis.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (6,"Nomlanga","Mcguire","F","4407 Aliquet St.","(555) 141-3324","mauris@mi.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (7,"Inez","Hyde","F","P.O. Box 116, 5738 Ullamcorper St.","(197) 673-1798","ipsum.sodales@scelerisquesed.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (8,"Fatima","Holland","F","Ap #345-8833 Aliquam St.","(821) 760-6516","lobortis@malesuada.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (9,"Martha","Bolton","M","P.O. Box 227, 9062 Et Av.","(549) 990-2265","lobortis.nisi@liberoProin.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (10,"Fritz","Odonnell","M","P.O. Box 364, 689 Integer St.","(602) 510-3952","non.lorem.vitae@ipsum.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (11,"Nicholas","Conway","F","P.O. Box 288, 8761 In Av.","(416) 652-8838","mauris@gravidanuncsed.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (12,"Rigel","Bauer","M","Ap #805-1120 Nunc. Rd.","(450) 737-6365","vitae@lorem.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (13,"Blake","Wolfe","M","Ap #650-7395 Rhoncus. St.","(593) 673-2936","ut.ipsum@dolorQuisque.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (14,"Colette","Fleming","F","4179 Suspendisse St.","(652) 330-7575","a.magna@malesuada.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (15,"Grady","Floyd","M","P.O. Box 444, 1561 Purus St.","(290) 478-1082","auctor.odio@nisl.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (16,"Morgan","Norton","M","872-6202 Tristique St.","(841) 360-5059","luctus.et.ultrices@senectus.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (17,"Boris","Best","M","P.O. Box 351, 3116 Elit Ave","(384) 857-5633","Vivamus@sed.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (18,"Lysandra","Pacheco","F","P.O. Box 220, 8514 Lectus. Avenue","(613) 626-4943","eu@ipsumSuspendissesagittis.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (19,"Ferris","Morse","F","682-2819 Ultricies Road","(559) 282-9370","eu.metus@sitametconsectetuer.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (20,"Amery","Downs","M","8812 Mauris Street","(862) 656-2094","amet.consectetuer.adipiscing@Etiam.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (21,"Ali","Velasquez","F","Ap #627-1617 Ante. Rd.","(124) 381-1025","pharetra.Quisque.ac@egestasblandit.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (22,"Suki","Sosa","F","Ap #322-2465 Congue Road","(884) 920-0070","hendrerit.Donec.porttitor@egestasrhoncusProin.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (23,"Pandora","Fitzpatrick","M","6175 In Ave","(756) 918-6948","lobortis.augue@dictumaugue.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (24,"Doris","Garner","M","Ap #888-5841 Ornare. Ave","(470) 796-4023","ullamcorper.velit@Integerin.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (25,"Cameran","Goodwin","M","3929 Tincidunt Ave","(454) 606-0677","dictum.augue.malesuada@consectetueradipiscing.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (26,"Alyssa","Duncan","M","Ap #499-6628 Proin Street","(556) 212-4617","Cras.pellentesque.Sed@tristiquepharetraQuisque.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (27,"Beau","Booker","F","Ap #693-7039 Et, St.","(606) 222-2159","Suspendisse@mus.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (28,"Wyoming","Navarro","F","339-645 Congue Road","(472) 469-2948","litora@ligula.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (29,"Hashim","Sawyer","M","390 Dui, Road","(201) 883-6585","Nulla.facilisi.Sed@enimEtiam.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (30,"Randall","Banks","M","2521 Luctus Rd.","(919) 446-7104","urna.nec.luctus@sagittisfelisDonec.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (31,"Harrison","Kerr","F","9803 Et Avenue","(103) 976-7228","Suspendisse@suscipit.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (32,"Isaac","Mcguire","F","Ap #667-8510 Parturient Av.","(712) 825-1833","ornare@parturientmontes.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (33,"Jamal","Knox","M","Ap #943-3570 Velit. St.","(825) 752-2839","turpis.non.enim@sociisnatoquepenatibus.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (34,"Leila","Dale","M","P.O. Box 225, 759 Sed St.","(552) 908-2354","ridiculus@pedenecante.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (35,"Steven","Chandler","M","4248 Cras Av.","(626) 233-4791","Duis.elementum.dui@dictumPhasellusin.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (36,"Wyatt","Davis","M","278-6335 Turpis St.","(514) 528-2492","Nunc@mollis.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (37,"Katelyn","Ball","M","5732 Mauris Ave","(239) 118-8736","est.vitae.sodales@adipiscing.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (38,"Alvin","Greer","F","P.O. Box 333, 9811 Sed Road","(257) 661-9412","id.libero.Donec@velit.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (39,"Quintessa","Perkins","F","4136 Eu Av.","(480) 617-3319","Donec@lobortis.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (40,"Charde","Humphrey","M","Ap #432-640 Lorem Rd.","(467) 265-1533","egestas.urna.justo@sitamet.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (41,"Yolanda","Rocha","M","P.O. Box 204, 6643 Mattis St.","(333) 492-9679","libero.est.congue@gravidamaurisut.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (42,"Fiona","Pena","F","365-212 In Road","(167) 681-5475","vitae.aliquam@nuncest.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (43,"Bell","Ramirez","F","9799 Enim Rd.","(325) 812-6314","et.commodo@netus.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (44,"Benjamin","Evans","F","8671 Mauris, Rd.","(227) 460-4366","odio@mattisornare.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (45,"Jermaine","Massey","M","Ap #471-1687 Ligula. Av.","(551) 160-1335","sapien.gravida.non@dui.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (46,"Henry","Hyde","M","P.O. Box 718, 4739 Suspendisse Road","(991) 252-5162","aliquet.lobortis.nisi@sollicitudina.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (47,"Winifred","Roach","F","3239 Suspendisse Avenue","(461) 866-9367","dictum@porttitortellus.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (48,"Carl","Galloway","F","4419 Massa. St.","(446) 938-5992","Donec@dictumeueleifend.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (49,"Castor","Rivers","F","5785 Amet St.","(952) 215-9086","vel.arcu.Curabitur@intempuseu.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (50,"Adam","Soto","F","1193 Odio Road","(137) 674-8092","Mauris.ut.quam@eratvolutpatNulla.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (51,"Austin","Paul","M","1116 Eleifend Rd.","(522) 158-9556","habitant.morbi@elitpedemalesuada.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (52,"Stephanie","Mccray","M","4180 Non Street","(829) 249-6528","a.nunc@Proin.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (53,"Candice","Johns","M","P.O. Box 778, 9738 Purus, Road","(851) 541-9550","fringilla.cursus@utmi.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (54,"Philip","Mckinney","M","P.O. Box 644, 5595 Porttitor St.","(465) 188-8499","vulputate.ullamcorper@quis.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (55,"Clark","Owen","F","P.O. Box 167, 5369 Viverra. St.","(929) 132-8602","velit@Nullam.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (56,"Brady","Manning","M","1740 Curabitur Av.","(916) 443-2902","arcu.Vivamus@in.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (57,"Tashya","Banks","M","P.O. Box 880, 655 Nec Rd.","(150) 208-7881","non.ante.bibendum@diam.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (58,"Alec","Sherman","M","9756 Magna St.","(737) 321-7168","ligula@SuspendisseduiFusce.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (59,"Nolan","Ayers","F","Ap #996-346 Cras Road","(872) 267-6422","erat@iaculisquispede.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (60,"Bevis","Hester","F","P.O. Box 473, 2950 Neque Rd.","(140) 477-9498","mauris.erat@Morbi.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (61,"Fitzgerald","Bowen","M","P.O. Box 802, 7254 Aliquet, Av.","(594) 661-0613","sollicitudin@nequeNullamnisl.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (62,"Rafael","Clemons","M","751-9448 Metus Road","(241) 851-3235","vel.lectus.Cum@auctorMaurisvel.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (63,"Janna","Knight","M","511-4875 Nisl. St.","(712) 720-2673","consequat@eterosProin.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (64,"Maggie","Sanders","F","664-3685 Felis St.","(811) 960-7560","lorem@metus.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (65,"Tobias","Lynn","F","757-2535 Dictum Street","(335) 599-4879","malesuada@purus.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (66,"Eaton","Sosa","M","239-5237 Nulla Ave","(563) 694-6458","egestas.urna@euismodmauriseu.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (67,"Adam","Little","M","Ap #837-187 Mauris, St.","(927) 946-6885","elit@senectusetnetus.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (68,"Quail","Gardner","F","Ap #268-4396 Fusce Road","(781) 256-8081","Nunc.pulvinar.arcu@luctus.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (69,"Dolan","Tucker","M","P.O. Box 928, 3595 Quisque Street","(464) 198-1314","magna@PhasellusnullaInteger.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (70,"Jin","Ward","M","359-807 Tincidunt St.","(798) 162-7826","tellus.Aenean.egestas@mattis.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (71,"Sean","Payne","M","P.O. Box 287, 7816 Lacinia Ave","(354) 553-1837","netus.et@odioAliquam.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (72,"Roanna","Ryan","M","1993 Integer St.","(920) 811-0466","non@ullamcorpervelit.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (73,"Brody","Carter","F","755 Nec Rd.","(329) 209-2445","Integer.mollis.Integer@semper.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (74,"Chantale","Craig","F","P.O. Box 204, 5630 Ultrices Street","(693) 285-3416","Aenean@accumsaninterdum.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (75,"Fay","Burgess","F","P.O. Box 911, 838 Eleifend. Av.","(334) 745-0849","Quisque.tincidunt@Sed.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (76,"Hyacinth","Hewitt","M","P.O. Box 385, 6404 Vehicula Avenue","(142) 535-2332","vitae@sollicitudinorcisem.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (77,"Wynne","Hill","F","Ap #414-2731 Placerat, Ave","(804) 950-3211","magnis.dis.parturient@fringillami.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (78,"Mara","Wood","M","Ap #436-5205 Et Street","(657) 497-2096","sit.amet@Curabiturconsequatlectus.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (79,"Marny","Orr","F","Ap #712-9616 Nisi Street","(758) 221-1619","neque.tellus@egetvolutpatornare.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (80,"Chase","Haney","F","Ap #889-2223 Feugiat Av.","(207) 196-2352","sed@vestibulum.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (81,"Gregory","Good","F","P.O. Box 453, 7302 Odio. Rd.","(312) 974-0427","enim@Inscelerisquescelerisque.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (82,"Xenos","Walter","M","666-1283 Auctor, Street","(485) 243-5816","semper.erat.in@sapien.co.uk");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (83,"Keaton","Watts","M","P.O. Box 966, 2199 Consequat Rd.","(452) 828-9435","metus@placeratCrasdictum.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (84,"Cara","Trevino","M","Ap #267-8653 Risus. Road","(874) 477-0349","ligula@atvelitPellentesque.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (85,"Amir","Parker","M","P.O. Box 936, 4725 Mus. St.","(965) 940-9435","pede@velitinaliquet.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (86,"Leah","Ray","F","656-9028 Dis Av.","(562) 415-5681","et.pede@velconvallisin.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (87,"Clarke","Whitfield","M","399-3297 Faucibus Rd.","(587) 973-1462","erat.Sed@Nunc.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (88,"Brady","Ingram","F","Ap #709-6153 Neque. Avenue","(617) 867-3749","fermentum.metus.Aenean@rhoncusNullamvelit.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (89,"Fuller","Moore","F","P.O. Box 677, 6762 Nullam Rd.","(871) 587-3288","est@DuisgravidaPraesent.ca");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (90,"Channing","Head","F","732-190 Erat Rd.","(153) 407-5132","faucibus.id@Aeneaneuismodmauris.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (91,"Hunter","Jackson","F","P.O. Box 233, 2575 Erat Rd.","(104) 441-6023","auctor.Mauris@et.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (92,"Kirsten","Macdonald","M","718-3750 Imperdiet Road","(509) 542-6094","mauris.id@In.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (93,"Sophia","Bryant","M","Ap #531-7768 Montes, Street","(818) 921-1841","senectus@aauctornon.edu");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (94,"Idola","Rosa","F","P.O. Box 863, 6687 Lacus. St.","(403) 355-8174","ac.risus.Morbi@Mauris.net");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (95,"Hayes","Clay","M","Ap #943-6573 Molestie Road","(933) 152-3780","ullamcorper.velit@Cumsociis.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (96,"Indigo","Lopez","M","543-1859 Molestie Street","(774) 692-6011","sem.Pellentesque@magnaSed.com");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (97,"Curran","Ratliff","F","7423 Natoque St.","(290) 524-0334","ante.dictum@eu.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (98,"Lysandra","Herrera","M","746-8525 Dictum Rd.","(690) 745-8243","erat.semper.rutrum@convallisest.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (99,"Caldwell","Berg","M","8578 Neque St.","(162) 289-9486","Phasellus@tincidunt.org");
- INSERT INTO person (personID,FName,LName,Gender,StreetAddress,Phone,Email) VALUES (100,"John","Grant","M","166-9079 Aenean Ave","(133) 694-2434","cursus.luctus@montesnascetur.net");
- -- Table `project`.`Student`
- -- -----------------------------------------------------
- select* from person;
- CREATE TABLE Student (
- StudentID mediumint,
- Major varchar(255) default NULL,
- GPA mediumint default NULL,
- Grad_year varchar(255),
- honors_YorN varchar(255) default NULL,
- personID mediumint,
- PRIMARY KEY (StudentID),
- constraint stuID FOREIGN KEY (personID) REFERENCES person(personID)
- );
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (1,"Finances",3,"25/10/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (2,"Computer Science",3,"28/10/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (3,"Management",4,"20/01/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (4,"Computer Science",1,"28/01/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (5,"Law",1,"17/11/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (6,"Computer Science",3,"27/05/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (7,"Accounting",4,"05/10/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (8,"Management",4,"09/12/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (9,"Finances",3,"21/09/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (10,"Computer Science",1,"21/07/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (11,"Finances",3,"19/01/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (12,"Accounting",2,"30/12/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (13,"Accounting",4,"26/04/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (14,"Law",2,"09/11/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (15,"Accounting",3,"28/03/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (16,"Accounting",4,"31/08/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (17,"Computer Science",3,"01/06/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (18,"Management",3,"03/10/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (19,"Law",1,"26/05/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (20,"Accounting",2,"17/05/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (21,"Law",3,"26/04/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (22,"Accounting",3,"11/01/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (23,"Computer Science",3,"17/06/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (24,"Computer Science",2,"25/12/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (25,"Finances",4,"27/06/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (26,"Management",2,"28/05/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (27,"Law",4,"27/06/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (28,"Accounting",3,"09/11/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (29,"Computer Science",3,"09/11/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (30,"Management",4,"06/12/2017","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (31,"Accounting",3,"07/05/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (32,"Computer Science",1,"17/06/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (33,"Finances",2,"12/12/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (34,"Computer Science",4,"10/12/2017","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (35,"Computer Science",2,"10/09/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (36,"Management",4,"29/04/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (37,"Accounting",2,"18/09/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (38,"Computer Science",2,"28/08/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (39,"Management",1,"25/04/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (40,"Computer Science",1,"27/09/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (41,"Accounting",2,"27/08/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (42,"Management",2,"02/12/2017","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (43,"Accounting",2,"19/07/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (44,"Finances",4,"26/07/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (45,"Management",3,"01/07/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (46,"Computer Science",4,"15/03/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (47,"Law",4,"10/03/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (48,"Finances",1,"14/10/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (49,"Law",1,"13/11/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (50,"Law",2,"13/08/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (51,"Computer Science",4,"21/02/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (52,"Accounting",3,"23/09/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (53,"Management",3,"06/11/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (54,"Finances",3,"17/11/2017","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (55,"Finances",2,"31/12/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (56,"Finances",1,"13/04/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (57,"Management",3,"17/08/2019","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (58,"Finances",2,"05/11/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (59,"Accounting",3,"18/01/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (60,"Finances",3,"17/09/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (61,"Accounting",1,"21/09/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (62,"Accounting",3,"22/05/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (63,"Computer Science",4,"26/07/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (64,"Law",3,"17/11/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (65,"Accounting",4,"07/06/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (66,"Law",1,"20/10/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (67,"Law",2,"28/07/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (68,"Accounting",4,"28/11/2018","Y");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (69,"Management",4,"21/06/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (70,"Computer Science",2,"18/05/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (71,"Finances",3,"02/01/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (72,"Accounting",4,"03/05/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (73,"Law",2,"01/09/2019","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (74,"Finances",3,"27/06/2018","N");
- INSERT INTO student (StudentID,Major,GPA,Grad_year,honors_YorN) VALUES (75,"Law",4,"25/01/2019","Y");
- -- -----------------------------------------------------
- -- Table `project`.`Mentor`
- -- -----------------------------------------------------
- CREATE TABLE Mentor (
- mentorID mediumint,
- highest_degree VARCHAR(100) default NULL,
- business VARCHAR(200) default NULL,
- positions VARCHAR(200) default NULL,
- personID mediumint,
- PRIMARY KEY (mentorID),
- constraint mentID FOREIGN KEY (personID) REFERENCES person(personID)
- )
- ENGINE = InnoDB;
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (76,"phD","Advising","Associated");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (77,"Bachelor","Accounting","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (78,"Bachelor","Advising","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (79,"phD","Accounting","FullTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (80,"phD","Mathematics","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (81,"phD","Accounting","Associated");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (82,"Bachelor","Mathematics","FullTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (83,"phD","ComputerScience","FullTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (84,"Bachelor","ComputerScience","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (85,"Master","ComputerScience","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (86,"Bachelor","Advising","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (87,"Master","Mathematics","Associated");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (88,"Bachelor","Mathematics","Associated");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (89,"phD","ComputerScience","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (90,"phD","Mathematics","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (91,"phD","Advising","Associated");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (92,"Master","Mathematics","FullTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (93,"Bachelor","Accounting","FullTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (94,"Master","Advising","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (95,"Bachelor","Advising","Associated");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (96,"Master","Advising","FullTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (97,"Master","ComputerScience","FullTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (98,"Master","ComputerScience","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (99,"phD","Accounting","PartTime");
- INSERT INTO Mentor (mentorID,highest_degree,business,positions) VALUES (100,"phD","Accounting","Associated");
- -- -----------------------------------------------------
- -- Table `project`.`Assign`
- -- -----------------------------------------------------
- CREATE TABLE Assign (
- assignID mediumint,
- year varchar(200),
- S_P_M int not NULL,
- rating INT NULL,
- StudentID mediumint,
- mentorID mediumint,
- PRIMARY KEY (assignID),
- constraint studID_assign FOREIGN KEY (StudentID) REFERENCES Student(StudentID),
- constraint mentID_assign FOREIGN KEY (mentorID) REFERENCES Mentor(mentorID)
- )
- ENGINE = InnoDB;
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (1,"Sep 23, 2019",7,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (2,"Jan 15, 2018",6,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (3,"Jun 15, 2019",8,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (4,"May 23, 2018",7,5);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (5,"Dec 25, 2018",7,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (6,"Jul 18, 2019",10,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (7,"Oct 18, 2019",3,10);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (8,"Jan 25, 2019",4,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (9,"Mar 28, 2018",5,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (10,"Jul 17, 2019",7,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (11,"Dec 4, 2018",8,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (12,"Dec 22, 2017",3,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (13,"Sep 22, 2019",3,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (14,"Oct 23, 2018",4,10);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (15,"Jul 18, 2019",7,5);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (16,"Feb 27, 2019",10,5);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (17,"Apr 9, 2019",1,9);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (18,"Sep 18, 2018",7,10);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (19,"Jul 31, 2018",5,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (20,"Jun 30, 2019",2,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (21,"Mar 13, 2018",5,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (22,"Mar 26, 2019",7,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (23,"Jan 22, 2018",3,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (24,"Aug 19, 2018",10,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (25,"Jun 1, 2018",9,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (26,"Jun 30, 2019",4,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (27,"May 17, 2018",10,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (28,"Mar 18, 2019",3,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (29,"Jun 23, 2019",10,10);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (30,"Aug 4, 2019",9,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (31,"Jul 27, 2018",2,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (32,"Nov 5, 2018",2,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (33,"Mar 31, 2018",1,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (34,"Jan 16, 2019",8,9);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (35,"Mar 9, 2018",9,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (36,"Aug 3, 2018",2,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (37,"May 4, 2019",3,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (38,"Apr 8, 2018",2,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (39,"Jun 12, 2019",4,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (40,"Jun 23, 2019",6,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (41,"Feb 26, 2018",10,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (42,"Apr 28, 2018",6,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (43,"Mar 11, 2019",1,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (44,"Nov 17, 2019",5,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (45,"Dec 7, 2018",9,10);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (46,"Jan 9, 2018",5,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (47,"Aug 6, 2018",2,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (48,"Aug 5, 2019",1,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (49,"Nov 30, 2018",10,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (50,"Feb 27, 2018",2,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (51,"May 30, 2019",10,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (52,"Dec 2, 2017",8,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (53,"Jun 29, 2019",1,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (54,"Jul 13, 2018",5,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (55,"Apr 27, 2018",8,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (56,"Aug 16, 2018",10,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (57,"Jan 12, 2018",1,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (58,"Nov 25, 2018",4,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (59,"Mar 4, 2018",2,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (60,"Jun 19, 2019",8,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (61,"Apr 19, 2019",4,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (62,"May 17, 2019",5,9);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (63,"Dec 14, 2017",9,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (64,"Aug 17, 2018",3,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (65,"Oct 6, 2018",1,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (66,"Jul 2, 2019",9,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (67,"Sep 2, 2018",7,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (68,"Mar 22, 2018",10,10);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (69,"Apr 13, 2018",8,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (70,"Jun 6, 2018",3,9);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (71,"Sep 27, 2018",8,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (72,"Sep 14, 2019",7,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (73,"Mar 16, 2018",8,5);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (74,"Jun 2, 2019",7,5);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (75,"Jul 25, 2019",8,9);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (76,"Oct 4, 2019",4,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (77,"Sep 21, 2018",1,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (78,"Sep 9, 2019",6,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (79,"Dec 15, 2018",6,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (80,"Nov 13, 2019",9,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (81,"Sep 17, 2018",9,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (82,"Jun 19, 2018",5,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (83,"Jul 29, 2018",8,9);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (84,"Oct 26, 2019",4,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (85,"Jun 18, 2018",7,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (86,"Nov 12, 2019",9,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (87,"Feb 27, 2019",5,4);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (88,"Sep 11, 2019",1,7);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (89,"Dec 20, 2017",3,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (90,"May 14, 2019",4,2);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (91,"Jun 15, 2019",5,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (92,"Apr 26, 2018",4,3);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (93,"Apr 14, 2018",6,9);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (94,"Sep 20, 2019",5,8);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (95,"Jun 13, 2019",4,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (96,"Sep 25, 2018",7,1);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (97,"Jun 4, 2019",8,5);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (98,"Apr 26, 2019",8,5);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (99,"Jan 27, 2018",8,6);
- INSERT INTO Assign (assignID,year,S_P_M,rating) VALUES (100,"Jun 8, 2019",5,5);
- -- -----------------------------------------------------
- -- Table `project`.`Events`
- -- -----------------------------------------------------
- CREATE TABLE Event (
- eventID mediumint,
- Title varchar(255) default NULL,
- eventDescription TEXT default NULL,
- Date_Time varchar(255),
- lenght_min mediumint default NULL,
- locationDescription varchar(255) default NULL,
- ticketCost varchar(100) default NULL,
- PRIMARY KEY (eventID))
- ENGINE = InnoDB;
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (1,"Festival","adipiscing, enim mi tempor lorem, eget mollis lectus pede et","May 22, 2018",60,"","$55.13");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (2,"Festival","consequat enim diam vel arcu. Curabitur ut odio vel est","Jun 12, 2018",35,"InCampus","$49.83");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (3,"Festival","ante. Maecenas mi felis, adipiscing fringilla, porttitor vulputate, posuere vulputate,","Jul 25, 2019",45,"InCampus","$40.21");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (4,"Volunteering","ac nulla. In tincidunt congue turpis. In condimentum. Donec at","Jun 16, 2018",45,"","$83.59");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (5,"Volunteering","Sed neque. Sed eget lacus. Mauris non dui nec urna","Jul 6, 2019",52,"","$15.61");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (6,"Festival","Sed congue, elit sed consequat auctor, nunc nulla vulputate dui,","Feb 13, 2019",43,"InCampus","$40.10");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (7,"Volunteering","et arcu imperdiet ullamcorper. Duis at lacus. Quisque purus sapien,","Mar 8, 2019",60,"InCampus","$9.42");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (8,"Festival","varius. Nam porttitor scelerisque neque. Nullam nisl. Maecenas malesuada fringilla","Nov 3, 2018",39,"InCampus","$29.70");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (9,"Volunteering","massa. Quisque porttitor eros nec tellus. Nunc lectus pede, ultrices","Sep 29, 2019",26,"InCampus","$77.03");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (10,"Festival","Duis mi enim, condimentum eget, volutpat ornare, facilisis eget, ipsum.","Nov 13, 2018",46,"InCampus","$92.23");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (11,"Volunteering","amet, faucibus ut, nulla. Cras eu tellus eu augue porttitor","Jul 12, 2018",40,"","$41.29");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (12,"SportGames","a odio semper cursus. Integer mollis. Integer tincidunt aliquam arcu.","Feb 28, 2018",51,"OffCampus","$59.29");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (13,"Volunteering","leo. Vivamus nibh dolor, nonummy ac, feugiat non, lobortis quis,","Jun 19, 2018",19,"InCampus","$4.44");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (14,"Volunteering","mi fringilla mi lacinia mattis. Integer eu lacus. Quisque imperdiet,","Jul 19, 2019",55,"","$96.48");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (15,"Festival","molestie tortor nibh sit amet orci. Ut sagittis lobortis mauris.","Oct 29, 2019",59,"OffCampus","$95.86");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (16,"Volunteering","sit amet ultricies sem magna nec quam. Curabitur vel lectus.","Jan 11, 2019",54,"InCampus","$26.89");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (17,"Festival","risus, at fringilla purus mauris a nunc. In at pede.","Apr 3, 2018",56,"","$45.97");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (18,"SportGames","luctus lobortis. Class aptent taciti sociosqu ad litora torquent per","Jul 19, 2018",15,"OffCampus","$21.13");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (19,"Volunteering","semper. Nam tempor diam dictum sapien. Aenean massa. Integer vitae","Nov 27, 2017",34,"InCampus","$4.33");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (20,"Festival","dapibus id, blandit at, nisi. Cum sociis natoque penatibus et","Sep 24, 2019",23,"OffCampus","$66.04");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (21,"SportGames","Maecenas ornare egestas ligula. Nullam feugiat placerat velit. Quisque varius.","Jan 25, 2019",36,"InCampus","$7.36");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (22,"Volunteering","quis accumsan convallis, ante lectus convallis est, vitae sodales nisi","May 8, 2019",34,"OffCampus","$2.32");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (23,"Festival","mus. Donec dignissim magna a tortor. Nunc commodo auctor velit.","May 13, 2019",44,"","$4.08");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (24,"Volunteering","lectus rutrum urna, nec luctus felis purus ac tellus. Suspendisse","Oct 4, 2018",14,"InCampus","$69.31");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (25,"Volunteering","quis lectus. Nullam suscipit, est ac facilisis facilisis, magna tellus","May 1, 2019",47,"InCampus","$60.39");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (26,"SportGames","ac mi eleifend egestas. Sed pharetra, felis eget varius ultrices,","Feb 14, 2018",11,"OffCampus","$87.06");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (27,"Festival","in faucibus orci luctus et ultrices posuere cubilia Curae; Donec","Jun 19, 2018",28,"","$13.94");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (28,"Festival","mauris erat eget ipsum. Suspendisse sagittis. Nullam vitae diam. Proin","Mar 24, 2018",21,"OffCampus","$50.91");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (29,"SportGames","dapibus rutrum, justo. Praesent luctus. Curabitur egestas nunc sed libero.","Oct 28, 2019",47,"InCampus","$88.04");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (30,"SportGames","Nulla semper tellus id nunc interdum feugiat. Sed nec metus","Mar 1, 2019",40,"OffCampus","$44.96");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (31,"Festival","Phasellus at augue id ante dictum cursus. Nunc mauris elit,","Dec 1, 2017",32,"InCampus","$51.50");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (32,"Volunteering","tempor bibendum. Donec felis orci, adipiscing non, luctus sit amet,","Jul 7, 2018",52,"InCampus","$37.68");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (33,"SportGames","vulputate, lacus. Cras interdum. Nunc sollicitudin commodo ipsum. Suspendisse non","Aug 7, 2019",59,"","$1.35");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (34,"Volunteering","velit in aliquet lobortis, nisi nibh lacinia orci, consectetuer euismod","Jan 3, 2018",27,"OffCampus","$79.98");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (35,"Volunteering","nostra, per inceptos hymenaeos. Mauris ut quam vel sapien imperdiet","Dec 20, 2018",43,"","$17.42");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (36,"Volunteering","erat vel pede blandit congue. In scelerisque scelerisque dui. Suspendisse","Dec 28, 2018",47,"InCampus","$32.49");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (37,"Volunteering","mauris sapien, cursus in, hendrerit consectetuer, cursus et, magna. Praesent","Oct 22, 2018",52,"OffCampus","$57.71");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (38,"Festival","lorem vitae odio sagittis semper. Nam tempor diam dictum sapien.","Aug 19, 2018",25,"InCampus","$28.19");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (39,"Volunteering","consectetuer adipiscing elit. Curabitur sed tortor. Integer aliquam adipiscing lacus.","Nov 29, 2017",23,"","$3.37");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (40,"SportGames","erat neque non quam. Pellentesque habitant morbi tristique senectus et","Apr 21, 2018",50,"InCampus","$13.93");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (41,"Festival","leo. Cras vehicula aliquet libero. Integer in magna. Phasellus dolor","May 5, 2018",37,"InCampus","$91.73");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (42,"Festival","ipsum cursus vestibulum. Mauris magna. Duis dignissim tempor arcu. Vestibulum","Sep 5, 2018",13,"InCampus","$38.97");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (43,"Festival","taciti sociosqu ad litora torquent per conubia nostra, per inceptos","Oct 22, 2018",34,"OffCampus","$28.61");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (44,"SportGames","nec, diam. Duis mi enim, condimentum eget, volutpat ornare, facilisis","Sep 24, 2019",28,"","$90.04");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (45,"Volunteering","ullamcorper viverra. Maecenas iaculis aliquet diam. Sed diam lorem, auctor","Apr 3, 2019",59,"OffCampus","$18.95");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (46,"SportGames","enim non nisi. Aenean eget metus. In nec orci. Donec","Sep 24, 2018",53,"InCampus","$4.70");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (47,"Volunteering","dolor vitae dolor. Donec fringilla. Donec feugiat metus sit amet","Apr 15, 2019",12,"InCampus","$39.73");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (48,"Festival","Nulla semper tellus id nunc interdum feugiat. Sed nec metus","Oct 13, 2019",15,"","$11.09");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (49,"SportGames","dui. Cum sociis natoque penatibus et magnis dis parturient montes,","Feb 24, 2018",47,"OffCampus","$72.88");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (50,"Festival","lectus justo eu arcu. Morbi sit amet massa. Quisque porttitor","Jun 21, 2018",16,"OffCampus","$45.51");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (51,"Festival","ridiculus mus. Proin vel nisl. Quisque fringilla euismod enim. Etiam","Jan 17, 2019",41,"InCampus","$78.17");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (52,"Festival","vel, mauris. Integer sem elit, pharetra ut, pharetra sed, hendrerit","Jan 15, 2019",58,"InCampus","$7.28");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (53,"Volunteering","ante blandit viverra. Donec tempus, lorem fringilla ornare placerat, orci","Apr 4, 2019",52,"InCampus","$84.50");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (54,"SportGames","morbi tristique senectus et netus et malesuada fames ac turpis","May 12, 2018",29,"OffCampus","$40.10");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (55,"SportGames","quis turpis vitae purus gravida sagittis. Duis gravida. Praesent eu","Dec 10, 2018",31,"InCampus","$38.71");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (56,"Volunteering","et, commodo at, libero. Morbi accumsan laoreet ipsum. Curabitur consequat,","Aug 27, 2019",56,"InCampus","$0.72");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (57,"SportGames","Nam ac nulla. In tincidunt congue turpis. In condimentum. Donec","Aug 8, 2019",38,"InCampus","$95.02");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (58,"SportGames","neque. Sed eget lacus. Mauris non dui nec urna suscipit","Jun 9, 2018",13,"OffCampus","$90.79");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (59,"Volunteering","Duis ac arcu. Nunc mauris. Morbi non sapien molestie orci","Feb 14, 2018",59,"InCampus","$35.34");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (60,"Volunteering","hendrerit neque. In ornare sagittis felis. Donec tempor, est ac","Mar 22, 2019",32,"InCampus","$93.40");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (61,"Festival","mi. Duis risus odio, auctor vitae, aliquet nec, imperdiet nec,","Aug 10, 2018",37,"InCampus","$90.79");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (62,"SportGames","Cras vulputate velit eu sem. Pellentesque ut ipsum ac mi","Oct 28, 2019",51,"","$65.30");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (63,"Festival","lorem vitae odio sagittis semper. Nam tempor diam dictum sapien.","Jun 21, 2019",33,"","$55.55");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (64,"SportGames","Phasellus dolor elit, pellentesque a, facilisis non, bibendum sed, est.","Mar 22, 2018",29,"OffCampus","$34.51");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (65,"Volunteering","ut quam vel sapien imperdiet ornare. In faucibus. Morbi vehicula.","Feb 9, 2019",24,"","$14.44");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (66,"Festival","Donec egestas. Duis ac arcu. Nunc mauris. Morbi non sapien","Aug 23, 2019",54,"InCampus","$19.64");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (67,"Festival","In faucibus. Morbi vehicula. Pellentesque tincidunt tempus risus. Donec egestas.","Jul 12, 2019",29,"InCampus","$55.44");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (68,"SportGames","amet ante. Vivamus non lorem vitae odio sagittis semper. Nam","Jun 30, 2018",11,"","$83.58");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (69,"Festival","pretium neque. Morbi quis urna. Nunc quis arcu vel quam","Sep 19, 2019",29,"InCampus","$58.94");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (70,"Festival","sed consequat auctor, nunc nulla vulputate dui, nec tempus mauris","Dec 21, 2017",41,"InCampus","$92.10");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (71,"Volunteering","at, nisi. Cum sociis natoque penatibus et magnis dis parturient","Feb 27, 2019",12,"InCampus","$22.81");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (72,"Festival","eu erat semper rutrum. Fusce dolor quam, elementum at, egestas","Jan 30, 2019",40,"InCampus","$72.39");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (73,"Festival","lobortis ultrices. Vivamus rhoncus. Donec est. Nunc ullamcorper, velit in","Dec 30, 2017",16,"InCampus","$89.24");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (74,"Festival","ut mi. Duis risus odio, auctor vitae, aliquet nec, imperdiet","Apr 16, 2019",36,"OffCampus","$68.88");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (75,"Volunteering","Proin vel arcu eu odio tristique pharetra. Quisque ac libero","Feb 21, 2019",40,"OffCampus","$77.03");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (76,"SportGames","tincidunt tempus risus. Donec egestas. Duis ac arcu. Nunc mauris.","May 5, 2018",54,"","$75.84");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (77,"Festival","molestie orci tincidunt adipiscing. Mauris molestie pharetra nibh. Aliquam ornare,","Jun 25, 2019",13,"InCampus","$52.56");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (78,"SportGames","egestas, urna justo faucibus lectus, a sollicitudin orci sem eget","Jun 12, 2019",32,"","$74.62");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (79,"SportGames","orci. Phasellus dapibus quam quis diam. Pellentesque habitant morbi tristique","Jun 23, 2019",30,"","$66.86");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (80,"SportGames","erat nonummy ultricies ornare, elit elit fermentum risus, at fringilla","Apr 20, 2019",44,"InCampus","$43.57");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (81,"SportGames","risus. Duis a mi fringilla mi lacinia mattis. Integer eu","Nov 18, 2018",18,"InCampus","$92.78");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (82,"SportGames","nunc sed pede. Cum sociis natoque penatibus et magnis dis","Mar 20, 2019",55,"OffCampus","$82.55");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (83,"SportGames","Sed nunc est, mollis non, cursus non, egestas a, dui.","Jun 20, 2018",33,"InCampus","$8.81");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (84,"Festival","nunc, ullamcorper eu, euismod ac, fermentum vel, mauris. Integer sem","Oct 12, 2019",35,"InCampus","$73.49");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (85,"SportGames","ut quam vel sapien imperdiet ornare. In faucibus. Morbi vehicula.","May 20, 2019",16,"","$96.29");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (86,"Festival","id ante dictum cursus. Nunc mauris elit, dictum eu, eleifend","Mar 2, 2018",50,"","$82.48");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (87,"Volunteering","elementum, lorem ut aliquam iaculis, lacus pede sagittis augue, eu","Apr 6, 2019",33,"OffCampus","$5.73");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (88,"SportGames","ornare, lectus ante dictum mi, ac mattis velit justo nec","Aug 8, 2019",24,"OffCampus","$75.96");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (89,"Volunteering","Curabitur massa. Vestibulum accumsan neque et nunc. Quisque ornare tortor","Jun 18, 2018",32,"OffCampus","$86.12");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (90,"Volunteering","molestie. Sed id risus quis diam luctus lobortis. Class aptent","Jul 21, 2018",19,"","$49.44");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (91,"Volunteering","lobortis. Class aptent taciti sociosqu ad litora torquent per conubia","Aug 1, 2019",43,"InCampus","$4.36");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (92,"Volunteering","semper rutrum. Fusce dolor quam, elementum at, egestas a, scelerisque","Jan 2, 2019",21,"","$19.97");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (93,"SportGames","ante dictum cursus. Nunc mauris elit, dictum eu, eleifend nec,","Aug 7, 2018",32,"","$99.67");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (94,"Festival","eu, euismod ac, fermentum vel, mauris. Integer sem elit, pharetra","Sep 29, 2019",28,"InCampus","$51.59");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (95,"Volunteering","Aenean gravida nunc sed pede. Cum sociis natoque penatibus et","May 7, 2019",37,"OffCampus","$76.31");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (96,"Festival","sem. Nulla interdum. Curabitur dictum. Phasellus in felis. Nulla tempor","Jul 19, 2019",36,"InCampus","$82.93");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (97,"SportGames","varius et, euismod et, commodo at, libero. Morbi accumsan laoreet","Nov 18, 2017",34,"OffCampus","$37.79");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (98,"Volunteering","velit eget laoreet posuere, enim nisl elementum purus, accumsan interdum","Jan 16, 2019",29,"","$53.08");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (99,"Festival","eget, dictum placerat, augue. Sed molestie. Sed id risus quis","Jun 23, 2018",59,"InCampus","$91.80");
- INSERT INTO Event (eventID,Title,eventDescription,Date_Time,lenght_min,locationDescription,ticketCost) VALUES (100,"Volunteering","odio sagittis semper. Nam tempor diam dictum sapien. Aenean massa.","Aug 26, 2019",37,"OffCampus","$18.98");
- -- -----------------------------------------------------
- -- Table `project`.`Attend`
- -- -----------------------------------------------------
- CREATE TABLE Attend (
- assignID mediumint,
- attendID mediumint,
- eventID mediumint,
- PRIMARY KEY (assignID, attendID),
- constraint assignID_attend FOREIGN KEY (assignID) REFERENCES Assign(assignID),
- constraint eventID_attend FOREIGN KEY (eventID) REFERENCES Event(eventID)
- )
- ENGINE = InnoDB;
- SET SQL_MODE=@OLD_SQL_MODE;
- SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
- SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
- CREATE INDEX name_index
- ON project.person(Fname);
- SHOW index from project.person;
- -- CREATE TRIGGER FOR UPDATE AND DELETE EXAMPLE
- CREATE TRIGGER ahead_insert
- After INSERT ON person
- FOR EACH ROW
- insert into person (personID,FName,LName,Gender,StreetAddress,Phone,Email)
- VALUES (101,"Bobby","John","M","701 Faith Avenue","(704) 982-5485","aac.Lorth.BJohn@unca.edu");
- -- UPDATE
- UPDATE `project`.`event`
- SET `Title` = 'Mock Interview'
- WHERE eventID =100;
- SELECT * FROM event;
- -- DELETE
- DELETE FROM person
- WHERE personID = 101;
- -- REPORT 1
- SELECT StudentID, GPA, major
- FROM student
- WHERE GPA = 3
- ORDER BY StudentID DESC;
- -- REPORT 2
- SELECT person.personID,Fname, Lname, Assign.rating, Event.title
- FROM person
- JOIN Assign ON person.personID = Assign.assignID
- JOIN Event On event.eventID = person.personID;
- -- REPORT 3
- SELECT mentorID, positions, student.StudentID
- FROM mentor, student;
- -- Creates studentArchive table:
- Use project;
- DROP TABLE IF EXISTS `studentArchive`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `studentArchive` ( `ID`
- int(11) NOT NULL AUTO_INCREMENT,
- `Major` varchar(255) DEFAULT NULL,
- `action` varchar(25) DEFAULT NULL,
- `changedon` datetime DEFAULT NULL,
- PRIMARY KEY (`ID`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- -- Trigger Execution:
- Use project;
- DROP TRIGGER IF EXISTS triggerAfterUpdate;
- DELIMITER $$
- CREATE TRIGGER triggerAfterUpdate
- BEFORE UPDATE ON student
- FOR EACH ROW BEGIN
- INSERT INTO studentArchive
- SET action = 'update',
- Major = OLD.Major,
- changedon = NOW();
- END$$
- DELIMITER ;
- use project;
- UPDATE student
- SET Major = 'Finances'
- WHERE StudentID = 33;
- SELECT * FROM project.student;
- -- Query 1
- SELECT StudentID
- FROM Student
- WHERE Major = 'Accounting';
- -- Query 2
- SELECT Title
- FROM Event
- WHERE locationDescription = 'OffCampus';
- -- Query 3
- SELECT student.StudentID
- FROM Assign
- JOIN student ON Assign.assignID = student.StudentID
- WHERE rating = 7;
- -- Query 4
- SELECT StudentID, GPA, Grad_year
- FROM Student
- WHERE honors_YorN = 'Y' AND GPA = 4;
- -- Report 3
- SELECT eventID, Title, locationDescription, Date_Time, ticketCost
- FROM Event WHERE ticketCost = (
- SELECT min(ticketCost)
- FROM Event
- WHERE Title = 'Festival' AND locationDescription = 'InCampus');
- -- Report 4
- SELECT assignID, AVG(rating), year
- FROM Assign
- WHERE year > 'Sep 2, 2018'
- GROUP BY assignID, rating
- ORDER BY assignID, rating;
- -- Stored Procedure
- DELIMITER //
- CREATE PROCEDURE Rating()
- begin
- select * from assign where rating = '4';
- end //
- DELIMITER ;
- call Rating();
- drop procedure Rating;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement