Visual C++ MFC MFC 응용프로그램이름 : CreateDB. 응용프로그램종류 : 대화상자기반 SDL(Security Development Lifecycle) 검사리소스언어 : 영어 ( 미국 )

Size: px
Start display at page:

Download "Visual C++ MFC MFC 응용프로그램이름 : CreateDB. 응용프로그램종류 : 대화상자기반 SDL(Security Development Lifecycle) 검사리소스언어 : 영어 ( 미국 )"

Transcription

1 daodb.create(strdbname) ;; 새로운 DB 생성 daodb.open(strdbname) ;; 기존의 DB 연결 daodb.execute(strsql) ;; 결과가없는연산자 (Ins/Del/Upd) daodb.close() ;; DB 연결끊음 CDaoRecordset daoqryset(&daodb) ;; DB에질의결과를저장 daoqryset.open(ntype, strsql) ;; 결과가있는연산자 ( 검색 ) daoqryset.movefirst,...prev,...next,...last ;; tuple 선택 daoqryset.getfieldvalue(nndx, varvalue) ;; 선택된 tuple의값 daoqryset.close() ;; 질의마감 Visual C++ MFC MFC 응용프로그램이름 : CreateDB 응용프로그램종류 : 대화상자기반 SDL(Security Development Lifecycle) 검사리소스언어 : 영어 ( 미국 ) About Box 대화상자제목 : Create Company Database Dialog-based Application Dialog는다음과같은 3 개의 Control로구성된다. Resource View CreateDB CreateDB.rc Dialog IDD_CREATEDB_DIALOG Comtrol ID 레이블 Hotkey Callback 함수 ⑴ Button, IDC_BTN_CREATE, &Create Database, OnBtnCreateDB ⑵ Button, IDOK, &Quit

2 ⑶ Edit, IDC_EDT_MSG, MultiLine, ReadOnly, m_strmsg V(H) Scroll, Auto V(H)Scroll Check Mnemonic ;; 단축키의중복체크 Tab Order ;; Control( 버튼 ) 들의순서를지정 Tap Stop ;; Tab으로 Control들사이를이동 Group ;; Control들의그룹 [CreateDB.rc] IDD_CREATEDB_DIALOG DIALOGEX 0, 0, 147, 178 STYLE DS_SETFONT DS_FIXEDSYS WS_POPUP WS_VISIBLE WS_CAPTION WS_SYSMENU WS_THICKFRAME EXSTYLE WS_EX_APPWINDOW CAPTION "Create Company Database" FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN PUSHBUTTON "&Create Database",IDC_BTN_CREATE,7,7,67,23,WS_GROUP DEFPUSHBUTTON "&Quit",IDOK,74,7,67,23 EDITTEXT IDC_EDT_MSG,7,36,133,135,ES_MULTILINE ES_AUTOVSCROLL ES_AUTOHSCROLL ES_READONLY WS_VSCROLL WS_HSCROLL WS_GROUP NOT WS_TABSTOP END [Resource.h] #define IDD_CREATEDB_DIALOG 102 #define IDR_MAINFRAME 128 #define IDC_BTN_CREATE 1000 #define IDC_EDT_MSG 1001 Resource View CreateDB CreateDB.rc Dialog IDD_CREATEDB_DIALOG IDD_CREATEDB_DIALOG Class Wizard... Callback 함수 OnBtnCreateDB 멤버변수 m_strmsg DECLARE_MESSAGE_MAP() public: afx_msg void OnBtnCreateDB(); CString m_strmsg; ; BEGIN_MESSAGE_MAP(CCreateDBDlg, CDialogEx) ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_BTN_CREATE, &CCreateDBDlg::OnBtnCreateDB) END_MESSAGE_MAP() // TODO: 여기에컨트롤알림처리기코드를추가합니다. 1 단계저장압축파일 (1. Project.zip) #include <afxdao.h> #pragma once #pragma warning(disable: 4995)

3 // CCreateDBDlg dialog class CCreateDBDlg : public CDialogEx // Construction public: CCreateDBDlg(CWnd* pparent = NULL); // standard constructor // Dialog Data // Dialog Data #ifdef AFX_DESIGN_TIME enum IDD = IDD_CREATEDB_DIALOG ; #endif CDaoDatabase *m_pdb; CString m_strerrmsg; void CheckDatabase(CString strdb); void CreateDatabase(CString strdb); void ErrorMessage(CDaoException *e); CString ReadWholeFile(CString filename); protected: virtual void DoDataExchange(CDataExchange* pdx); // DDX/DDV support // Implementation protected: HICON m_hicon; CCreateDBDlg::CCreateDBDlg(CWnd* pparent /*=NULL*/) : CDialogEx(CCreateDBDlg::IDD, pparent), m_strmsg(_t("")) static CDaoDatabase adb; m_pdb = &adb; m_hicon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); CString strdb = _T("Company.accdb"); CheckDatabase(strDB); m_strmsg = " 새로운데이터베이스를생성합니다.\15\12"; try CreateDatabase(strDB); // CreateSchema(); // LoadDatabase(); // AlterSchema(); m_pdb->close(); catch (CDaoException* e) void CCreateDBDlg::CheckDatabase(CString strdb) WIN32_FIND_DATA afiledata; HANDLE hfile = FindFirstFile(strDB, &afiledata); if (hfile!= INVALID_HANDLE_VALUE) FindClose(hFile); if (AfxMessageBox(_T(" 이미존재합니다 \15\12 새로만들까요?"), MB_YESNO MB_ICONQUESTION) == IDNO) return; if (DeleteFile(strDB) == 0) AfxMessageBox(_T(" 기존의데이타베이스를삭제할수없습니다."), MB_OK MB_ICONINFORMATION); void CCreateDBDlg::CreateDatabase(CString strdb) m_strerrmsg = " 데이터베이스를생성할수없습니다 "; m_pdb->create(strdb); // Create Access 파일

4 m_strmsg += " 데이터베이스생성 --- OK\15\12"; UpdateData(false); void CCreateDBDlg::ErrorMessage(CDaoException *e) CString strerrmsg = m_strerrmsg + _T(".\15\12") + e->m_perrorinfo->m_strdescription; AfxMessageBox(strErrMsg, MB_OK MB_ICONINFORMATION); CString CCreateDBDlg::ReadWholeFile(CString filename) CString strtext; CStdioFile afile; if (afile.open(filename, CFile::modeRead CFile::typeText)) int nctr = (int)afile.getlength(); char *strbuffer = new char[nctr]; nctr = afile.read(strbuffer, nctr); afile.close(); strbuffer[nctr] = NULL; strtext = CString(strBuffer); strtext.trimright(); strtext += '\n'; delete strbuffer; return strtext; 2 단계저장압축파일 (2. CreateDB.zip) // Implementation void CheckDatabase(CString strdb); void CreateDatabase(CString strdb); void ExecuteSQL(CString strsql); void CreateSchema(void); void ErrorMessage(CDaoException *e); CString ReadWholeFile(CString filename); void CCreateDBDlg::ExecuteSQL(CString strsql) try m_pdb->execute(strsql); catch (CDaoException* e) void CCreateDBDlg::CreateSchema() char *strddl[] = "CREATE TABLE Department (" " DName CHAR(25) NOT NULL," " DNumber INTEGER NOT NULL," " MgrSSN CHAR(9) NOT NULL," " MgrStartDate CHAR(10)," " CONSTRAINT DeptPK PRIMARY KEY (DNumber)," " CONSTRAINT DeptUK UNIQUE (DName)" // ", CONSTRAINT DeptMgrssnFK FOREIGN KEY (MgrSSN) REFERENCES Employee(SSN)" "CREATE TABLE Employee (" " FName CHAR(15) NOT NULL," " MInit CHAR," " LName CHAR(15) NOT NULL,"

5 " SSN CHAR(9) NOT NULL," " BDate CHAR(10)," " Address CHAR(50)," " Sex CHAR," " Salary INTEGER," " SuperSSN CHAR(9)," " DNo INTEGER NOT NULL," " CONSTRAINT EmpPK PRIMARY KEY (SSN)," " CONSTRAINT EmpDnoFK FOREIGN KEY (DNo) REFERENCES Department(DNumber)" // ", CONSTRAINT EmpSuperssnFK FOREIGN KEY (SuperSSN) REFERENCES Employee(SSN)" "CREATE TABLE DeptLocations (" " DNumber INTEGER NOT NULL," " DLocation CHAR(15) NOT NULL," " CONSTRAINT DeptlocPK PRIMARY KEY (DNumber, DLocation)," " CONSTRAINT DeptlocDnmbrFK FOREIGN KEY (DNumber) REFERENCES Department(DNumber)" "CREATE TABLE Project (" " PName CHAR(25) NOT NULL," " PNumber INTEGER NOT NULL," " PLocation CHAR(15)," " DNum INTEGER NOT NULL," " CONSTRAINT PrjPK PRIMARY KEY (PNumber)," " CONSTRAINT PrjUK UNIQUE (PName)," " CONSTRAINT PrjDnumFK FOREIGN KEY (DNum) REFERENCES Department(DNumber)" "CREATE TABLE WorksOn (" " ESSN CHAR(9) NOT NULL," " PNo INTEGER NOT NULL," " Hours INTEGER NOT NULL," " CONSTRAINT WrkPK PRIMARY KEY (ESSN, PNo)," " CONSTRAINT WrkEssnFK FOREIGN KEY (ESSN) REFERENCES Employee(SSN)," " CONSTRAINT WrkPnoFK FOREIGN KEY (PNo) REFERENCES Project(PNumber)" ; "CREATE TABLE Dependent (" " ESSN CHAR(9) NOT NULL," " DependentName CHAR(15) NOT NULL," " Sex CHAR," " BDate CHAR(10)," " Relationship CHAR(8)," " CONSTRAINT DpndtPK PRIMARY KEY (ESSN, DependentName)," " CONSTRAINT DpndtEssnFK FOREIGN KEY (ESSN) REFERENCES Employee(SSN)" ");" // create tables m_strerrmsg = " 스키마를생성할수없습니다 "; for (int i = 0; i < sizeof(strddl) / sizeof(strddl[0]); i++) ExecuteSQL(CString(strDDL[i])); m_strmsg += " 스키마생성 --- OK\15\12"; UpdateData(false); // TODO: Add your control notification handler code here CString strdb = "Company.accdb"; CheckDatabase(strDB); m_strmsg = " 새로운데이터베이스를생성합니다.\15\12"; try CreateDatabase(strDB); CreateSchema(); // LoadDatabase(); // AlterSchema(); m_pdb->close(); catch (CDaoException* e)

6 3 단계저장압축파일 (3. CreateSchema.zip) // Implementation void CheckDatabase(CString strdb); void CreateDatabase(CString strdb); void ExecuteSQL(CString strsql); void CreateSchema(void); void LoadDatabase(void); void LoadTuples(CString strtable); void ErrorMessage(CDaoException *e); CString ReadWholeFile(CString filename); void CCreateDBDlg::LoadDatabase() char *strtables[] = "Department", "Employee", "DeptLocations", "Project", "WorksOn", "Dependent" ; m_strmsg += "\15\12 데이터베이스를로드합니다.\15\12"; for (int i = 0; i < sizeof(strtables) / sizeof(strtables[0]); i++) LoadTuples(CString(strTables[i])); void CCreateDBDlg::LoadTuples(CString strtable) CString strfile = _T("data") + strtable + _T(".txt"); CString strdata = ReadWholeFile(strFile); int nndx; m_strerrmsg = strtable + _T(" 튜플을삽입할수없습니다 "); while ((nndx = strdata.find('\n') + 1) > 0) CString strtuple = strdata.left(nndx); strdata = strdata.mid(nndx); strtuple.trimright(); CString strsql; strsql.format(_t("insert INTO %s VALUES (%s)"), strtable, strtuple); ExecuteSQL(strSQL); m_strmsg += strtable + _T(" 로딩 --- OK\15\12"); UpdateData(false); // TODO: Add your control notification handler code here CString strdb = "Company.accdb"; CheckDatabase(strDB); m_strmsg = " 새로운데이터베이스를생성합니다.\15\12"; try CreateDatabase(strDB); CreateSchema(); LoadDatabase(); // AlterSchema(); m_pdb->close(); catch (CDaoException* e) datatablename.txt 파일을복사한다. 4 단계저장압축파일 (4. LoadData.zip)

7 // Implementation void CheckDatabase(CString strdb); void CreateDatabase(CString strdb); void ExecuteSQL(CString strsql); void CreateSchema(void); void LoadDatabase(void); void LoadTuples(CString strtable); void AlterSchema(void); void ErrorMessage(CDaoException *e); CString ReadWholeFile(CString filename); void CCreateDBDlg::AlterSchema() char *stralterddl[] = "ALTER TABLE Employee " " ADD CONSTRAINT EmpSuperssnFK FOREIGN KEY (SuperSSN) REFERENCES Employee(SSN);", ; "ALTER TABLE Department " " ADD CONSTRAINT DeptMgrssnFK FOREIGN KEY (MgrSSN) REFERENCES Employee(SSN);" m_strmsg += "\15\12 스키마를변경합니다.\15\12"; m_strerrmsg = "Schema 를변경할수없습니다 "; for (int i = 0; i < sizeof(stralterddl) / sizeof(stralterddl[0]); i++) ExecuteSQL(CString(strAlterDDL[i])); m_strmsg += " 스키마변경 --- OK\15\12"; UpdateData(false); // TODO: Add your control notification handler code here CString strdb = "Company.accdb"; CheckDatabase(strDB); m_strmsg = " 새로운데이터베이스를생성합니다.\15\12"; try CreateDatabase(strDB); CreateSchema(); LoadDatabase(); AlterSchema(); m_pdb->close(); catch (CDaoException* e) 5 단계저장압축파일 (5. AlterSchema.zip)

8 CDaoRecordset Window Control CDialog class CDaoRecordset database Windows Dialog의 Control( 주로 Edit) adlg.updatedata(true) adlg.updatedata(false) CDialog-derived class(cdeptdlg) 멤버변수 (adlg.m_strdname) daoset.addnew(), daoset.delete() avar = daoset.getfieldvalue(ndx) daoset.edit() m_strval = V_BSTR(&aVar) daoset.setfieldvalue(ndx, strval) // V_I1, V_I2, V_I4, V_R4, V_R8,... CDaoRecordset-derived class(cdeptset) 멤버변수 (daoset.m_dname) DoFieldExchange(CDaoFieldExchange *pfx) daoset.update() daoset.open(ntype, strsql) Database (Disk의파일 ) 생성 : daodb.create( 파일명 ) 연결 : daodb.open(strdsn) daodb.open( 파일명 ) 변경 : daodb.execute(strsql) 검색 : daoset.open(ntype, strsql) 끊기 : daodb.close() // Insert/Delete/Update // MoveFirst, Last, Prev, Next

COSC344 Database Theory and Applications. σ a= c (P) S. Lecture 4 Relational algebra. π A, P X Q. COSC344 Lecture 4 1

COSC344 Database Theory and Applications. σ a= c (P) S. Lecture 4 Relational algebra. π A, P X Q. COSC344 Lecture 4 1 COSC344 Database Theory and Applications σ a= c (P) S π A, C (H) P P X Q Lecture 4 Relational algebra COSC344 Lecture 4 1 Overview Last Lecture Relational Model This Lecture ER to Relational mapping Relational

More information

SQL STRUCTURED QUERY LANGUAGE

SQL STRUCTURED QUERY LANGUAGE STRUCTURED QUERY LANGUAGE SQL Structured Query Language 4.1 Introduction Originally, SQL was called SEQUEL (for Structured English QUery Language) and implemented at IBM Research as the interface for an

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

Database design process

Database design process Database technology Lecture 2: Relational databases and SQL Jose M. Peña jose.m.pena@liu.se Database design process 1 Relational model concepts... Attributes... EMPLOYEE FNAME M LNAME SSN BDATE ADDRESS

More information

SQL Introduction. CS 377: Database Systems

SQL Introduction. CS 377: Database Systems SQL Introduction CS 377: Database Systems Recap: Last Two Weeks Requirement analysis Conceptual design Logical design Physical dependence Requirement specification Conceptual data model (ER Model) Representation

More information

Introduction to SQL. ECE 650 Systems Programming & Engineering Duke University, Spring 2018

Introduction to SQL. ECE 650 Systems Programming & Engineering Duke University, Spring 2018 Introduction to SQL ECE 650 Systems Programming & Engineering Duke University, Spring 2018 SQL Structured Query Language Major reason for commercial success of relational DBs Became a standard for relational

More information

L130 - DATABASE MANAGEMENT SYSTEMS LAB CYCLE-1 1) Create a table STUDENT with appropriate data types and perform the following queries.

L130 - DATABASE MANAGEMENT SYSTEMS LAB CYCLE-1 1) Create a table STUDENT with appropriate data types and perform the following queries. L130 - DATABASE MANAGEMENT SYSTEMS LAB CYCLE-1 1) Create a table STUDENT with appropriate data types and perform the following queries. Roll number, student name, date of birth, branch and year of study.

More information

Data Definition Language (DDL)

Data Definition Language (DDL) Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 6 Data Definition Language (DDL) Eng. Mohammed Alokshiya November 11, 2014 Database Keys A key

More information

ECE 650 Systems Programming & Engineering. Spring 2018

ECE 650 Systems Programming & Engineering. Spring 2018 ECE 650 Systems Programming & Engineering Spring 2018 Introduction to SQL Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) Structured Query Language SQL Major reason for commercial

More information

DATABASE CONCEPTS. Dr. Awad Khalil Computer Science & Engineering Department AUC

DATABASE CONCEPTS. Dr. Awad Khalil Computer Science & Engineering Department AUC DATABASE CONCEPTS Dr. Awad Khalil Computer Science & Engineering Department AUC s are considered as major components in almost all recent computer application systems, including business, management, engineering,

More information

Advanced Databases (SE487) Prince Sultan University College of Computer and Information Sciences

Advanced Databases (SE487) Prince Sultan University College of Computer and Information Sciences Advanced Databases (SE487) Prince Sultan University College of Computer and Information Sciences ER to Relational Mapping Anis Koubaa Chapter 9 Outline } Relational Database Design Using ER-to-Relational

More information

Part 1 on Table Function

Part 1 on Table Function CIS611 Lab Assignment 1 SS Chung 1. Write Table Functions 2. Automatic Creation and Maintenance of Database from Web Interface 3. Transforming a SQL Query into an Execution Plan in Relational Algebra for

More information

A taxonomy of SQL queries Learning Plan

A taxonomy of SQL queries Learning Plan A taxonomy of SQL queries Learning Plan a. Simple queries: selection, projection, sorting on a simple table i. Small-large number of attributes ii. Distinct output values iii. Renaming attributes iv. Computed

More information

COSC Assignment 2

COSC Assignment 2 COSC 344 Overview In this assignment, you will turn your miniworld into a set of Oracle tables, normalize your design, and populate your database. Due date for assignment 2 Friday, 25 August 2017 at 4

More information

Overview Relational data model

Overview Relational data model Thanks to José and Vaida for most of the slides. Relational databases and MySQL Juha Takkinen juhta@ida.liu.se Outline 1. Introduction: Relational data model and SQL 2. Creating tables in Mysql 3. Simple

More information

Some different database system architectures. (a) Shared nothing architecture.

Some different database system architectures. (a) Shared nothing architecture. Figure.1 Some different database system architectures. (a) Shared nothing architecture. Computer System 1 Computer System CPU DB CPU DB MEMORY MEMORY Switch Computer System n CPU DB MEMORY Figure.1 continued.

More information

ECE 650 Systems Programming & Engineering. Spring 2018

ECE 650 Systems Programming & Engineering. Spring 2018 ECE 650 Systems Programming & Engineering Spring 2018 Relational Databases: Tuples, Tables, Schemas, Relational Algebra Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) Overview

More information

COSC344 Database Theory and Applications. Lecture 5 SQL - Data Definition Language. COSC344 Lecture 5 1

COSC344 Database Theory and Applications. Lecture 5 SQL - Data Definition Language. COSC344 Lecture 5 1 COSC344 Database Theory and Applications Lecture 5 SQL - Data Definition Language COSC344 Lecture 5 1 Overview Last Lecture Relational algebra This Lecture Relational algebra (continued) SQL - DDL CREATE

More information

Session Active Databases (2+3 of 3)

Session Active Databases (2+3 of 3) INFO-H-415 - Advanced Databes Session 2+3 - Active Databes (2+3 of 3) Consider the following databe schema: DeptLocation DNumber DLocation Employee FName MInit LName SSN BDate Address Sex Salary SuperSSN

More information

CIS611 Lab Assignment 1 SS Chung

CIS611 Lab Assignment 1 SS Chung CIS611 Lab Assignment 1 SS Chung 1. Creating a Relational Database Schema from ER Diagram, Populating the Database and Querying Over the database with SQL 2. Automatic Creation and Maintenance of Database

More information

COSC344 Database Theory and Applications. Lecture 6 SQL Data Manipulation Language (1)

COSC344 Database Theory and Applications. Lecture 6 SQL Data Manipulation Language (1) COSC344 Database Theory and Applications Lecture 6 SQL Data Manipulation Language (1) COSC344 Lecture 56 1 Overview Last Lecture SQL - DDL This Lecture SQL - DML INSERT DELETE (simple) UPDATE (simple)

More information

Information Systems Development 37C Lecture: Final notes. 30 th March 2017 Dr. Riitta Hekkala

Information Systems Development 37C Lecture: Final notes. 30 th March 2017 Dr. Riitta Hekkala Information Systems Development 37C00200 Lecture: Final notes 30 th March 2017 Dr. Riitta Hekkala The course should have given you Introduction to the information system development process Understanding

More information

Database Technology. Topic 3: SQL. Olaf Hartig.

Database Technology. Topic 3: SQL. Olaf Hartig. Olaf Hartig olaf.hartig@liu.se Structured Query Language Declarative language (what data to get, not how) Considered one of the major reasons for the commercial success of relational databases Statements

More information

RELATIONAL DATA MODEL

RELATIONAL DATA MODEL RELATIONAL DATA MODEL 3.1 Introduction The relational model of data was introduced by Codd (1970). It is based on a simple and uniform data structure - the relation - and has a solid theoretical and mathematical

More information

CS5300 Database Systems

CS5300 Database Systems CS5300 Database Systems Views A.R. Hurson 323 CS Building hurson@mst.edu Note, this unit will be covered in two lectures. In case you finish it earlier, then you have the following options: 1) Take the

More information

Advanced Databases. Winter Term 2012/13. Prof. Dr. Dietmar Seipel University of Würzburg. Advanced Databases Winter Term 2012/13

Advanced Databases. Winter Term 2012/13. Prof. Dr. Dietmar Seipel University of Würzburg. Advanced Databases Winter Term 2012/13 Advanced Databases Winter Term 2012/13 Prof. Dr. Dietmar Seipel University of Würzburg Prof. Dr. Dietmar Seipel Minit FName LName Sex Adress Salary N WORKS_FOR 1 Name Number Locations Name SSN EMPLOYEE

More information

Announcement5 SQL5. Create%and%drop%table5. Basic%SFW%query5. Reading%a%table5. TDDD37%% Database%technology% SQL5

Announcement5 SQL5. Create%and%drop%table5. Basic%SFW%query5. Reading%a%table5. TDDD37%% Database%technology% SQL5 Announcement %% Database%technology% SQL Fang%Wei9Kleiner fang.wei9kleiner@liu.se hbp://www.ida.liu.se/~ Course%registration:%system%problems%from%registration% office.%be%patient. Registration%for%the%lab:%possible%without%being%

More information

UNIVERSITY OF TORONTO MIDTERM TEST SUMMER 2017 CSC343H Introduction to Databases Instructor Tamanna Chhabra Duration 120 min No aids allowed

UNIVERSITY OF TORONTO MIDTERM TEST SUMMER 2017 CSC343H Introduction to Databases Instructor Tamanna Chhabra Duration 120 min No aids allowed UNIVERSITY OF TORONTO MIDTERM TEST SUMMER 2017 CSC343H Introduction to Databases Instructor Tamanna Chhabra Duration 120 min No aids allowed This test is worth 15% of your final mark. Please answer all

More information

Database Technology. Topic 2: Relational Databases and SQL. Olaf Hartig.

Database Technology. Topic 2: Relational Databases and SQL. Olaf Hartig. Topic 2: Relational Databases and SQL Olaf Hartig olaf.hartig@liu.se Relational Data Model Recall: DB Design Process 3 Relational Model Concepts Relational database: represent data as a collection of relations

More information

CSC 742 Database Management Systems

CSC 742 Database Management Systems CSC 742 Database Management Systems Topic #16: Query Optimization Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Agenda Typical steps of query processing Two main techniques for query optimization Heuristics

More information

Relational Model. CS 377: Database Systems

Relational Model. CS 377: Database Systems Relational Model CS 377: Database Systems ER Model: Recap Recap: Conceptual Models A high-level description of the database Sufficiently precise that technical people can understand it But, not so precise

More information

DBMS LAB SESSION PAVANKUMAR MP

DBMS LAB SESSION PAVANKUMAR MP DBMS LAB SESSION Pavan Kumar M.P B.E,M.Sc(Tech) by Research,(Ph.D) Assistant Professor Dept of ISE J.N.N.College Of Engineering Shimoga http://pavankumarjnnce.blogspot.in Consider the schema for Company

More information

SQL: A COMMERCIAL DATABASE LANGUAGE. Complex Constraints

SQL: A COMMERCIAL DATABASE LANGUAGE. Complex Constraints SQL: A COMMERCIAL DATABASE LANGUAGE Complex Constraints Outline 1. Introduction 2. Data Definition, Basic Constraints, and Schema Changes 3. Basic Queries 4. More complex Queries 5. Aggregate Functions

More information

The Relational Data Model and Relational Database Constraints

The Relational Data Model and Relational Database Constraints The Relational Data Model and Relational Database Constraints First introduced by Ted Codd from IBM Research in 1970, seminal paper, which introduced the Relational Model of Data representation. It is

More information

MIT Database Management Systems Lesson 03: ER-to-Relational Mapping

MIT Database Management Systems Lesson 03: ER-to-Relational Mapping MIT 22033 Database Management Systems Lesson 03: ER-to-Relational Mapping By S. Sabraz Nawaz Senior Lecturer in MIT Department of Management and IT, SEUSL Chapter Outline ER-to-Relational Mapping Algorithm

More information

DEPARTMENT DNAME DNUMBER MGRNAME MGRSTARTDATE

DEPARTMENT DNAME DNUMBER MGRNAME MGRSTARTDATE Figure D.1 A hierarchical schema. DEPARTMENT DNAME DNUMBER MGRNAME MGRSTARTDATE NAME SSN BDATE ADDRESS PNAME PNUMBER PLOCATION Figure D.2 Occurrences of Parent-Child Relationships. (a) Two occurrences

More information

Relational Algebra 1

Relational Algebra 1 Relational Algebra 1 Motivation The relational data model provides a means of defining the database structure and constraints NAME SALARY ADDRESS DEPT Smith 50k St. Lucia Printing Dilbert 40k Taringa Printing

More information

www.openwire.org www.mitov.com Copyright Boian Mitov 2004-2011 Index Installation...3 Where is PlotLab?...3 Creating a new PlotLab project in Visual C++...3 Creating a simple Scope application...13 Creating

More information

Relational Calculus: 1

Relational Calculus: 1 CSC 742 Database Management Systems Topic #8: Relational Calculus Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Relational Calculus: 1 Can define the information to be retrieved not any specific series

More information

SQL-99: Schema Definition, Basic Constraints, and Queries. Create, drop, alter Features Added in SQL2 and SQL-99

SQL-99: Schema Definition, Basic Constraints, and Queries. Create, drop, alter Features Added in SQL2 and SQL-99 SQL-99: Schema Definition, Basic Constraints, and Queries Content Data Definition Language Create, drop, alter Features Added in SQL2 and SQL-99 Basic Structure and retrieval queries in SQL Set Operations

More information

Chapter 8: Relational Algebra

Chapter 8: Relational Algebra Chapter 8: elational Algebra Outline: Introduction Unary elational Operations. Select Operator (σ) Project Operator (π) ename Operator (ρ) Assignment Operator ( ) Binary elational Operations. Set Operators

More information

Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries

Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries Copyright 2004 Pearson Education, Inc. Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries Copyright 2004 Pearson Education, Inc. 1 Data Definition, Constraints, and Schema Changes Used

More information

Querying a Relational Database COMPANY database For Lab4, you use the Company database that you built in Lab2 and used for Lab3

Querying a Relational Database COMPANY database For Lab4, you use the Company database that you built in Lab2 and used for Lab3 CIS30/530 Lab Assignment SS Chung Querying a Relational Database COMPANY database For Lab, you use the Company database that you built in Lab2 and used for Lab3 1. Update the following new changes into

More information

This chapter discusses how to design a relational

This chapter discusses how to design a relational 9 chapter Relational Database Design by ER- and EER-to-Relational Mapping This chapter discusses how to design a relational database schema based on a conceptual schema design. Figure 7.1 presented a high-level

More information

Query 2: Pnumber Dnum Lname Address Bdate 10 4 Wallace 291 Berry, Bellaire, TX Wallace 291 Berry, Bellaire, TX

Query 2: Pnumber Dnum Lname Address Bdate 10 4 Wallace 291 Berry, Bellaire, TX Wallace 291 Berry, Bellaire, TX 5.11 No violation, integrity is retained. Dnum = 2 does not exist. This can be solved by adding a foreign key referencing the department table, so the operation does not execute. Dnum = 4 already exists,

More information

The Mixed Ontology Building Methodology Using Database Information

The Mixed Ontology Building Methodology Using Database Information The Mixed Ontology Building Methodology Using Database Information Minyoung Ra, Donghee Yoo, Sungchun No, Jinhee Shin, and Changhee Han Abstract Recently, there has been a growing need for research to

More information

Government of Karnataka Department of Technical Education Bengaluru

Government of Karnataka Department of Technical Education Bengaluru CIE- 25 Marks Prerequisites Government of Karnataka Department of Technical Education Bengaluru Course Title: DBMS and GUI lab Scheme (L:T:P) : 0:2:4 Total Contact Hours: 78 Type of Course: Tutorial and

More information

SQL: A COMMERCIAL DATABASE LANGUAGE. Data Change Statements,

SQL: A COMMERCIAL DATABASE LANGUAGE. Data Change Statements, SQL: A COMMERCIAL DATABASE LANGUAGE Data Change Statements, Outline 1. Introduction 2. Data Definition, Basic Constraints, and Schema Changes 3. Basic Queries 4. More complex Queries 5. Aggregate Functions

More information

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE Exams, Awards & Graduations NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE EXAM COVER SHEET EXAMINATION DETAILS Course Code/s: ISYS1055/1057 Course Name/s: Database Concepts Date of Exam: Sample

More information

Guides for Installing MS SQL Server and Creating Your First Database. Please see more guidelines on installing procedure on the class webpage

Guides for Installing MS SQL Server and Creating Your First Database. Please see more guidelines on installing procedure on the class webpage Guides for Installing MS SQL Server and Creating Your First Database Installing process Please see more guidelines on installing procedure on the class webpage 1. Make sure that you install a server with

More information

Chapter 6: RELATIONAL DATA MODEL AND RELATIONAL ALGEBRA

Chapter 6: RELATIONAL DATA MODEL AND RELATIONAL ALGEBRA Chapter 6: Relational Data Model and Relational Algebra 1 Chapter 6: RELATIONAL DATA MODEL AND RELATIONAL ALGEBRA RELATIONAL MODEL CONCEPTS The relational model represents the database as a collection

More information

SQL. Copyright 2013 Ramez Elmasri and Shamkant B. Navathe

SQL. Copyright 2013 Ramez Elmasri and Shamkant B. Navathe SQL Copyright 2013 Ramez Elmasri and Shamkant B. Navathe Data Definition, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descriptions of the tables (relations) of a database Copyright

More information

SQL- Updates, Asser0ons and Views

SQL- Updates, Asser0ons and Views SQL- Updates, Asser0ons and Views Data Defini0on, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descrip0ons of the tables (rela0ons) of a database CREATE TABLE In SQL2, can use the

More information

Integrity Coded Relational Databases (ICRDB) - Protecting Data Integrity in Clouds

Integrity Coded Relational Databases (ICRDB) - Protecting Data Integrity in Clouds Integrity Coded Relational Databases (ICRDB) - Protecting Data Integrity in Clouds Jyh-haw Yeh Dept. of Computer Science, Boise State University, Boise, Idaho 83725, USA Abstract 1 Introduction Database-as-a-service

More information

Slides by: Ms. Shree Jaswal

Slides by: Ms. Shree Jaswal Slides by: Ms. Shree Jaswal Overview of SQL, Data Definition Commands, Set operations, aggregate function, null values, Data Manipulation commands, Data Control commands, Views in SQL, Complex Retrieval

More information

Practical Project Report

Practical Project Report Practical Project Report May 11, 2017 I. People: II. Roles: Effort in both coding PL/SQL and writing III. Introduction: The topic of my project is DB queries using Oracle PL/SQL. This is my first time

More information

Basic SQL II. Dr Fawaz Alarfaj. ACKNOWLEDGEMENT Slides are adopted from: Elmasri & Navathe, Fundamentals of Database Systems MySQL Documentation

Basic SQL II. Dr Fawaz Alarfaj. ACKNOWLEDGEMENT Slides are adopted from: Elmasri & Navathe, Fundamentals of Database Systems MySQL Documentation Basic SQL II Dr Fawaz Alarfaj Al Imam Mohammed Ibn Saud Islamic University ACKNOWLEDGEMENT Slides are adopted from: Elmasri & Navathe, Fundamentals of Database Systems MySQL Documentation Lab 1 Review

More information

Ref1 for STUDENT RECORD DB: Ref2 for COMPANY DB:

Ref1 for STUDENT RECORD DB: Ref2 for COMPANY DB: Lect#5: SQL Ref1 for STUDENT RECORD DB: Database Design and Implementation Edward Sciore, Boston College ISBN: 978-0-471-75716-0 Ref2 for COMPANY DB: Fund. of Database Systems, Elmasri, Navathe, 5th ed.,

More information

Course Notes on From Entity-Relationship Schemas to Relational Schemas

Course Notes on From Entity-Relationship Schemas to Relational Schemas Course Notes on From Entity-Relationship Schemas to Relational Schemas The chapter deals with practical database design: the construction of a relational schema from an E-R schema this stage of database

More information

Chapter 8. Joined Relations. Joined Relations. SQL-99: Schema Definition, Basic Constraints, and Queries

Chapter 8. Joined Relations. Joined Relations. SQL-99: Schema Definition, Basic Constraints, and Queries Copyright 2004 Pearson Education, Inc. Chapter 8 SQL-99: Schema Definition, Basic Constraints, and Queries Joined Relations Can specify a "joined relation" in the FROM-clause Looks like any other relation

More information

Chapter 7 Relational Database Design by ER- and EERR-to-Relational Mapping

Chapter 7 Relational Database Design by ER- and EERR-to-Relational Mapping Chapter 7 Relational Database Design by ER- and EERR-to-Relational Mapping Copyright 2004 Pearson Education, Inc. Chapter Outline ER-to-Relational Mapping Algorithm Step 1: Mapping of Regular Entity Types

More information

Outline. Note 1. CSIE30600 Database Systems ER/EER to Relational Mapping 2

Outline. Note 1. CSIE30600 Database Systems ER/EER to Relational Mapping 2 Outline ER-to-Relational Mapping Algorithm Step 1: Mapping of Regular Entity Types Step 2: Mapping of Weak Entity Types Step 3: Mapping of Binary 1:1 Relation Types Step 4: Mapping of Binary 1:N Relationship

More information

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe CHAPTER 7 More SQL: Complex Queries, Triggers, Views, and Schema Modification Slide 7-2 Chapter 7 Outline More Complex SQL Retrieval Queries Specifying Semantic Constraints as Assertions and Actions as

More information

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement Chapter 4 Basic SQL Basic SQL SQL language Considered one of the major reasons for the commercial success of relational databases SQL Structured Query Language Statements for data definitions, queries,

More information

Course Notes on Relational Algebra

Course Notes on Relational Algebra Course Notes on Relational Algebra What is the Relational Algebra? Relational Algebra: Summary Operators Selection Projection Union, Intersection, Difference Cartesian Product Join Division Equivalences

More information

How to Write a GUI for StateWORKS Applications

How to Write a GUI for StateWORKS Applications F. Wagner February 2004 How to Write a GUI for StateWORKS Applications Graphical User Interface for StateWORKS Run-time Systems Most applications need some sort of graphical user interface (GUI). The GUI

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 25-1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 25-1 Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 25-1 Chapter 25 Distributed Databases and Client-Server Architectures Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 25 Outline

More information

Chapter 3. Algorithms for Query Processing and Optimization

Chapter 3. Algorithms for Query Processing and Optimization Chapter 3 Algorithms for Query Processing and Optimization Chapter Outline 1. Introduction to Query Processing 2. Translating SQL Queries into Relational Algebra 3. Algorithms for External Sorting 4. Algorithms

More information

C Windows 16. Visual C++ VC Borland C++ Compiler BCC 2. Windows. c:\develop

C Windows 16. Visual C++ VC Borland C++ Compiler BCC 2. Windows. c:\develop Windows Ver1.01 1 VC BCC DOS C C Windows 16 Windows98/Me/2000/XP MFC SDL Easy Link Library Visual C++ VC Borland C++ Compiler BCC 2 2 VC MFC VC VC BCC Windows DOS MS-DOS VC BCC VC BCC VC 2 BCC5.5.1 c:\develop

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms 9.2 Relation Primary key Foreign key Referential integrity

More information

The Skin Pattern By Rani Pinchuk and Yonat Sharon

The Skin Pattern By Rani Pinchuk and Yonat Sharon The Skin Pattern By Rani Pinchuk and Yonat Sharon Abstract The Skin Pattern is a technique to separate the presentation style of an application (its "skin") from its logic. Keeping the skins separate makes

More information

Outline. Textbook Chapter 6. Note 1. CSIE30600/CSIEB0290 Database Systems Basic SQL 2

Outline. Textbook Chapter 6. Note 1. CSIE30600/CSIEB0290 Database Systems Basic SQL 2 Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries in SQL INSERT, DELETE, and UPDATE Statements in SQL Additional Features of SQL Textbook Chapter 6 CSIE30600/CSIEB0290

More information

CSIE30600 Database Systems Basic SQL 2. Outline

CSIE30600 Database Systems Basic SQL 2. Outline Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries in SQL INSERT, DELETE, and UPDATE Statements in SQL Additional Features of SQL CSIE30600 Database Systems

More information

6.5 Integrity Contraints: SQL Statements:

6.5 Integrity Contraints: SQL Statements: 6.5 Integrity Contraints: Foreign Key PREREQUISITE.(CourseNumber) PREREQUISITE.(PrerequisiteNumber) SECTION.(CourseNumber) GRADE_REPORT.(StudentNumber) GRADE_REPORT.(SectionIdentifier) Referencing Relation

More information

Додаток А Текст програми CorrelationCode

Додаток А Текст програми CorrelationCode 74 Додаток А Текст програми CorrelationCode #include "stdafx.h" #include "C2.h" #include "C2Dlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = FILE ; #endif /////////////////////////////////////////////////////////////////////////////

More information

SQL (Structured Query Language) Truong Tuan Anh CSE-HCMUT

SQL (Structured Query Language) Truong Tuan Anh CSE-HCMUT SQL (Structured Query Language) Truong Tuan Anh CSE-HCMUT Contents 1 The COMPANY Database 2 SQL developments: an overview 3 DDL: Create, Alter, Drop 4 DML: select, insert, update, delete 5 Triggers The

More information

Relational Database Systems Part 01. Karine Reis Ferreira

Relational Database Systems Part 01. Karine Reis Ferreira Relational Database Systems Part 01 Karine Reis Ferreira karine@dpi.inpe.br Aula da disciplina Computação Aplicada I (CAP 241) 2016 Database System Database: is a collection of related data. represents

More information

SQL: Advanced Queries, Assertions, Triggers, and Views. Copyright 2012 Ramez Elmasri and Shamkant B. Navathe

SQL: Advanced Queries, Assertions, Triggers, and Views. Copyright 2012 Ramez Elmasri and Shamkant B. Navathe SQL: Advanced Queries, Assertions, Triggers, and Views Copyright 2012 Ramez Elmasri and Shamkant B. Navathe NULLS IN SQL QUERIES SQL allows queries that check if a value is NULL (missing or undefined or

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms 9.2 Relation Primary key Foreign key Referential integrity

More information

INtime iwin32 Porting Guide

INtime iwin32 Porting Guide T E C H N I C A L P A P E R INtime iwin32 Porting Guide June, 2005 TenAsys Corporation 1600 NW Compton Drive, Suite 104, Beaverton, OR 97006 USA +1 (503) 748-4720 fax +1 (503) 748-4730 www.tenasys.com

More information

PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II

PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore 560100 ) Solution Set - Test-II Sub: Database Management Systems 16MCA23 Date: 04/04/2017 Sem & Section:II Duration:

More information

Relational Model and Relational Algebra. Slides by: Ms. Shree Jaswal

Relational Model and Relational Algebra. Slides by: Ms. Shree Jaswal Relational Model and Relational Algebra Slides by: Ms. Shree Jaswal Topics: Introduction to Relational Model, Relational Model Constraints and Relational Database Schemas, Concept of Keys: Primary Kay,

More information

Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra

Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Relational Data Model and Relational Constraints Part 1 A simplified diagram to illustrate the main

More information

SQL (Structured Query Language) Truong Tuan Anh CSE-HCMUT

SQL (Structured Query Language) Truong Tuan Anh CSE-HCMUT SQL (Structured Query Language) Truong Tuan Anh CSE-HCMUT Contents 1 The COMPANY Database 2 SQL developments: an overview 3 DDL: Create, Alter, Drop 4 DML: select, insert, update, delete 5 Triggers The

More information

Translation ER/EER to relational

Translation ER/EER to relational Database technology Lecture 4: Mapping of EER model to relations Jose M. Peña jose.m.pena@liu.se Translation ER/EER to relational Migrate from mini world model to a model understandable by a DBMS. 1 EER

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

Mobile and Heterogeneous databases Distributed Database System Query Processing. A.R. Hurson Computer Science Missouri Science & Technology

Mobile and Heterogeneous databases Distributed Database System Query Processing. A.R. Hurson Computer Science Missouri Science & Technology Mobile and Heterogeneous databases Distributed Database System Query Processing A.R. Hurson Computer Science Missouri Science & Technology 1 Note, this unit will be covered in four lectures. In case you

More information

Chapter 18 Strategies for Query Processing. We focus this discussion w.r.t RDBMS, however, they are applicable to OODBS.

Chapter 18 Strategies for Query Processing. We focus this discussion w.r.t RDBMS, however, they are applicable to OODBS. Chapter 18 Strategies for Query Processing We focus this discussion w.r.t RDBMS, however, they are applicable to OODBS. 1 1. Translating SQL Queries into Relational Algebra and Other Operators - SQL is

More information

Homework #4 1. Suppose that each of the following Update operations is applied directly to the database state shown in Figure 5.6.

Homework #4 1. Suppose that each of the following Update operations is applied directly to the database state shown in Figure 5.6. Homework #4 1. Suppose that each of the following Update operations is applied directly to the database state shown in Figure 5.6. Discuss all integrity constraints violated by each operation, if any,

More information

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 2

Department of Computer Science University of Cyprus. EPL342 Databases. Lab 2 Department of Computer Science University of Cyprus EPL342 Databases Lab 2 ER Modeling (Entities) in DDS Lite & Conceptual Modeling in SQL Server 2008 Panayiotis Andreou http://www.cs.ucy.ac.cy/courses/epl342

More information

More SQL: Complex Queries, Triggers, Views, and Schema Modification

More SQL: Complex Queries, Triggers, Views, and Schema Modification Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Outline More Complex SQL Retrieval Queries

More information

Database Lab#9 Connecting to postgresql database from java programs

Database Lab#9 Connecting to postgresql database from java programs Database Lab#9 Connecting to postgresql database from java programs A client program written in java language can connect to a database server by using JDBC (java database connectivity) library. Classes

More information

Algorithms for Query Processing and Optimization. 0. Introduction to Query Processing (1)

Algorithms for Query Processing and Optimization. 0. Introduction to Query Processing (1) Chapter 19 Algorithms for Query Processing and Optimization 0. Introduction to Query Processing (1) Query optimization: The process of choosing a suitable execution strategy for processing a query. Two

More information

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Chapter 5 Outline More Complex SQL Retrieval

More information

How to use JS Automation I/O driver

How to use JS Automation I/O driver How to use JS Automation I/O driver 1 Introduction JS Automation I/O driver package provide the basic I/O system driver and Dll to link with programming language (such as Visual Basic Visual C++ C++ Builder

More information

Medusa: Testing Cardiac Devices

Medusa: Testing Cardiac Devices Medusa: Testing Cardiac Devices Sponsor: Boston Scientific Purdue University CS490M: Software Testing Final Project Report Team Medusa Jordan Fleming Team Leader Ryan Landrum Arjmand Samuel John Valko

More information

More SQL: Complex Queries, Triggers, Views, and Schema Modification

More SQL: Complex Queries, Triggers, Views, and Schema Modification Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Outline More Complex SQL Retrieval Queries

More information

Relational Algebra. Relational Algebra Overview. Relational Algebra Overview. Unary Relational Operations 8/19/2014. Relational Algebra Overview

Relational Algebra. Relational Algebra Overview. Relational Algebra Overview. Unary Relational Operations 8/19/2014. Relational Algebra Overview The Relational Algebra Relational Algebra Relational algebra is the basic set of operations for the relational model These operations enable a user to specify basic retrieval requests (or queries) Relational

More information

COSC344 Database Theory and Applications. COSC344 Lecture 15 1

COSC344 Database Theory and Applications. COSC344 Lecture 15 1 COSC344 Database Theory and Applications Lecture 15 Views & NULL COSC344 Lecture 15 1 Lecture Schedule Lecture 15 Views and Null Lecture 16 DBMS Architecture and System Catalog Lecture 17 Transactions

More information

CS2300: File Structures and Introduction to Database Systems

CS2300: File Structures and Introduction to Database Systems CS2300: File Structures and Introduction to Database Systems Lecture 14: SQL Doug McGeehan From Theory to Practice The Entity-Relationship Model: a convenient way of representing the world. The Relational

More information