Security and Authorization
5DV119 — Introduction to Database Management Ume˚ a University Department of Computing Science Stephen J. Hegner hegner@cs.umu.se http://www.cs.umu.se/~hegner
Security and Authorization 20130307 Slide 1 of 33
Security and Authorization 5DV119 Introduction to Database - - PowerPoint PPT Presentation
Security and Authorization 5DV119 Introduction to Database Management Ume a University Department of Computing Science Stephen J. Hegner hegner@cs.umu.se http://www.cs.umu.se/~hegner Security and Authorization 20130307 Slide 1 of 33
Security and Authorization 20130307 Slide 1 of 33
Security and Authorization 20130307 Slide 2 of 33
Security and Authorization 20130307 Slide 3 of 33
Security and Authorization 20130307 Slide 4 of 33
Security and Authorization 20130307 Slide 5 of 33
Security and Authorization 20130307 Slide 6 of 33
Security and Authorization 20130307 Slide 7 of 33
Security and Authorization 20130307 Slide 8 of 33
Security and Authorization 20130307 Slide 9 of 33
Security and Authorization 20130307 Slide 10 of 33
Security and Authorization 20130307 Slide 11 of 33
Security and Authorization 20130307 Slide 12 of 33
Security and Authorization 20130307 Slide 13 of 33
Security and Authorization 20130307 Slide 14 of 33
Security and Authorization 20130307 Slide 15 of 33
Security and Authorization 20130307 Slide 16 of 33
Security and Authorization 20130307 Slide 17 of 33
Security and Authorization 20130307 Slide 18 of 33
Security and Authorization 20130307 Slide 19 of 33
Security and Authorization 20130307 Slide 20 of 33
Security and Authorization 20130307 Slide 21 of 33
Security and Authorization 20130307 Slide 22 of 33
Security and Authorization 20130307 Slide 23 of 33
Security and Authorization 20130307 Slide 24 of 33
Security and Authorization 20130307 Slide 25 of 33
Security and Authorization 20130307 Slide 26 of 33
Security and Authorization 20130307 Slide 27 of 33
SELECT AVG(Salary) FROM Employee JOIN Works_On ON (SSN=ESSN) JOIN Project ON (PNO=PNumber) WHERE (PName=’ProductY ’) AND (SEX=’F’);
Security and Authorization 20130307 Slide 28 of 33
Security and Authorization 20130307 Slide 29 of 33
SELECT SUM(Salary) FROM Employee JOIN Department ON (DNO=DNumber) WHERE (DName=’Administration ’) ;
SELECT Count (*), SUM(Salary) FROM Employee JOIN Department ON (DNO=DNumber) WHERE (DName=’Administration ’) ;
Security and Authorization 20130307 Slide 30 of 33
SELECT Count (*), SUM(Salary) FROM Employee JOIN Department ON (DNO=DNumber) WHERE (DName=’Administration ’) OR (SSN IN (SELECT E.SSN FROM Employee E JOIN Works_On ON (E.SSN=ESSN) JOIN Project ON (PNO=PNumber) WHERE (PName=’ProductY ’) AND (Sex=’F’))) ;
Security and Authorization 20130307 Slide 31 of 33
SELECT Count (*), SUM(Salary) FROM Employee JOIN Department ON (DNO=DNumber) WHERE (DName <>’Administration ’) ;
SELECT Count (*), SUM(Salary) FROM Employee JOIN Department ON (DNO=DNumber) WHERE (DName <>’Administration ’) OR (SSN IN (SELECT E.SSN FROM Employee E JOIN Works_On ON (E.SSN=ESSN) JOIN Project ON (PNO=PNumber) WHERE (PName=’ProductY ’) AND (Sex=’F’))) ;
Security and Authorization 20130307 Slide 32 of 33
Security and Authorization 20130307 Slide 33 of 33