Session 3 Welcome: To session 3 - the 7th. learning sequence

Slides:



Advertisements
Similar presentations
The Build-up of the Red Sequence at z
Advertisements

CH4 EXERCISES 4.2. Given two relations R1 and R2, where R1 contains N1 tuples, R2 contains N2 tuples, and N2 > N1 > 0, give the min and max possible sizes.
1 Welcome: To the fifth learning sequence “ Possible representation (2) “ Recap : In the previous learning sequence, we discussed four possible representations.
1 Session 3 Welcome: To session 3 - the 7 th. learning sequence “Relational algebra “ Recap : In the previous learning sequences, we discussed some operators.
1 Inventory Systems and Supply Ordering. 2 Inventory Systems and Ordering Supplies List of the stock and assets in the dental office Inventory includes.
TERMS TO KNOW. Programming Language A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. Each language has.
ECONOMICS 211 CLICKER QUESTIONS Chapter 4 – Question Set #3.
1 SELECT statement. 2 Sample database Supplier Part supplies (0,n) colour s# snamep# pname amount citydob price qualitydate.
Aitons’ Equipment. Type in your user name and password And click sign in Hit enter for next page.
1 Session 3 Welcome: To session 3-the 8 th. learning sequence “Relational algebra “ Recap : In the previous learning sequence, we discussed some example.
MASTERY LEARNING High School Mathematics Department How it is utilized in Algebra IA.
1 Session 3 Welcome: To session 3- the first learning sequence “ Introduction to Relational Model“ Recap : In the previous learning sequences, we discussed.
1 Session 2 Welcome: The seventh learning sequence “ Reduction of an EER schema to tables“ Recap : In the previous learning sequence, we discussed the.
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.
ENVR 210 CLICKER QUESTIONS Chapter 4 – Question Set #3.
Perform DFS from A A B C D E F G. Perform BFS from A A B C D E F G.
An Introduction to SQL For CS Overview of SQL  It is the standard language for relational systems, although imperfect  Supports data definition.
Digital camera Group number : 叶思汝 杨磊. The New Camera Ultra-slim digital camera.
1 Session 3 Welcome: To session 3-the fourth learning sequence “Relational algebra “ Recap : In the previous learning sequences, we discussed the four.
1 Basic Definitions Fundamentals of Data Base Dr. Rashid Al_Zubaidy.
A. A general rise in prices. 1. When prices rise, a person’s ability to buy goods and services goes down, which decreases purchasing power.
ALGEBRA VOCABULARY. Vocabulary: Expression Definition: A math phrase built from constants, variables and operations EXAMPLE: 3X - 2Y.
Database Revision 1 ABC Stationery Supplies Complex queries Exporting data Field names/data types Importing data.
1. Number of Variables 2. Transportation Example 1.
1 Welcome: To the forth learning sequence “ Possible representation (1) “ Recap : In the previous learning sequence, we discussed the basic definitions.
Essential Question: How do we Evaluate Algebraic Expressions? (+ & -) U3D4.
Essential Question: How do we Evaluate Algebraic Expressions? (● & /) U3D5.
1 Session 3 Welcome: To session 3-the third learning sequence “ Relational algebra “ Recap : In the previous learning sequences, we discussed the four.
Changes in Equilibrium!. Equilibrium Review Equilibrium is where quantity supplied and quantity demanded are equal. Graphically, equilibrium is the point.
SQL Exercises. 1) Names of suppliers. Suppliers(sid, sname, address) Parts(pid, pname, color) Catalog(sid, pid, cost)
Interpreting Structure in Expressions Identifying Terms, Factors, and Coefficients Lesson
STRUCTURE OF PRESENTATION :
“ Possible representation (3) “
Session 3 Welcome: To session 3-the fourth learning sequence
Fundamentals of Databases
“ Database (DB) and Database Management System (DBMS) “
Aim: What is the law of supply and demand?
Session 3 Welcome: To session 3-the fifth learning sequence
CS 480: Database Systems Lecture 8 February 1, 2013.
ALGEBRAIC REPRESENTATION OF SUPPLY, DEMAND, AND EQUILIBRIUM
Modeling Your Data Chapter 2 cs542
Key Performance Indicators in Ship Supply Management
Demand, Supply, and Market Equilibrium
Recapping: Writing with algebra
Algebraic Sequences.
Database Applications (15-415) Relational Calculus Lecture 6, September 6, 2016 Mohammad Hammoud.
Managing Inventory.
Calculation of equilibrium quantity and equilibrium price
5.02 Understand database queries, forms, and reports used in business.
Session 3 Welcome: To session 3-the second learning sequence
Session 3 Welcome: To session 3-the sixth learning sequence
Variables and Expressions
Session 2 Welcome: The seventh learning sequence
Market Effects of Changes in Demand or Changes in Supply
Relational Model.
Where are we? Until now: Modeling databases (ODL, E/R): all about the schema Now: Manipulating the data: queries, updates, SQL Then: looking inside -
Relational Algebra.
Using Access More Efficiently
Shifts in both Supply and Demand What happens to Price
Session 3 Welcome: To session 3-the 8th. learning sequence
Evaluating Algebraic Expressions
STORE MANAGER RESPONSIBILITIES.
Basic Definitions.
“ Possible representation (2) “
“ Possible representation (1) “
실습 4주차.
Non-numeric Data Representation
Learn to identify and evaluate expressions.
Evaluating Algebraic Expressions
Demand: a list of prices and the quantities that would be purchased at those prices, holding all other things constant.
Presentation transcript:

Session 3 Welcome: To session 3 - the 7th. learning sequence “Relational algebra “ Recap : In the previous learning sequences, we discussed some operators of relational algebra. Present learning: We shall explore the following topic: - Example Queries

Relational Algebra

Relational Algebra A basic expression in the relational algebra consists of either one of the following: A relation in the database A constant relation

Relational Instances for the Purchasing System The Supplier relation: S-number S-name S-city S100 Ahmed Amman S200 Ali Jarash S300 Kasim Irbid S400 Jasim Aqaba S500 Rana

The Part relation: P-number P-name Color Price P-city P1 TV Silver 300 Amman P2 Camera Black 100 Jarash P3 Video 200 P4 PC 400 Irbid P5 Printer Red P6 Scanner silver 150 5

The shipment relation: S-number P-number Quantity S100 P1 100 P2 150 P3 200 P4 160 S200 S300 400 S400 80 S500 6

Q1- Find The cities for all suppliers .  S-city (Supplier)

Q1- Find The cities for all suppliers .  S-city (Supplier) S-city Amman Jarash Irbid Aqaba The result relation

Q2- Find city for Ahmed.

Q2- Find city for Ahmed. Temp1   S-name = ‘Ahmed’ (Supplier)

Q2- Find city for Ahmed. Temp1   S-name = ‘Ahmed’ (Supplier) S-number S-name S-city S100 Ahmed Amman Temp1

Q2- Find city for Ahmed. Temp1   S-name = ‘Ahmed’ (Supplier) S-number S-name S-city S100 Ahmed Amman Temp1 Result   S-city (Temp1) S-city Amman Result

Q3- Find the number and name for suppliers in Amman.

Q3- Find the number and name for suppliers in Amman. Temp1   S-city= ‘Amman’ (Supplier)

Q3- Find the number and name for suppliers in Amman. Temp1   S-city= ‘Amman’ (Supplier) S-number S-name S-city S100 Ahmed Amman S500 Rana Temp1

Q3- Find the number and name for suppliers in Amman. Temp1   S-city= ‘Amman’ (Supplier) S-number S-name S-city S100 Ahmed Amman S500 Rana Temp1 Result   S-number, S-name (Temp1)

Q3- Find the number and name for suppliers in Amman. Temp1   S-city= ‘Amman’ (Supplier) S-number S-name S-city S100 Ahmed Amman S500 Rana Temp1 Result   S-number, S-name (Temp1) S-number S-name S100 Ahmed S500 Rana Result

Q4- For each part shipped, find the part names and the names of all cities storing these parts.

Q4- For each part shipped, find the part names and the names of all cities storing these parts. Temp1   P-number ( Shipment )

Q4- For each part shipped, find the part names and the names of all cities storing these parts. Temp1   P-number ( Shipment ) P-number P1 P2 P3 P4 Temp1

Q4- For each part shipped, find the part names and the names of all cities storing these parts. Temp1   P-number ( Shipment ) Temp2  Part Temp1

Q4- For each part shipped, find the part names and the names of all cities storing these parts. Temp1   P-number ( Shipment ) Temp2  Part Temp1 P-number P-name Color Price P-city P1 TV Silver 300 Amman P2 Camera Black 100 Jarash P3 Video 200 P4 PC 400 Irbid Temp2

Q4- For each part shipped, find the part names and the names of all cities storing these parts. Temp1   P-number ( Shipment ) Temp2  Part Temp1 Result   P-name, p-city(Temp2) P-name P-city TV Amman Camera Jarash Video PC Irbid Result

Q5- For each part shipped, find the part numbers and names of all cities supplying the parts.

Q5- For each part shipped, find the part numbers and names of all cities supplying the parts. Temp1  Shipment Supplier

Q5- For each part shipped, find the part numbers and names of all cities supplying the parts. Temp1  Shipment Supplier S-number P-number Quantity S-name S-city S100 P1 100 Ahmed Amman P2 150 P3 200 P4 160 S200 Ali Jarash S300 400 Kasim Irbid S400 Jasim Aqaba 80 S500 Rana Temp1

Result   P-number, S-city ( Temp1 ) Q5- For each part shipped, find the part numbers and names of all cities supplying the parts. Temp1  Shipment Supplier P-number S-city P1 Amman P2 P3 P4 Jarash Irbid Aqaba Result   P-number, S-city ( Temp1 ) Result

Q6- Get supplier numbers for suppliers who supply part p2

Q6- Get supplier numbers for suppliers who supply part p2 Temp1   p-number = ‘p2’ (Shipment)

Q6- Get supplier numbers for suppliers who supply part p2 Temp1   p-number = ‘p2’ (Shipment) S-number P-number Quantity S100 P2 150 S200 S300 400 S400 Temp1

Q6- Get supplier numbers for suppliers who supply part p2 Temp1   P-number = ‘p2’ (Shipment) Result   S-number ( Temp1 ) S-number S100 S200 S300 S400 Result

Relational Algebra Summary: In this learning sequence, we discussed some example queries about purchasing system.

END