





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Some concept of Database Systems are Introduction to Database Systems, Introduction to Database Systems, Logical Query Plan, Memory Hierarchy, Missing Information. Main points of this lecture are: Missing Information , Problems, Extending Relational, Relational Algebra, Selection Operation, Property, Intersection, Two Tuples, Additional Problems, Argument
Typology: Slides
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















true true true true false true unknown unknown true false true false false true false un true un true un un un un un un un false false un un false true false true true false un false un true false false false false true
x y x AND y x OR y NOT x
SQL solution:NULLs in conditions
FROM Employee Where Salary > 15,
Employee Name Salary John 25, Mark 15, Anne 20, Chris NULL
Salary1.1 AS NewSalary FROM Employee*
Employee Name Salary John 25, Mark 15, Anne 20, Chris NULL
AVG(Salary) AS Avg, COUNT(Salary) AS Num, SUM(Salary) AS Sum FROM Employee
Employee Name Salary John 25, Mark 15, Anne 20, Chris NULL
ID Name 123 John 124 Mary 125 Mark 126 Jane
ID Code 123 DBS 124 PRG 125 128 DBS
Mark 60 70 50 80
Student inner join Enrolment ID Name ID Code Mark 123 John 123 DBS 60 124 Mary 124 PRG (^70) 125 Mark 125 DBS 50
Student Enrolment
ID Name 123 John 124 Mary 125 Mark 126 Jane
ID Code 123 DBS 124 PRG 125 128 DBS
Mark 60 70 50 80
Student full outer join Enrolment ID Name ID Code Mark 123 John 123 DBS 60 124 Mary 124 PRG (^70) 125 Mark 125 DBS 50
Student Enrolment
126 Jane 128 DBS^80
null null null null null
ID Name 123 John 124 Mary 125 Mark 126 Jane
ID Code 123 DBS 124 PRG 125 128 DBS
Mark 60 70 50 80
Student right outer join Enrolment ID Name ID Code Mark 123 John 123 DBS 60 124 Mary 124 PRG (^70) 125 Mark 125 DBS 50
Student Enrolment
null null (^128) DBS 80
Parts
ID Name Wgt Qty
1 Nut 10 20 2 Bolt 15 - 3 Nail 3 100 4 Pin -1 30 5 ??? 20 20 6 Screw -1 - 7 Brace (^150 0) UPDATE Parts
SET Qty = Qty + 5