Database Scope and Requirements. Requirements and Assumptions

Size: px
Start display at page:

Download "Database Scope and Requirements. Requirements and Assumptions"

Transcription

1 Table of Contents Table of Contents... 2 Database Scope and Requirements... 3 Requirements and Assumptions... 3 Entity-Relationship Model... 5 Relational Model... 7 Relational Model Normalized... 8 Database Schema in MySQL Database Records SQL Queries Views Procedures, Triggers and Transaction Graphical User Interface References Appendix A

2 Database Scope and Requirements Database purpose: The database will provide functionality for course/instructor evaluation by the student. The collected statistical data will provide important feedback from students about the courses that are taught by the instructors. Database domain: The main users of the database are Students, who will answer the survey questions, and the Administrator/Instructor, who will create, modify and add the survey questions. Key entities: Submission, Question, Instructor, Course, Student, College, Department Assumptions: The Administrator/Instructor should be able to access and create reports based on previous survey submissions. Requirements and Assumptions Functional requirements: 1. The systems shall not allow multiple submissions by the same student for the same course. 2. In order to take the survey the student shall have to be enrolled in the class. 3. Each survey submission shall have a timestamp. 4. The system shall require that the Instructor provide a unique student ID, a full name, his/her classification and department for each student enrolled in a course. This information shall only be kept track of for the system to prevent the student from taking the same survey again, but the student s identity shall not be displayed or be available to the Instructor to ensure privacy and anonymity of the survey. 5. The system shall include the following student s classifications: graduate, senior, junior, sophomore, freshmen. 6. The system shall include departments, such as Mechanical Engineering, Computer Science, Education, Economics, and Management. The system shall keep track of which college any given department belongs to. 7. The following colleges shall be included but can be expanded: business, education, engineering, health sciences, liberal arts, nursing, and science. 8. The course shall have a unique CRN; course s name, number, term, year, section, and department the course belongs to shall be recorded. 9. The instructor shall have a unique employee ID; instructor s address, username, password, title, first, last and middle name shall be recorded. 10. Each question shall have a question text where the question and available answers are saved. 11. Each question shall have a category corresponding to the area being evaluated (Course, Instructor, TA, Facilities/Labs, Student). 3

3 12. Each question shall have a number, by which different questions that belong to the same submission shall be identified. 13. The following types of questions shall be included: scale, opinion, multiple choice, and expected grade. 14. The survey questions evaluating performances shall have a Scale (from Very Poor, Poor, Satisfactory, Good, to Excellent) consistent throughout the entire survey, where only one answer can be chosen. 15. The survey questions asking for student s Opinion shall have a text area, where the student s answer can be typed in and submitted. 16. The survey questions of type Multiple Choice shall allow a student to choose one answer from a list of options. 17. The survey questions of type Expected Grade shall allow a student to choose a letter which stands for the grade that he/she expects to receive for the class. 18. The data in the database shall allow the Instructor to: a. acquire reports that shall show the percentage of answers to each question; b. acquire reports that shall show the evaluation of a specific instructor, department, college, or average by the students. Nonfunctional requirements: 1. Student s information should be anonymous. Assumptions: 1. The Instructor shall create a survey by choosing among existing questions, or creating new questions. 2. We assume that the system is used properly, for example, each course shall be linked to its corresponding instructor. 4

4 Entity-Relationship Model 5

5 Additional Comments: 1. To identify which question belongs to which submission, we will use CRN and student ID in the primary key set for both the question and the submission. There cannot exist more than 1 copy of a CRN and a student ID combination for each submission. However, because there can be several questions in the same submission, a question number is also used in the primary key set of Question entity to distinguish between different questions of the same submission. 2. The student ID is used as an attribute in the Submission entity in order to prevent the same students from making more than 1 submission for the same course/instructor. However, even though the student ID, just like the password for the Instructor, is sensitive information that is used in the database queries, it can be made encrypted. Additionally, a View will also be created to extract all the information that the instructor needs for the reports, but without the student ID, thus making the student ID anonymous for the instructor. 3. The Scale, Opinion, Multiple Choice and Expected Grade are in an isa relationship with the weak entity Question, therefore, they inherit the primary keys of Question and do not require their own. See figure 4.32, p. 170 [5]. 6

6 Relational Model Object-oriented approach is used to translate the isa relationships into relational model. We used merging relations technique for most relations where cardinality was equal 1. This way, there will be no need to create separate tables for relations; information about them is already included. Student(studentID, firstname, lastname, middleinitial, classification) EnrolledIn(studentID, CRN) College(collegeName,deanName) Department(departmentName, chairname, collegename) Submission(studentID, CRN, date) Course(CRN, term, year, section, coursename, coursenumber, departmentname) Instructor(employeeID, username, password, title, firstname, lastname, middleinitial, ) Teaches (employeeid, CRN) Question(studentID, CRN, questionnumber, category, questiontext) Scale(studentID, CRN, questionnumber, value, category, questiontext) Opinion(studentID, CRN, questionnumber, text, category, questiontext) MultipleChoice(studentID, CRN, questionnumber, options, category, questiontext) ExpectedGrade(studentID, CRN, questionnumber, letter, category, questiontext) 7

7 Relational Model Normalized The following functional dependencies are found in the relational model: Student(studentID, firstname, lastname, middleinitial, classification) FD1 studentid-> firstname, lastname, middleinitial, classification EnrolledIn(studentID, CRN) College(collegeName,deanName) FD2 collegename ->deanname Department(departmentName, chairname, collegename) FD3 departmentname -> chairname, collegename Submission(studentID, CRN, date) FD4 studentid.crn-> date Course(CRN, term, year, section, coursename, coursenumber, departmentname) FD5 CRN-> term, year, section, coursename, coursenumber, departmentname Instructor(employeeID, username, password, title, firstname, lastname, middleinitial, ) FD6 employeeid-> username, password, title, firstname, lastname, middleinitial, Teaches (employeeid, CRN) Question(studentID, CRN, questionnumber, category, questiontext) FD7 studentid.crn. questionnumber -> category, questiontext Scale(studentID, CRN, questionnumber, value, category, questiontext) FD8 studentid.crn. questionnumber -> value, category, questiontext Opinion(studentID, CRN, questionnumber, text, category, questiontext) FD9 studentid.crn. questionnumber -> text, category, questiontext MultipleChoice(studentID, CRN, questionnumber, options, category, questiontext) FD10 studentid.crn. questionnumber -> options, category, questiontext ExpectedGrade(studentID, CRN, questionnumber, letter, category, questiontext) 8

8 Comments: FD11 studentid.crn. questionnumber -> letter, category, questiontext Even though such attributes as deanname and chairname can be divided into first name and last name attributes, it is unnecessary as they will only be used as atomic values for reports (see requirement #18). Our conclusion is that our relational model is in the 3NF, as all attributes contain atomic values, all nonprime attributes are functionally dependent on the full set of attributes composing their corresponding primary key, and every non-prime attribute is directly dependent on the primary key. 9

9 Database Schema in MySQL The following database schema is used to create a JoAnJo-db database in MySQL: CREATE TABLE IF NOT EXISTS cs_aidominguez.student ( studentid INT(8) NOT NULL, firstname VARCHAR(20), lastname VARCHAR(35), middleinitial VARCHAR(1), classification VARCHAR(10), departmentname VARCHAR(40), PRIMARY KEY (studentid)); CREATE TABLE IF NOT EXISTS cs_aidominguez.enrolledin ( studentid INT(8) NOT NULL, CRN INT(5) NOT NULL, PRIMARY KEY (studentid,crn), CONSTRAINT foreign_key_to_studentid_from_student_enrolledin FOREIGN KEY (studentid) REFERENCES cs_aidominguez.student (studentid) CONSTRAINT foreign_key_to_crn_from_course_enrolledin FOREIGN KEY (CRN) REFERENCES cs_aidominguez.course (CRN) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.college ( 10

10 collegename VARCHAR(50) NOT NULL, deanname VARCHAR(50), PRIMARY KEY (collegename)); CREATE TABLE IF NOT EXISTS cs_aidominguez.department ( departmentname VARCHAR(40) NOT NULL, chairname VARCHAR(50), collegename VARCHAR(50), PRIMARY KEY (departmentname), CONSTRAINT foreign_key_to_collegename_from_college_department FOREIGN KEY (collegename) REFERENCES cs_aidominguez.college (collegename) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.submission ( studentid INT(8) NOT NULL, CRN INT(5) NOT NULL, date DATE, employeeid INT(10), PRIMARY KEY (studentid,crn), CONSTRAINT foreign_key_to_studentid_from_student_submission FOREIGN KEY (studentid) REFERENCES cs_aidominguez.student (studentid) CONSTRAINT foreign_key_to_crn_from_course_submission 11

11 FOREIGN KEY (CRN) REFERENCES cs_aidominguez.course (CRN) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.course ( CRN INT(5) NOT NULL, term VARCHAR(10), year YEAR, section VARCHAR(5), coursename VARCHAR (100), coursenumber VARCHAR (7), departmentname VARCHAR(40), PRIMARY KEY (CRN), CONSTRAINT foreign_key_to_departmentname_from_department_course FOREIGN KEY (departmentname) REFERENCES cs_aidominguez.department (departmentname) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.instructor ( employeeid VARCHAR(10) NOT NULL, username VARCHAR(30), password VARCHAR(30), title VARCHAR(20), firstname VARCHAR(20), lastname VARCHAR(35), 12

12 middleinitial VARCHAR(1), VARCHAR(40), PRIMARY KEY (employeeid), UNIQUE (username)); CREATE TABLE IF NOT EXISTS cs_aidominguez.teaches ( employeeid VARCHAR(10) NOT NULL, CRN INT(5) NOT NULL, PRIMARY KEY (employeeid,crn), CONSTRAINT foreign_key_to_crn_from_course_teaches FOREIGN KEY (CRN) REFERENCES cs_adominguez.course (CRN) CONSTRAINT foreign_key_to_employeeid_from_instructor_teaches FOREIGN KEY (employeeid) REFERENCES cs_aidominguez.instructor (employeeid) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez. Question ( studentid INT(8) NOT NULL, CRN INT(5) NOT NULL, questionnumber INT(10) NOT NULL, category VARCHAR(15), questiontext VARCHAR(1000), PRIMARY KEY (studentid,crn, questionnumber), 13

13 CONSTRAINT foreign_key_to_studentid_from_submission_question FOREIGN KEY (studentid) REFERENCES cs_aidominguez.submission (studentid) CONSTRAINT foreign_key_to_crn_from_submission_question FOREIGN KEY (CRN) REFERENCES cs_aidominguez.submission (CRN) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.scale ( studentid INT(8), CRN INT(5), questionnumber INT(10) NOT NULL, value VARCHAR(12), category VARCHAR(15), questiontext VARCHAR(1000), PRIMARY KEY (studentid,crn, questionnumber), CONSTRAINT foreign_key_to_studentid_from_question_scale FOREIGN KEY (studentid) REFERENCES cs_aidominguez.question (studentid) CONSTRAINT foreign_key_to_crn_from_question_scale FOREIGN KEY (CRN) REFERENCES cs_aidominguez.question (CRN) 14

14 CONSTRAINT foreign_key_to_category_from_question_scale FOREIGN KEY (category) REFERENCES cs_aidominguez.question (category) CONSTRAINT foreign_key_to_questiontext_from_question_scale FOREIGN KEY (questiontext) REFERENCES cs_aidominguez.question (questiontext) CONSTRAINT foreign_key_to_questionnumber_from_question_scale FOREIGN KEY (questionnumber) REFERENCES cs_aidominguez.question (questionnumber) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.opinion ( studentid INT(8) NOT NULL, CRN INT(5) NOT NULL, questionnumber INT(10) NOT NULL, text VARCHAR(1000), category VARCHAR(15), questiontext VARCHAR(1000), PRIMARY KEY (studentid,crn, questionnumber), CONSTRAINT foreign_key_to_studentid_from_question_opinion FOREIGN KEY (studentid) REFERENCES cs_aidominguez.question (studentid) 15

15 CONSTRAINT foreign_key_to_crn_from_question_opinion FOREIGN KEY (CRN) REFERENCES cs_aidominguez.question (CRN) CONSTRAINT foreign_key_to_category_from_question_opinion FOREIGN KEY (category) REFERENCES cs_aidominguez.question (category) CONSTRAINT foreign_key_to_questiontext_from_question_opinion FOREIGN KEY (questiontext) REFERENCES cs_aidominguez.question (questiontext) CONSTRAINT foreign_key_to_questionnumber_from_question_opinion FOREIGN KEY (questionnumber) REFERENCES cs_aidominguez.question (questionnumber) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.multiplechoice ( studentid INT(8) NOT NULL, CRN INT(5) NOT NULL, questionnumber INT(10) NOT NULL, options VARCHAR(1000), category VARCHAR(15), questiontext VARCHAR(1000), PRIMARY KEY (studentid,crn, questionnumber), 16

16 CONSTRAINT foreign_key_studentid_from_question_multiplechoice FOREIGN KEY (studentid) REFERENCES cs_aidominguez.question (studentid) CONSTRAINT foreign_key_to_crn_from_question_multiplechoice FOREIGN KEY (CRN) REFERENCES cs_aidominguez.question (CRN) CONSTRAINT foreign_key_to_category_from_question_multiplechoice FOREIGN KEY (category) REFERENCES cs_aidominguez.question (category) CONSTRAINT foreign_key_to_questiontext_from_question_multiplechoice FOREIGN KEY (questiontext) REFERENCES cs_aidominguez.question (questiontext) CONSTRAINT foreign_key_to_questionnumber_from_question_multiplechoice FOREIGN KEY (questionnumber) REFERENCES cs_aidominguez.question (questionnumber) ON DELETE NO ACTION ON UPDATE NO ACTION); CREATE TABLE IF NOT EXISTS cs_aidominguez.expectedgrade ( studentid INT(8) NOT NULL, CRN INT(5) NOT NULL, questionnumber INT(10) NOT NULL, 17

17 letter VARCHAR(1), category VARCHAR(15), questiontext VARCHAR(1000), PRIMARY KEY (studentid,crn, questionnumber), CONSTRAINT foreign_key_to_studentid_from_question_expectedgrade FOREIGN KEY (studentid) REFERENCES cs_aidominguez.question (studentid) CONSTRAINT foreign_key_to_crn_from_question_expectedgrade FOREIGN KEY (CRN) REFERENCES cs_aidominguez.question (CRN) CONSTRAINT foreign_key_to_category_from_question_expectedgrade FOREIGN KEY (category) REFERENCES cs_aidominguez.question (category) CONSTRAINT foreign_key_to_questiontext_from_question_expectedgrade FOREIGN KEY (questiontext) REFERENCES cs_aidominguez.question (questiontext) CONSTRAINT foreign_key_to_questionnumber_from_question_expectedgrade FOREIGN KEY (questionnumber) REFERENCES cs_aidominguez.question (questionnumber) ON DELETE NO ACTION ON UPDATE NO ACTION); 18

18 BelongsTo Database Records CRN Department Name Computer Science Computer Science Education College College Name Engineering Education Business Dean Name Richard Schoerphoerster Josefina Tinajero Robert Nachtmann Course CRN term year section Course Name Spring Intro to Computer Science Spring Data Structures Spring Intro to Education Department Name Computer Science Course Number CS 1401 Computer CS 2401 Science Education ED 1301 Department Departmentt Name Chair Name College Name Computer Science Nigel Ward Engineering Mechanical Engineering Ahsan Choudhuri Engineering Management John Hadjimarcour Business EnrolledIn Student ID CRN

19 ExpectedGrade Student ID CRN Question Letter Category Question Text Number I Student The final grade I expect in this course is: B Student The final grade I expect in this course is: A Student The final grade I expect in this course is: Instructor Employee Username Password Title First Last Middle ID Name Name Initial Mr. John Cheney M jbgood17@hotmail.com longpre skate01 Mr. Luc Longpre longpre@utep.edu Mrs. Cynthia Wheeler P cwheeler@utep.edu MultipleChoice Student ID CRN Question Option Category Question Text Number B Student Classification: A)Graduate B)Senior C)Junior D)Sophomore E)Freshman C C Student Classification: A)Graduate B)Senior C)Junior D)Sophomore E)Freshman A Student Classification: A)Graduate B)Senior C)Junior D)Sophomore E)Freshman 20

20 Opinion Student ID CRN Question Text Category Question Text Number Not available during most office hours TA What is your opinion of the TA: Very organized! TA What is your opinion of the Very knowledgable TA TA: What is your opinion of the TA: Question Student ID CRN Question Category Question Text Question Type Number Instructor Rate the Scale effectiveness for the instructor in stimulating your interests in the subject: Student The final grade I expect in this Expected Grade course is: Lab Rate the state of lab materials: Scale Scale Student ID CRN Question Evaluation Category Question Text Number Satisfactory Instructor Rate the effectiveness for the instructor in stimulating your interests in the subject: Good Labe Rate the state of lab materials: 21

21 Good Instructor Rate the effectiveness for the instructor in stimulating your interests in the subject: Student Student ID First Name Last Name Middle Name Classification Department Name Andrea Dominguez Sophomore Computer Science Alla Dove Junior Computer Science George Anderson P Junior Mechanical Engineering Submission Student ID CRN Date Teaches Employee ID CRN SQL Queries $sql = "SELECT * FROM Submission WHERE studentid = '$_POST[studentID]' AND CRN = '$_POST[CRN]'"; if(mysql_num_rows(mysql_query($sql, $connection)) == 0){ $_SESSION['CRN'] = $_POST['CRN']; $_SESSION['studentID'] = $_POST['studentID']; header("location: SubmitEvaluation.php"); 22

22 }else{ echo "Already made submission"; } This query can be traced to functional requirement 1; $sql2 = "SELECT * FROM EnrolledIn WHERE studentid = '$_POST[studentID]' AND CRN = '$_POST[CRN]'"; if(mysql_num_rows(mysql_query($sql2, $connection)) == 0){ ) echo "Student not enrolled in course"; This query can be traced to functional requirement 2 $sql = "INSERT INTO Submission VALUES('$_SESSION[studentID]', '$_SESSION[CRN]', '$todaysdate')"; This query can be traced to functional requirement 3 $sql = "INSERT INTO Student VALUES('$_POST[studentID]', '$_POST[firstName]', '$_POST[lastName]', '$_POST[middleInitial]','$_POST[classification]', '$_POST[departmentName]')"; This query can be traced to functional requirements 4 and 5 $sql2 = "INSERT INTO Course VALUES ('$_POST[CRN]', '$_POST[term]', '$_POST[year]', '$_POST[section]', '$_POST[courseName]', '$_POST[departmentName]', '$_POST[courseNumber]')"; This query can be traced to functional requirement 8 $sql = "INSERT INTO Instructor VALUES('$_POST[employeeID]', '$_POST[username]', '$_POST[password]', '$_POST[title]', '$_POST[firstName]', $_POST[lastName]', '$_POST[middleInitial]', '$_POST[ ]')"; This query can be traced to functional requirement 9 $sql = "INSERT INTO Question VALUES('0', '$_SESSION[CRN]', $questioncode, '$_POST[category]', '$_POST[text]', '$_POST[type]')"; This query can be traced to functional requirement 10, 11, 12, 13 23

23 $sql = "INSERT INTO Scale VALUES('$_SESSION[studentID]', '$_SESSION[CRN]', '$row[questionnumber]', '$_POST[$questionNumber]', '$row[category]', '$row[questiontext]')"; This query can be traced to functional requirement 14 $sql = "INSERT INTO Opinion VALUES('$_SESSION[studentID]', '$_SESSION[CRN]', '$row[questionnumber]', '$_POST[$questionNumber]', '$row[category]', '$row[questiontext]')"; This query can be traced to functional requirement 15 $sql = "INSERT INTO MultipleChoice VALUES('$_SESSION[studentID]', '$_SESSION[CRN]', '$row[questionnumber]', '$_POST[$questionNumber]', '$row[category]', '$row[questiontext]')"; This query can be traced to functional requirement 16 $sql = "INSERT INTO ExpectedGrade VALUES('$_SESSION[studentID]', '$_SESSION[CRN]', '$row[questionnumber]', '$_POST[$questionNumber]', '$row[category]', '$row[questiontext]')"; This query can be traced to functional requirement 17 Views 1. The following view gives an Instructor all results for the course (CRN) he/she teaches. It allows the instructor to see all answers to all questions for the given CRN, without viewing the IDs of the students who submitted the evaluations. The view can be traced to the functional requirements #5 and #18, as well as #9, #11 and #12. CREATE VIEW AnswersPerCRN AS SELECT value, category, questiontext FROM Scale WHERE CRN='13279' UNION SELECT text, category, questiontext FROM Opinion WHERE CRN='13279' UNION SELECT options, category, questiontext FROM MultipleChoice WHERE CRN='13279' UNION SELECT letter, category, questiontext FROM ExpectedGrade WHERE CRN='13279'; One of the ways to use this view would be in the following query, which allows sorting the results by the question s category (Course, Instructor, TA, Facilities/Labs, Grading): SELECT * FROM cs_akdove.answerspercrn ORDER BY category; 2. The following view can be used to display information about all courses taught during or after year The view can also be used for retrieving reports and therefore, can be traced to the functional requirement #12. 24

24 CREATE VIEW coursesbeforeyear AS SELECT * FROM Course WHERE year>2012; Procedures, Triggers and Transaction \d// 1. Procedure: The following procedure can be used to fill up the Course table with courses. Written this way, the procedure accepts the parameters passed in the following order: CRN, term, year, section, course name, course number, department name. The procedure can be traced to the functional requirement #9. CREATE PROCEDURE AddCourses( BEGIN IN newcrn INT(5), IN newterm VARCHAR(10), IN newyear year(4), IN newsection VARCHAR(5), IN newcoursename VARCHAR(100), IN newcoursenumber VARCHAR (7), IN newdepartmentname VARCHAR(40) ) INSERT INTO Course(CRN, term, year, section, coursename, coursenumber, departmentname) VALUES (newcrn, newterm, newyear, newsection, newcoursename, newcoursenumber, newdepartmentname); END \d; An example query for this procedure would be: call AddCourses('12345','Fall','2012','1','Database Management', 'CS 4342','Computer Science'); 25

25 \d// 2. Trigger: The following trigger can be used to make sure that the user is aware if he/she starts adding departments before any colleges are added to the database. Since we don't have privileges to create triggers (error: Access denied; you need the SUPER privilege for this operation), it was not possible to test this trigger. The trigger can be traced to the functional requirement #7. CREATE TRIGGER onupdate BEFORE INSERT on Department.collegeName FOR EACH ROW BEGIN IF (SELECT COUNT(collegeName) FROM College)=0 THEN = 'No colleges have been added at this point. Please make sure to add colleges before you add departments.'; END IF; END \d; \d// 3. Transaction: The following transaction can be used if we want to add instructors accounts manually (as opposed to them registering in the system through the website) and add the courses they teach at the same time. START TRANSACTION; INSERT INTO Instructor(employeeID, username, password, title, firstname,lastname,middleinitial, ) VALUES ('id1234','nvillanuevarosales','password','dr. ', 'Natalia','Villanueva Rosales','','nvillanuevarosales@utep.edu'); INSERT INTO Course(CRN, term, year, section, coursename, coursenumber, departmentname) 26

26 COMMIT; \d; VALUES ('67890','Fall','2012','1','Database Management', 'CS 4342','Computer Science'); Graphical User Interface Once the instructor has created their account, which include a username and password, their information will be saved in the Instructor table. Then they can use their username and password to log into the system and will be taken to the page shown above. From here the user can select the Update Information button to update their information on the Instructor table. The user can also select add course which will update the Course and Teaches table with the information they provide. The user can also add the CRN in any of the four text boxes provided and selecting the different options will lead to different outcomes. When add students is selected, the user can provide information for students attending the given course. This will update the Student and Enrolled in Table. Selecting delete course will remove the course from the system as well as any questions associated with that course. Rows are removed from the Course, EnrolledIn, Question, and Teaches table. Selecting Update question will allow the user to manage questions associated with a certain course. The table Question is updated with the information the user provides. Selecting view submissions will show the user student submissions to the questions provided with the students information being left out due to student privacy. 27

27 References [1]. Codex-M Company. 7 MySQL Command-line Tool Tips. March 01, [2]. Codex-M Company. Creating a New MySQL Table and Configuration MySQL. May 03, [3]. Media Temple, Inc. Using SSH in PuTTY (Windows). [4]. UTC. MySQL Commands. July 25, Updated January 21, [5]. Ullman Jefferey D, Widom Jennifer; A First Course in Database Systems. Third Edition; Prentice Hall Press. 28

CS211 Lecture: Database Design

CS211 Lecture: Database Design CS211 Lecture: Database Design Objectives: last revised November 21, 2006 1. To introduce the anomalies that result from redundant storage of data 2. To introduce the notion of functional dependencies

More information

Relational terminology. Databases - Sets & Relations. Sets. Membership

Relational terminology. Databases - Sets & Relations. Sets. Membership Relational terminology Databases - & Much of the power of relational databases comes from the fact that they can be described analysed mathematically. In particular, queries can be expressed with absolute

More information

School of Computing and Information Technology Session: Spring CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018

School of Computing and Information Technology Session: Spring CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018 School of Computing and Information Technology Session: Spring 2018 University of Wollongong Lecturer: Janusz R. Getta CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018 THE QUESTIONS

More information

II. Review/Expansion of Definitions - Ask class for definitions

II. Review/Expansion of Definitions - Ask class for definitions CS352 Lecture - The Entity-Relationship Model last revised July 25, 2008 Objectives: 1. To discuss using an ER model to think about a database at the conceptual design level. 2. To show how to convert

More information

School of Computing and Information Technology. Examination Paper Autumn Session 2017

School of Computing and Information Technology. Examination Paper Autumn Session 2017 School of Computing and Information Technology CSIT115 Data Management and Security Wollongong Campus Student to complete: Family name Other names Student number Table number Examination Paper Autumn Session

More information

EECS 647: Introduction to Database Systems

EECS 647: Introduction to Database Systems EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2009 Administrative I have communicated with KU Bookstore inquring about the text book status. Take home background survey is due

More information

Working with Databases and Java

Working with Databases and Java Working with Databases and Java Pedro Contreras Department of Computer Science Royal Holloway, University of London January 30, 2008 Outline Introduction to relational databases Introduction to Structured

More information

Project Overview and Scope

Project Overview and Scope Project Overview and Scope MISSION What problem does this project address? Historically, students tend to skip class. This system aids instructors in tracking the attendance of their students. It will

More information

CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP (ER) MODEL

CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP (ER) MODEL Chapter 3: Data Modeling Using the Entity-Relationship (ER) Model 1 CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP (ER) MODEL Answers to Selected Exercises 3.16 Consider the following set of requirements

More information

CS 348 Introduction to Database Management Assignment 2

CS 348 Introduction to Database Management Assignment 2 CS 348 Introduction to Database Management Assignment 2 Due: 30 October 2012 9:00AM Returned: 8 November 2012 Appeal deadline: One week after return Lead TA: Jiewen Wu Submission Instructions: By the indicated

More information

Performance Software

Performance Software Preliminary Design Automated Grading System for Microsoft Excel Spreadsheets Clients: Dr. Scott Hunter Professor - Department of Computer Science Siena College Ms. Jami Cotler Professor - Department of

More information

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we

More information

Part 1: Access Privileges

Part 1: Access Privileges Part 1: Access Privileges In database management systems, we often do not want to provide the users full control over our database for different reasons. For example, if Amazon.com customers could delete

More information

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1 CS 4604: Introduction to Database Management Systems B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1 E/R: NOT IN BOOK! IMPORTANT: Follow only lecture slides for this topic! Differences

More information

SSID User Guide and Policy

SSID User Guide and Policy OSPI SSID User Guide and Policy Using the Comprehensive Education Data and Research System to obtain State Student Identifiers Customer Support September 2017 Table of Contents Introduction... 3 Using

More information

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems CS 440: Database Management Systems Chapter 7 Outline Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys Relationship

More information

CS 338 The Enhanced Entity-Relationship (EER) Model

CS 338 The Enhanced Entity-Relationship (EER) Model CS 338 The Enhanced Entity-Relationship (EER) Model Bojana Bislimovska Spring 2017 Major research Outline EER model overview Subclasses, superclasses and inheritance Specialization and generalization Modeling

More information

Step 1: Completing the CCCApply and Cabrillo Application (TO BE COMPLETED FROM OCT 1 st and ON)

Step 1: Completing the CCCApply and Cabrillo Application (TO BE COMPLETED FROM OCT 1 st and ON) Step 1: Completing the CCCApply and Cabrillo Application (TO BE COMPLETED FROM OCT 1 st and ON) Information Needed Before Applying Before beginning the Cabrillo application have the following information

More information

UBC Graduate Information System (GIS)

UBC Graduate Information System (GIS) UBC Graduate Information System (GIS) Project Design University of British Columbia Okanagan COSC 304 Fall 2009 Version: 1.3 Date: 11/22/2009 Project Team Kyle Kotowick Andrew Campbell Document Control

More information

Online Data Modeling Tool to Improve Students' Learning of Conceptual Data Modeling

Online Data Modeling Tool to Improve Students' Learning of Conceptual Data Modeling Association for Information Systems AIS Electronic Library (AISeL) SAIS 2004 Proceedings Southern (SAIS) 3-1-2004 Online Data Modeling Tool to Improve Students' Learning of Conceptual Data Modeling Hsiang-Jui

More information

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38 Student Info StudentID: Center: ExamDate: MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: 1356458 Time: 60 min Marks: 38 BC080402322 OPKST 5/28/2010 12:00:00 AM

More information

CS211 Lecture: Database Querying and Updating

CS211 Lecture: Database Querying and Updating CS211 Lecture: Database Querying and Updating last revised 9/30/2004 Objectives: 1. To introduce the relational algebra. 2. To introduce the SQL select statement 3. To introduce the SQL insert, update,

More information

Database System Concepts and Architecture

Database System Concepts and Architecture Database System Concepts and Architecture Different Database Models: The relational database model is the most widespread and used of all the database models. In relational databases, data is stored in

More information

LAB 4.1 Relational Operators and the if Statement

LAB 4.1 Relational Operators and the if Statement LAB 4.1 Relational Operators and the if Statement // This program tests whether or not an initialized value of num2 // is equal to a value of num1 input by the user. int main( ) int num1, // num1 is not

More information

Networks and Web for Health Informatics (HINF 6220)

Networks and Web for Health Informatics (HINF 6220) Networks and Web for Health Informatics (HINF 6220) Tutorial #1 Raheleh Makki Email: niri@cs.dal.ca Tutorial Class Timings Tuesday & Thursday 4:05 5:25 PM Course Outline Database Web Programming SQL PHP

More information

Databases and SQL Lab EECS 448

Databases and SQL Lab EECS 448 Databases and SQL Lab EECS 448 Databases A database is an organized collection of data. Data facts are stored as fields. A set of fields that make up an entry in a table is called a record. Server - Database

More information

Course and Contact Information. Course Description. Course Objectives

Course and Contact Information. Course Description. Course Objectives San Jose State University College of Science Department of Computer Science CS157A, Introduction to Database Management Systems, Sections 1 and 2, Fall2017 Course and Contact Information Instructor: Dr.

More information

CPS221 Lecture: Relational Database Querying and Updating

CPS221 Lecture: Relational Database Querying and Updating CPS221 Lecture: Relational Database Querying and Updating last revised 8/5/10 Objectives: 1. To introduce the SQL select statement 2. To introduce the SQL insert, update, and delete statements Materials:

More information

Database Languages. A DBMS provides two types of languages: Language for accessing & manipulating the data. Language for defining a database schema

Database Languages. A DBMS provides two types of languages: Language for accessing & manipulating the data. Language for defining a database schema SQL 1 Database Languages A DBMS provides two types of languages: DDL Data Definition Language Language for defining a database schema DML Data Manipulation Language Language for accessing & manipulating

More information

Overview of db design Requirement analysis Data to be stored Applications to be built Operations (most frequent) subject to performance requirement

Overview of db design Requirement analysis Data to be stored Applications to be built Operations (most frequent) subject to performance requirement ITCS 3160 Data Base Design and Implementation Jing Yang 2010 Fall Class 12: Data Modeling Using the Entity-Relationship (ER) Model Overview of db design Requirement analysis Data to be stored Applications

More information

CPS221 Lecture: Relational Database Querying and Updating

CPS221 Lecture: Relational Database Querying and Updating CPS221 Lecture: Relational Database Querying and Updating Objectives: last revised 10/29/14 1. To introduce the SQL select statement 2. To introduce the SQL insert, update, and delete statements Materials:

More information

3 Specific Requirements 3.1 Functional Requirements

3 Specific Requirements 3.1 Functional Requirements 3 Specific Requirements 3.1 Functional Requirements 3.1.1 Functional Requirement New User Page (Matthew Redenius) This is a web page for the user to become a registered user. A user name, password, and

More information

Step 1. Final Grade Roster Submission. IT Department Printed on 05/21/2012 Page 1. Steps to Submit Grades. Step 1. Step 2. Step 3

Step 1. Final Grade Roster Submission. IT Department Printed on 05/21/2012 Page 1. Steps to Submit Grades. Step 1. Step 2. Step 3 /Notes 1. Log into CUNYfirst Enter your username and password AND Click on the Go button icon 2. From the Enterprise Menu, select the HR/Campus Solutions link IT Department Printed on 05/21/2012 Page 1

More information

Chapter 2 Introduction to Relational Models

Chapter 2 Introduction to Relational Models CMSC 461, Database Management Systems Spring 2018 Chapter 2 Introduction to Relational Models These slides are based on Database System Concepts book and slides, 6th edition, and the 2009 CMSC 461 slides

More information

Lecture 10 - Chapter 7 Entity Relationship Model

Lecture 10 - Chapter 7 Entity Relationship Model CMSC 461, Database Management Systems Spring 2018 Lecture 10 - Chapter 7 Entity Relationship Model These slides are based on Database System Concepts 6th edition book and are a modified version of the

More information

Course and Contact Information. Course Description. Course Objectives

Course and Contact Information. Course Description. Course Objectives San Jose State University College of Science Department of Computer Science CS157A, Introduction to Database Management Systems, Sections 1 and 2, Fall2016 Course and Contact Information Instructor: Dr.

More information

Informatics 1: Data & Analysis

Informatics 1: Data & Analysis Informatics 1: Data & Analysis Lecture 4: From ER Diagrams to Relational Models Ian Stark School of Informatics The University of Edinburgh Friday 26 January 2018 Semester 2 Week 2 https://blog.inf.ed.ac.uk/da18

More information

CS 146 Database Systems

CS 146 Database Systems DBMS CS 146 Database Systems Entity-Relationship (ER) Model CS 146 1 CS 146 2 A little history Progression of Database Systems In DBMS: single instance of data maintained and accessed by different users

More information

Database Design and Administration for OnBase WorkView Solutions. Mike Martel Senior Project Manager

Database Design and Administration for OnBase WorkView Solutions. Mike Martel Senior Project Manager Database Design and Administration for OnBase WorkView Solutions Mike Martel Senior Project Manager 1. Solution Design vs. Database Design Agenda 2. Data Modeling/Design Concepts 3. ERD Diagramming Labs

More information

MWF 9:00-9:50AM & 12:00-12:50PM (ET)

MWF 9:00-9:50AM & 12:00-12:50PM (ET) Department of Mathematics and Computer Science Adelphi University Fall 2013 0145-443-001 Database Management Systems Dr. R. M. Siegfried 214 Post Hall (516)877-4482 siegfrie@adelphi.edu Office Hours Course

More information

Database Management Systems CS Spring 2017

Database Management Systems CS Spring 2017 Database Management Systems CS 542 --- Spring 2017 Instructor: Elke Rundensteiner Office: FL 135 Email: rundenst@cs.wpi.edu http://web.cs.wpi.edu/~cs542/s17 Course Information Who should attend? Interested

More information

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Representation in Relational Model.

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Representation in Relational Model. Database Design Database Design I: The Entity-Relationship Model Chapter 5 Goal: specification of database schema Methodology: Use E-R R model to get a high-level graphical view of essential components

More information

UBC Graduate Information System (GIS)

UBC Graduate Information System (GIS) UBC Graduate Information System (GIS) Project Design University of British Columbia Okanagan COSC 304 Fall 2009 Version: 1.1 Date: 11/02/2009 Project Team Kyle Kotowick () Andrew Campbell () Document Control

More information

Registrar Data Instructions

Registrar Data Instructions Registrar Data Instructions Registrar data must be submitted for report generation and to confirm the accuracy of reporting. Institutions should carefully review the instructions for descriptions and accepted

More information

CS221 Lecture: The Relational Data Model

CS221 Lecture: The Relational Data Model CS221 Lecture: The Relational Data Model last revised July 30, 2010 Objectives: 1. To understand the fundamentals of the relational model 2. To understand the concept of key (superkey, candidate, primary,

More information

Student access to OracleWeb. June

Student access to OracleWeb. June Student access to OracleWeb June 2010 1 Access OracleWeb from the Rockhurst University web page (www.rockhurst.edu). Go to Current Students page. June 2010 2 From the Current Students Page, click on Online

More information

Doing database design with MySQL

Doing database design with MySQL Doing database design with MySQL Jerzy Letkowski Western New England University Abstract Most of the database textbooks, targeting database design and implementation for information systems curricula support

More information

Module 2 : Entity-Relationship Model 15

Module 2 : Entity-Relationship Model 15 Module 2 : Entity-Relationship Model 15 Module-02 Entity Relationship Data Model 2.1 Motivation Data modeling is an essential step in the process of creating any Database Application. It helps Database

More information

A practical introduction to database design

A practical introduction to database design A practical introduction to database design Dr. Chris Tomlinson Bioinformatics Data Science Group, Room 126, Sir Alexander Fleming Building chris.tomlinson@imperial.ac.uk Computer Skills Classes 17/01/19

More information

0. Database Systems 1.1 Introduction to DBMS Information is one of the most valuable resources in this information age! How do we effectively and efficiently manage this information? - How does Wal-Mart

More information

UBC Graduate Information System (GIS)

UBC Graduate Information System (GIS) UBC Graduate Information System (GIS) Project Design University of British Columbia Okanagan COSC 304 Fall 2009 Version: 1.4 Date: 12/02/2009 Project Team Kyle Kotowick () Andrew Campbell () Document Control

More information

SQL IN PL/SQL. In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77

SQL IN PL/SQL. In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77 CHAPTER 4 SQL IN PL/SQL CHAPTER OBJECTIVES In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77 This chapter is a collection of some fundamental elements

More information

MySQL. A practical introduction to database design

MySQL. A practical introduction to database design MySQL A practical introduction to database design Dr. Chris Tomlinson Bioinformatics Data Science Group, Room 126, Sir Alexander Fleming Building chris.tomlinson@imperial.ac.uk Database Classes 24/09/18

More information

Keys are fields in a table which participate in below activities in RDBMS systems:

Keys are fields in a table which participate in below activities in RDBMS systems: Keys are fields in a table which participate in below activities in RDBMS systems: 1. To create relationships between two tables. 2. To maintain uniqueness in a table. 3. To keep consistent and valid data

More information

Logical database design

Logical database design Databases 2013 2014/Ia Homework 2 Due date: September 27, 2013 Logical database design This homework consists of two parts. In the first part of this homework, we will go through some of the design decisions

More information

CSE 880:Database Systems. ER Model and Relation Schemas

CSE 880:Database Systems. ER Model and Relation Schemas CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,

More information

VU Mobile Powered by S NO Group All Rights Reserved S NO Group 2013

VU Mobile Powered by S NO Group All Rights Reserved S NO Group 2013 1 CS403 Final Term Solved MCQs & Papers Mega File (Latest All in One) Question # 1 of 10 ( Start time: 09:32:20 PM ) Total Marks: 1 Each table must have a key. primary (Correct) secondary logical foreign

More information

The Entity-Relationship Model (ER Model) - Part 2

The Entity-Relationship Model (ER Model) - Part 2 Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section

More information

namib I A U n IVERS I TY

namib I A U n IVERS I TY namib I A U n IVERS I TY OF SCIEnCE AnD TECH n 0 LOGY FACULTY OF COMPUTING AND INFORMATICS DEPARTMENT OF COMPUTER SCIENCE QUALIFICATION: BACHELOR OF COMPUTER SCIENCE QUALIFICATION CODE: 07BACS LEVEL: 5

More information

MAUI Final Exam Assignment Needs Submission Instructions for Academic Department Administrators

MAUI Final Exam Assignment Needs Submission Instructions for Academic Department Administrators MAUI Final Exam Assignment Needs Submission Instructions for Academic Department Administrators 1.) Go to MAUI (Made At the University of Iowa student information system) at http://www.maui.uiowa.edu 2.)

More information

Read this before starting!

Read this before starting! Points missed: Student's Name: Total score: /50 points East Tennessee State University Department of Computer and Information Sciences CSCI 2910 (Tarnoff) Server/Client Side Programming TEST 2 for Spring

More information

Introduction to Programming II Winter, 2015 Assignment 5 (Saturday, April 4, 2015: 23:59:59)

Introduction to Programming II Winter, 2015 Assignment 5 (Saturday, April 4, 2015: 23:59:59) 60-4 Introduction to Programming II Winter, 205 Assignment 5 (Saturday, April 4, 205: 2:59:59) This is a lengthy assignment description. Take time to read it carefully and thoroughly. Dynamic Linked Lists

More information

A Deeper Look at Data Modeling. Shan-Hung Wu & DataLab CS, NTHU

A Deeper Look at Data Modeling. Shan-Hung Wu & DataLab CS, NTHU A Deeper Look at Data Modeling Shan-Hung Wu & DataLab CS, NTHU Outline More about ER & Relational Models Weak Entities Inheritance Avoiding redundancy & inconsistency Functional Dependencies Normal Forms

More information

Lecture 11 - Chapter 8 Relational Database Design Part 1

Lecture 11 - Chapter 8 Relational Database Design Part 1 CMSC 461, Database Management Systems Spring 2018 Lecture 11 - Chapter 8 Relational Database Design Part 1 These slides are based on Database System Concepts 6th edition book and are a modified version

More information

WHAT IS SQL. Database query language, which can also: Define structure of data Modify data Specify security constraints

WHAT IS SQL. Database query language, which can also: Define structure of data Modify data Specify security constraints SQL KEREM GURBEY WHAT IS SQL Database query language, which can also: Define structure of data Modify data Specify security constraints DATA DEFINITION Data-definition language (DDL) provides commands

More information

Unit I. By Prof.Sushila Aghav MIT

Unit I. By Prof.Sushila Aghav MIT Unit I By Prof.Sushila Aghav MIT Introduction The Need for Databases Data Models Relational Databases Database Design Storage Manager Query Processing Transaction Manager DBMS Applications DBMS contains

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY Seat No.: Enrolment No. GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER III (NEW) - EXAMINATION SUMMER 2017 Subject Code: 21303 Date: 02/06/2017 Subject Name: Database Management Systems Time: 10:30 AM

More information

Blackboard Basics Instructional Technology Services Seattle Pacific University

Blackboard Basics Instructional Technology Services Seattle Pacific University Blackboard Basics Instructional Technology Services Seattle Pacific University What is going to be covered today? Overview of the SPU Blackboard environment Recommended computer specifications and plug-ins

More information

Midterm Exam #1 Version A CS 122A Winter 2017

Midterm Exam #1 Version A CS 122A Winter 2017 NAME: SEAT NO.: STUDENT ID: Midterm Exam #1 Version A CS 122A Winter 2017 Max. Points: 100 (Please read the instructions carefully) Instructions: - The total time for the exam is 50 minutes; be sure to

More information

EE221 Databases Practicals Manual

EE221 Databases Practicals Manual EE221 Databases Practicals Manual Lab 1 An Introduction to SQL Lab 2 Database Creation and Querying using SQL Assignment Data Analysis, Database Design, Implementation and Relation Normalisation School

More information

Student Guide to Using Moodle. Louisiana Tech University

Student Guide to Using Moodle. Louisiana Tech University Student Guide to Using Moodle Louisiana Tech University Rev. 4/2013 Table of Contents Browser Requirements... 3 Logging In... 3 Accessing Your Course... 3 Navigating through Your Course... 4 Submitting

More information

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Email Address: meyer@sci.brooklyn.cuny.edu Course Page: http://www.sci.brooklyn.cuny.edu/~meyer/ CISC3140-Meyer-lec4

More information

Data Modelling and Databases. Exercise Session 7: Integrity Constraints

Data Modelling and Databases. Exercise Session 7: Integrity Constraints Data Modelling and Databases Exercise Session 7: Integrity Constraints 1 Database Design Textual Description Complete Design ER Diagram Relational Schema Conceptual Modeling Logical Modeling Physical Modeling

More information

Part 5: Introduction to Logical Design

Part 5: Introduction to Logical Design 5. Introduction to Logical Design 5-1 Part 5: Introduction to Logical Design References: Elmasri/Navathe:Fundamentals of Database Systems, 3rd Edition, 1999. Chapter 3, Data Modeling Using the Entity-Relationship

More information

CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018

CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018 School of Computing and Information Technology Session: Autumn 2018 University of Wollongong Lecturers: Janusz R. Getta Tianbing Xia CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018

More information

UNIT 1 INTRODUCTION TO DBMS 1

UNIT 1 INTRODUCTION TO DBMS 1 UNIT 1 INTRODUCTION TO DBMS 1 UNIT 1 INTRODUCTION TO DBMS 2 Example of simple college database which stores student and course information. Student: Stud-id Name Subjects Grade 1 Bob CS A 2 Tom MATH B

More information

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017 Applied Databases Lecture 5 ER Model, Normal Forms Sebastian Maneth University of Edinburgh - January 30 th, 2017 Outline 2 1. Entity Relationship Model 2. Normal Forms From Last Lecture 3 the Lecturer

More information

CMSC Introduction to Database Systems

CMSC Introduction to Database Systems CMSC 23500 Introduction to Database Systems Department of Computer Science University of Chicago Spring 2009 Quarter Dates: March 30 through June 2, 2009 Lectures: TuTh 12:00-1:20 in Ryerson 277 Labs:

More information

3.1. Keys: Super Key, Candidate Key, Primary Key, Alternate Key, Foreign Key

3.1. Keys: Super Key, Candidate Key, Primary Key, Alternate Key, Foreign Key Unit 3: Types of Keys & Data Integrity 3.1. Keys: Super Key, Candidate Key, Primary Key, Alternate Key, Foreign Key Different Types of SQL Keys A key is a single or combination of multiple fields in a

More information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data. Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting

More information

Database Management Systems

Database Management Systems Database Management Systems Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Computer Science Department 2015 2016 Department of Computer Science

More information

Database Programming with SQL

Database Programming with SQL Database Programming with SQL 12-2 Objectives In this lesson, you will learn to: Construct and execute an UPDATE statement Construct and execute a DELETE statement Construct and execute a query that uses

More information

San José State University Computer Science Department CS157A: Introduction to Database Management Systems Sections 5 and 6, Fall 2015

San José State University Computer Science Department CS157A: Introduction to Database Management Systems Sections 5 and 6, Fall 2015 San José State University Computer Science Department CS157A: Introduction to Database Management Systems Sections 5 and 6, Fall 2015 Course and Contact Information Instructor: Ron Gutman Office Location:

More information

Introduction to Databases Fall-Winter 2010/11. Syllabus

Introduction to Databases Fall-Winter 2010/11. Syllabus Introduction to Databases Fall-Winter 2010/11 Syllabus Werner Nutt Syllabus Lecturer Werner Nutt, nutt@inf.unibz.it, Room POS 2.09 Office hours: Tuesday, 14:00 16:00 and by appointment (If you want to

More information

Mapping ER Diagrams to. Relations (Cont d) Mapping ER Diagrams to. Exercise. Relations. Mapping ER Diagrams to Relations (Cont d) Exercise

Mapping ER Diagrams to. Relations (Cont d) Mapping ER Diagrams to. Exercise. Relations. Mapping ER Diagrams to Relations (Cont d) Exercise CSC 74 Database Management Systems Topic #6: Database Design Weak Entity Type E Create a relation R Include all simple attributes and simple components of composite attributes. Include the primary key

More information

Data Modeling and the Entity-Relationship Model

Data Modeling and the Entity-Relationship Model Data Modeling and the Entity-Relationship Model Grant Weddell Cheriton School of Computer Science University of Waterloo CS 348 Introduction to Database Management Winter 2017 CS 348 (Intro to DB Mgmt)

More information

Corporate Technology Center. Final Report: Database Implementation. Submitted to Dr. Hae Choi. of the. Savannah State University

Corporate Technology Center. Final Report: Database Implementation. Submitted to Dr. Hae Choi. of the. Savannah State University Corporate Technology Center Final Report: Database Implementation Submitted to Dr. Hae Choi of the Savannah State University in Partial Fulfilment of the Requirement for the Systems Analysis and Design:

More information

Degree Conferral Application Instructions For Students

Degree Conferral Application Instructions For Students Degree Conferral Application Instructions For Students Students should meet with their advisor to verify their eligibility for degree conferral either in the Fall semester or early in the Spring semester

More information

Module 3 MySQL Database. Database Management System

Module 3 MySQL Database. Database Management System Module 3 MySQL Database Module 3 Contains 2 components Individual Assignment Group Assignment BOTH are due on Mon, Feb 19th Read the WIKI before attempting the lab Extensible Networking Platform 1 1 -

More information

CSE 544 Principles of Database Management Systems

CSE 544 Principles of Database Management Systems CSE 544 Principles of Database Management Systems Lecture 1 - Introduction and the Relational Model 1 Outline Introduction Class overview Why database management systems (DBMS)? The relational model 2

More information

Grading Schemas. Blackboard Learn Grade Center

Grading Schemas. Blackboard Learn Grade Center Grading Schemas Blackboard Learn Grade Center Creating a Grading Schema... 1 Editing a Grading Schema... 3 Deleting a Grading Schema... 4 Copying a Grading Schema... 5 Assigning a Grading Schema to a Grade

More information

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN Course Code : CS0304 Course Title : Data Base Management Systems Semester : VI Course Time : Dec 2012-

More information

Bsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT

Bsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT Bsc (Hons) Software Engineering Cohort: BSE/16B/FT Examinations for 2017-2018 / Semester 1 Resit Examinations for BSE/15A/FT & BSE/16A/FT MODULE: DATABASE APPLICATION DEVELOPMENT MODULE CODE: DBT2113C

More information

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes.

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes. Chapter 6: Entity-Relationship Model Our Story So Far: Relational Tables Databases are structured collections of organized data The Relational model is the most common data organization model The Relational

More information

ADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g.

ADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g. 4541.564; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room 301-203) ADVANCED DATABASES Copyright by S.-g. Lee Review - 1 General Info. Text Book Database System Concepts, 6 th Ed., Silberschatz,

More information

Assignment Grading Rubric

Assignment Grading Rubric Final Project Outcomes addressed in this activity: Overview and Directions: 1. Create a new Empty Database called Final 2. CREATE TABLES The create table statements should work without errors, have the

More information

LIS 2680: Database Design and Applications

LIS 2680: Database Design and Applications School of Information Sciences - University of Pittsburgh LIS 2680: Database Design and Applications Summer 2012 Instructor: Zhen Yue School of Information Sciences, University of Pittsburgh E-mail: zhy18@pitt.edu

More information

Create a simple database with MySQL

Create a simple database with MySQL Create a simple database with MySQL 1.Connect the MySQL server through MySQL Workbench You can achieve many database operations by typing the SQL langue into the Query panel, such as creating a database,

More information

Wentworth Institute of Technology COMP2670 Databases Spring 2016 Derbinsky. Normalization. Lecture 9

Wentworth Institute of Technology COMP2670 Databases Spring 2016 Derbinsky. Normalization. Lecture 9 Lecture 9 1 Outline 1. Context 2. Objectives 3. Functional Dependencies 4. Normal Forms 1NF 2NF 3NF 2 Database Design and Implementation Process 3 Theory and process by which to evaluate and improve relational

More information

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer Science)

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer Science) ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD (Department of Computer Science) WARNING 1. PLAGIARISM OR HIRING OF GHOST WRITER(S) FOR SOLVING THE ASSIGNMENT(S) WILL DEBAR THE STUDENT FROM AWARD OF DEGREE/CERTIFICATE,

More information