Branch (Bno, Area, City, Pcode) Staff (Sno, FName, LName, Position, Sex, DOB, Salary, Bno) Property_for Rent (Pno, Area, City, Type, Rooms, Rent, Ono,

Slides:



Advertisements
Similar presentations
Data base project (For alloban primary school ) AN_Najah national university Falasteen nobane Eman abuzaid.
Advertisements

SQL. More than 100 DBMS support SQL –Used by DBAs and application programmers –Structured Query Language or SEQUEL –ORACLE-> relation database based on.
Relational Algebra and Relational Calculus
RELATIONAL DATABASES. Relational data Structure RELATION: Table with columns and rows ATTRIBUTE: Column of a relation DOMAIN: Set of allowable values.
Assignment Design Methodology A structured approach that uses procedures, techniques, tools, and documentation aids to support and facilitate the.
CSC271 Database Systems Lecture # 11.
Chapter 3 CIS 458 Sungchul Hong
RELATIONAL ALGEBRA Lecture Relational Algebra Operations to manipulate relations. Used to specify retrieval requests (queries). Query results in.
CSC271 Database Systems Lecture # 13. Summary: Previous Lecture  Grouping through GROUP BY clause  Restricted groupings  Subqueries  Multi-Table queries.
BACS 485 Structured Query Language 2. BACS 485 SQL Practice Problems Assume that a database named COLLEGE exists. It contains the tables defined below.
Branch (Bno, Street, Area, City, Pcode, Tel_No, Fax_NO) Staff (Sno, FName, LName, Address, Tel_No, Position, Sex, DOB, Salary, NIN, Bno) Property_for_Rent.
Chapter 6 SQL. Agenda Data Definition Language (DDL) Access Control.
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
Data Modeling ISYS 464. Database Design Process Conceptual database design: –The process of creating a data model independent of implementation details.
1 Design Methodology A structured approach that uses procedures, techniques, tools, and documentation aids to support and facilitate the process of design.
1 CS 3630 Database Design and Implementation. 2 Final Exam 7:00 – 8:52 PM, Thursday, May 16 Section 1: Ull 009 Section 2: Ull Points –50 points.
Chapter 5 SQL. Agenda Data Manipulation Language (DML) –SELECT –Union compatible operations –Update database.
Relational Database Management System A type of database in which records are stored in relational form is called relational database management system.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Chapter 3)
Chapter 6 SQL. Agenda Data Definition Language (DDL) Access Control.
Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial Password: UWPstudent Password is case sensitive.
HOUSEHOLD INCOME & EXPENDITURE SURVEY 2009/10 Statistics Division/ DNP.
Introduction to Databases. Case Example: File based Processing Real Estate Agent’s office Property for sale or rent Potential Buyer/renter Staff/employees.
Chapter 5 SQL. Agenda Data Manipulation Language (DML) –SELECT –Union compatible operations –Update database.
Practice of ER modeling
Agenda TMA01 M876 Block 3 – Using SQL Structured Query Language - SQL A non-procedural language to –Create database and relation structures. –Perform.
BACS--485 SQL 11 BACS 485 Structured Query Language.
CSC271 Database Systems Lecture # 12. Summary: Previous Lecture  Row selection using WHERE clause  WHERE clause and search conditions  Sorting results.
Chapter 7 SQL: Data Manipulation Chapter#6 in the text book Pearson Education © 2009.
Some Thoughts On Renting. The biggest expense in your life will be Housing!
Retrieve the names of all employees in department 5 who work more than 10 hours per week on the ‘ProductX’ project. p10ssn ← (Π essn (σ hours > 10 (works-on.
SQL Data Manipulation II Chapter 5 CIS 458 Sungchul Hong.
1 General Form of the SELECT Statement SELECT [DISTINCT | ALL {* | col_expr [AS new_name] [,…]} FROMtable_name [,…] [,…] [WHERE condition] [GROUP BY col_list]
Chapter 5 SQL Data Manipulation Language Chapter 5 in Textbook.
Bayu Adhi Tama, ST., MTI. Introduction Relational algebra and relational calculus are formal languages associated with the relational.
Advanced Database Systems
CS 3630 Database Design and Implementation. 2 DreamHome Branch (branchNo, street, city, state, zipcode, phone1, phone2, phone3) Staff (staffNo, firstName,
Creating Tables and Inserting Records -- Not easy to edit! -- check constraints! Create table test1 ( C1 char(5) primary key, C2 Varchar2(15) not null.
Chapter 5 SQL: Data Manipulation Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th Edition,
Chapter 7 SQL: Data Manipulation Chapter #6 in the textbook Pearson Education © 2009.
CS 3630 Database Design and Implementation. 2 Functions y = f(x) x1 = x2  f(x1) = f(x2) Same x value, then same function value. Yes, it’s a function!
CS 3630 Database Design and Implementation. Database Schema Branch (Bno…) Staff (Sno…Bno) Owner (Ono…) PropertyForRent (Pno…Ono) Renter (Rno…) Viewing.
Chapter 5 Relational Algebra and Relational Calculus Pearson Education © 2009.
IST 210 SQL Todd Bacastow IST 210: Organization of Data.
Chapter 8 Introduction to SQL
Chapter 5 Relational Algebra Pearson Education © 2014.
1 Geog 357 – Introduction to GIS The Relational Language.
CSC271 Database Systems Lecture # 8. Summary: Previous Lecture  Relation algebra and operations  Selection (Restriction), projection  Union, set difference,
Chapter 6 SQL. Agenda Data Definition Language (DDL) Access Control.
Schema Conversion Create a table for each entity –1:1 choose one side and put a foreign key –1:* put a foreign key in many side –*:* create a table for.
Chapter 4 Practice Problem Solutions. A list (Bno, Street, Area,Tel_No, Fax_No) of branches located in Bay Area Branch (Bno, Street, Area, City, Pcode,
2 Database Design Chapter Operations of the Relational Model Updates: changes the database’s state. Insert Delete Update/modify Retrievals: does.
Quiz Where to Store Attributes of Relationship Staff (1) Interviews (0..*) Client Attributes: date, time, comment Staff (StaffNo, …) PK: StaffNo.
IST 210 More SQL Todd Bacastow IST 210: Organization of Data.
Chapter 4 Relational Algebra Chapter 4 in Textbook.
Teacher Workshop Database Design Pearson Education © 2014.
Relational Algebra Lecture 2.
CS 3630 Database Design and Implementation
CS 3630 Database Design and Implementation
CS 3630 Database Design and Implementation
Data Manipulation Language
CS 3630 Database Design and Implementation
Chapter Name SQL: Data Manipulation Chapter #6 in the textbook
Chapter Name SQL: Data Manipulation Chapter #6 in the textbook
Conceptual Database Design
Chapter Name SQL: Data Manipulation
Quiz 1 1. Given two sets S = {3, 5, 7} and T = {2, 4, 6}. List all elements of the following set: {(s, t) | (s, t)  S  T and s + t = 9} Result (3, 6)
CS 3630 Database Design and Implementation
SQL – Data Manipulation
Chapter Name SQL: Data Manipulation
Presentation transcript:

Branch (Bno, Area, City, Pcode) Staff (Sno, FName, LName, Position, Sex, DOB, Salary, Bno) Property_for Rent (Pno, Area, City, Type, Rooms, Rent, Ono, Sno, Bno) Renter (Rno, FName, LName, Pref_Type, Max_Rent) Owner ( Ono, FName, LName) Viewing (Rno, Pno, Date, Comment)

A list (Bno, Street, Area,Tel_No, Fax_NO) of branches located in Bay Area A list (Pno, Street, Area, City) of properties for rent with 4 bedrooms or less than $1,000 per month rent A list (Sno, FName, LName) of female mangers with salary between one to two million dollars A list (Pno, Street, Area, City) of properties for rent located in SF, LA, NY, or DC

A list (Pno, Street, Area, City) of properties for rent not located in SF, LA, NY, or DC A list (Ono, Fname, Lname) of owners without any telephone

The total number of branches The total number of staffs The total salary for male managers The minimum salary for the female manager The maximum rent to rent a property by a renter

The average salary for male staff members The average number of rooms in the single house type The number of employees in each branch The average salary in each branch The average salary in each branch with more than 10 staff members

The number of employees in each branch located in SF, NY, LA, and DC The number of employees in each branch with more than 10 employees and located in SF, NY, LA, and DC A list (Pno, Street, Area, City) of properties for rent managed by John Dow and owned by Sue Lee A list (Sno, FName, LName) of staffs without supervising any property for rent A list (Rno, Fname, Lname) of renters without looking any property for rent

A list (Sno, FName, LName) of supervising a property for rent staff A list (Rno, Fname, Lname) of viewing renters A list (Sno, FName, LName) of the highest salary staff

Student (Stuid, Stuname, Major, Credits) Class (Course#, Facid, Sched, Room) Faculty (Facid, Facname, Dept, Rank) Enrollment (Course#, Stuid, Grade, Sdate)