ГОС по БД #2

Description

God Philosophy Quiz on ГОС по БД #2, created by хомяк убийца on 23/03/2019.
хомяк убийца
Quiz by хомяк убийца, updated more than 1 year ago
хомяк убийца
Created by хомяк убийца about 5 years ago
991
20

Resource summary

Question 1

Question
Retrieve the lowest experience from tutor. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select min (experience) from tutor;
  • select max (experience) from tutor;
  • select max (t.experience) from tutor t group by t.name;
  • select min (t.experience) from tutor t group by t.name;

Question 2

Question
Retrieve book name, number of books, price and publisher, for those books which have more than 20 copies. Tables : BOOK {bookid, title, publisher_name, price}. BOOKCOPIES {bookid, libraryid,noOfCopies [references Book (bookid)]}
Answer
  • select count (b.bookid),b.title, b.price, b.publisher_name from book b join book_copies bc on b.bookid=bc.bookid where bc.no_of_copies>20 group by b.title, b.price, b.publisher_name;
  • select count (b.bookid),b.title, b.price, b.publisher_name from book b join book_copies bc on b.bookid=bc.bookid where bc.no_of_copies>20;
  • select count (b.bookid),b.title, b.price, b.publisher_name from book b join book bc on b.bookid=bc.bookid where bc.no_of_copies>20 group by b.title, b.price, b.publisher_name;
  • select b.bookid,b.title, b.price, b.publisher_name from book b join book_copies bc on b.bookid=bc.bookid where bc.no_of_copies>20 group by b.title, b.price, b.publisher_name;

Question 3

Question
Retrieve card number, book name, borrower name, who have borrowed in 12 July, bookid (references Book (bookid)), libraryid (references Library (libraryid)), cardno 2013. Tables: BOOK {bookid, title, publisher_name, price}. BOOKLOANS {bookloans, cardno(references Borrower (cardno)),bookid (references Book (bookid)) dateout, duedate}. BORROWER {cardno, c_name, b_address, phoneno}
Answer
  • select bl.cardno, b.title, br.c_name from book b join bookloans bl on bl.bookid=b.bookid join borrower br on br.cardno=bl.cardno where bl.dateout='12-07-2013'
  • select bl.cardno, b.title, br.c_name from book b join bookloans bl on bl.bookid=b.bookid join borrower br on br.cardno=bl.cardno where bl.duedate='12-07-2013'
  • select bl.cardno, b.title, br.c_name from book b join bookloans bl on bl.bookid=b.bookid where bl.dateout='12-07-2013'
  • select bl.cardno, b.title, br.c_name from book b join borrower br on br.cardno=bl.cardno where bl.dateout='12-07-2013'

Question 4

Question
Retrieve max price for Fariza's publication. BOOK {bookid, title, publisher_name, price}.BOOK_AUTHORS {author_name, bookid (references Book (bookid))}
Answer
  • select max (b.price)from book b join book_authors ba on b.bookid=ba.bookid where ba.author_name = 'Fariza';
  • select max (b.price)from book b join book_authors ba on b.bookid=ba.bookid where ba.author_name = Fariza;
  • select max (b.price)from book b join book_authors ba b.bookid=ba.bookid where ba.author_name = 'Fariza';
  • select max (b.price)from book b join book_authors ba on b.bookid=ba.bookid; #subToPewDiePie

Question 5

Question
Retrieve book name, total number of book copies. BOOK {bookid, title, publisher_name, price}. BOOKCOPIES {bookid, libraryid,noOfCopies [references Book (bookid)]}
Answer
  • select b.title, sum (no_of_copies) from book b join book_copies bc on b.bookid=bc.bookid group by b.title;
  • select b.title, sum (no_of_copies) from book b join book_copies bc b.bookid=bc.bookid group by b.title;
  • select b.title, count(no_of_copies) from book b join book_copies bc on b.bookid=bc.bookid group by b.title;
  • select b.title, count(no_of_copies) from book b join book_copies bc b.bookid=bc.bookid group by b.title;

Question 6

Question
Retrieve book title and total number of book copies, which has id 1. BOOK {bookid, title, publisher_name, price}. BOOKCOPIES {bookid, libraryid,noOfCopies [references Book (bookid)]}
Answer
  • select b.title, sum (no_of_copies) from book b join book_copies bc on b.bookid=bc.bookid where b.bookid=1 group by b.title;
  • select b.title, sum (no_of_copies) from book b join book_copies bc on b.bookid=bc.bookid where b.bookid=1;
  • select b.title, count (no_of_copies) from book b join book_copies bc on b.bookid=bc.bookid where b.bookid=1 group by b.title;
  • select b.title, count (no_of_copies) from book b join book_copies bc on b.bookid=bc.bookid where b.bookid=1;

Question 7

Question
Retrieve borrower name and number of books that each borrower has. BOOKLOANS {bookloans, bookid (references Book (bookid)), libraryid (references Library (libraryid)), cardno (references Borrower (cardno)), dateout, duedate}. BORROWER {cardno, c_name, b_address, phoneno}
Answer
  • select br.c_name, count(bl.bookid) from borrower br join bookloans bl on br.cardno = bl.cardno group by br.c_name;
  • select br.c_name, count(bl.bookid) from borrower br join bookloans bl on br.cardno = bl.cardno;
  • select br.c_name, sum(bl.bookid) from borrower br join bookloans bl on br.cardno = bl.cardno group by br.c_name;
  • select br.c_name, sum(bl.bookid) from borrower br join bookloans bl on br.cardno = bl.cardno;

Question 8

Question
Retrieve books name and prices. Increase price twice more for books, which have more than 20 copies;BOOK {bookid, title, publisher_name, price}. BOOKCOPIES {bookid, libraryid,noOfCopies [references Book (bookid)]}
Answer
  • select b.title, b.price, b.price *2 as increasedprice from book b join book_copies bc on bc.bookid=b.bookid where bc.no_of_copies > 20;
  • select b.title, b.price book b join book_copies bc on bc.bookid=b.bookid where bc.no_of_copies > 20;
  • impossible to solve
  • select b.title, b.price, b.price *2 as increasedprice from book b join book_copies bc on bc.bookid=b.bookid;

Question 9

Question
Retrieve library name, book name, number of copies, which have more than 25 copies. BOOK {bookid, title, publisher_name, price}. BOOKCOPIES {bookid, libraryid,noOfCopies [references Book (bookid)]}. LIBRARY (libraryid)), cardno (references Borrower (cardno)), dateout, duedate}.
Answer
  • select l.libraryname, b.title, bc.no_of_copies from book b join book_copies bc on b.bookid=bc.bookid join library l on l.libraryid = bc.libraryid where bc.no_of_copies>25;
  • select l.libraryname, b.title, bc.no_of_copies from book b join book_copies bc on b.bookid=bc.bookid where bc.no_of_copies>25;
  • select l.libraryname, b.title, bc.no_of_copies from book join library l on l.libraryid = bc.libraryid where bc.no_of_copies>25;
  • select l.libraryname, b.title, bc.no_of_copies from book b join book_copies bc on b.bookid=bc.bookid join library l l.libraryid = bc.libraryid where bc.no_of_copies>25;

Question 10

Question
Retrieve the number of departments in the department table. Tables: DEPARTMENT {id, name}. EMPLOYEE {id, name, salary, dep_id (references Department (id))}
Answer
  • select count(id) from department
  • select sum (id) from department;
  • select coun(id) from department
  • select id from department

Question 11

Question
Retrieve total salaries payable to employee. Tables: DEPARTMENT {id, name}. EMPLOYEE {id, name, salary, dep_id (references Department (id))}
Answer
  • select sum (salary) from employee;
  • select count (salary) from employee;
  • select sum (id) from employee;
  • select max (salary) from employee;

Question 12

Question
Retrieve office name and tutor name, who have experience equal or more than five years. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select o.name, t.name from office o join tutor t on o.id=t.officeid where t.experience >=5;
  • select o.name, t.name from office o join tutor t on o.id=t.officeid where t.experience >5;
  • select o.name, t.name from office o join tutor t o.id=t.officeid where t.experience >=5;
  • select o.name, t.name from office join tutor on o.id=t.officeid where t.experience >=5;

Question 13

Question
Retrieve tutor name and their office locations, who refer to CSSE and Management. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select t.name, o.locations from office o join tutor t on o.id=t.officeid where o.name in ('CSSE', 'Management');
  • select t.name, o.locations from office o join tutor t on o.id=t.officeid where o.name in ('CSSE' or 'Management');
  • select t.name, o.locations from office o join tutor t o.id=t.officeid where o.name in ('CSSE', 'Management');
  • select t.name, o.locations from office o join tutor t on o.id=t.officeid where o.name in ('CSSE') or ('Management');

Question 14

Question
Retrieve student's name, which starts from A. Tables: OFFICE {id (PK), LOCATIONS, name}, tutor {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select name from students where name like 'A_%';
  • select name from students where name like 'A';
  • select name from students where name like 'a%';
  • select name from students where name like '%A%'

Question 15

Question
Retrieve all students name with the department name, but excluding department CSSE. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where o.name <> 'CSSE';
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid;
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where o.name = 'CSSE';
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name, s.name;

Question 16

Question
Which of the following query is incorrect for retrieving all students name with the department name, but excluding department CSSE. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where o.name <= 'CSSE';
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where o.name <> 'CSSE';
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where o.name not like 'CSSE';
  • select s.name, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where o.name not in ('CSSE');

Question 17

Question
Retrieve students name, scholarship and their office name, who have scholarship ranging from 3200 to 4500.Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select s.name, s.scholarship, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where s.scholarship between 3200 and 4500;
  • select s.name, s.scholarship, o.name from students s join tutor t on t.id=s.tutorid where s.scholarship between 3200 and 4500;
  • select s.name, s.scholarship, o.name from students join office o on o.id=t.officeid where s.scholarship between 3200 and 4500;
  • select s.name, s.scholarship, o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid where s.scholarship 3200 and 4500;

Question 18

Question
What kind symbol is used to find one character in wildcards?
Answer
  • -
  • ?
  • $
  • in

Question 19

Question
Find an average scholarship of students. Tables: STUDENTS {id (PK), name, scholarship, registereddate, tutorid }
Answer
  • select avg (scholarship) from students ;
  • select averg (scholarship) from students ;
  • select avrg (scholarship) from students ;
  • select av (scholarship) from students ;

Question 20

Question
Retrieve average scholarship of students for each department. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select avg (scholarship), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select avg (scholarship), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid ;
  • select avg (scholarship), o.name from students s join tutor t on t.id=s.tutorid group by o.name;
  • select avg (scholarship), o.name from students s d join office o on o.id=t.officeid group by o.name;

Question 21

Question
Retrieve student number in each department. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select count (s.id), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select sum (s.id), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select count (s.id), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid;

Question 22

Question
Retrieve student number in each department. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select count (s.id), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select sum (s.id), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select count (s.id), o.name from students s join tutor t
  • on t.id=s.tutorid join office o on o.id=t.officeid;

Question 23

Question
Retrieve total amount of scholarship of each department. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))
Answer
  • select sum (scholarship), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select count (scholarship), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid group by o.name;
  • select sum (scholarship), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid;
  • select count (scholarship), o.name from students s join tutor t on t.id=s.tutorid join office o on o.id=t.officeid;

Question 24

Question
SQL stands for
Answer
  • Sequence Question Language
  • Structured Query Language
  • Structured Querty Language
  • Selection Query Language

Question 25

Question
You can add a row using SQL in a database with which of the following
Answer
  • ADD
  • CREATE
  • INSERT
  • UPDATE

Question 26

Question
The command to remove rows from a table “Customer”
Answer
  • Remove from Customer
  • Delete from Customer
  • Drop from Customer
  • Update row from Customer

Question 27

Question
The SQL WHERE clause
Answer
  • Condition that limits the column data that are returned
  • Condition that limits the row data are returned
  • Clause that returns all rows
  • Clause that returns nothing

Question 28

Question
The command to eliminate a table from a database
Answer
  • Drop
  • Delete
  • Remove
  • Update

Question 29

Question
Which of the following is correct order of keywords for SQL Select statement?
Answer
  • SELECT, FROM, WHERE
  • WHERE, FROM, SELECT
  • FROM, WHERE, SELECT
  • SELECT, WHERE, FROM

Question 30

Question
SQL data definition commands make up a(n)
Answer
  • DDC
  • DML
  • DDL
  • DDD

Question 31

Question
In a relation, the columns are also called attributes
Answer
  • True
  • False

Question 32

Question
Find the SQL statement that is equal to: SELECT NAME FROM CUSTOMER WHERE STATE = 'VA';
Answer
  • SELECT NAME IN CUSTOMER WHERE STATE IN 'VA';
  • SELECT NAME IN CUSTOMER WHERE STATE = 'VA';
  • SELECT NAME FROM CUSTOMER WHERE STATE IN 'VA';
  • SELECT NAME IN CUSTOMER WHERE STATE = 'V';

Question 33

Question
In E\R diagrams, we will represent Entities as
Answer
  • Boxes with rounded corners
  • Links between two entities
  • Ovals
  • Diamond box

Question 34

Question
In E\R diagrams, we will represent Relationships as
Answer
  • Boxes with rounded corners
  • Links between two entities
  • Ovals
  • Diamond box

Question 35

Question
In E\R diagrams, we will represent Attributes as
Answer
  • Boxes with rounded corners
  • Links between two entities
  • Ovals
  • Diamond box

Question 36

Question
Many to many relationships are difficult to represent in database, so we need to
Answer
  • Split many to many relationship into two one to many relationships
  • Split one to many relationship into two one to many relationships
  • Split many to many relationship into one to many relationships
  • Split many to many relationship into three one to many relationships

Question 37

Question
The result of a SQL SELECT statement is a(n)
Answer
  • Report
  • Table
  • Form
  • File

Question 38

Question
Which of the following are the five built-in functions provided by SQL?
Answer
  • COUNT, SUM, AVG, MAX, MULT
  • SUM, AVG, MIN, MAX, NAME
  • SUM, AVG, MULT, DIV, MIN
  • COUNT, SUM, AVG, MAX, MIN

Question 39

Question
In a relation, the order of the rows matters
Answer
  • True
  • False

Question 40

Question
Given the functional dependency R → (S,T) , then it is also true that R → S
Answer
  • True
  • False

Question 41

Question
Given the functional dependency R → (S,T) , then it is also true that R → T
Answer
  • True
  • False

Question 42

Question
SQL can be used to
Answer
  • create database structures only
  • query database data only
  • modify database data only
  • All of the these can be done by SQL

Question 43

Question
The SQL statement that queries or reads data from a table is _
Answer
  • READ
  • QUERY
  • SELECT
  • NONE

Question 44

Question
A subquery in an SQL SELECT statement
Answer
  • can only be used with two tables
  • has a distinct form that cannot be duplicated by a join
  • can always be duplicated by a join
  • cannot have its results sorted using ORDER BY

Question 45

Question
The SQL keyword BETWEEN is used
Answer
  • for ranges
  • as a wildcard
  • to limit the columns displayed
  • None of the above

Question 46

Question
Sometimes you want to change the structure of an existing table, what are your options?
Answer
  • Change table
  • Drop Table
  • Alter Table
  • Create Table

Question 47

Question
how to Add a new column into existing table?
Answer
  • ALTER TABLE Student MODIFY COLUMN sDegree CHAR(64) NOT NULL
  • ALTER TABLE Student ADD COLUMN sDegree VARCHAR(64) NOT NULL
  • ALTER TABLE S ADD COLUMN s VACHAR(64) NOT NULL
  • ALTER TABLE Student DROP COLUMN sDegree VARCHAR(64) NOT NULL

Question 48

Question
how to rename a column in existing table?
Answer
  • ALTER TABLE Student MODIFY COLUMN sDegree CHAR(64) NOT NULL
  • ALTER TABLE Student ADD COLUMN sDegree VARCHAR(64) NOT NULL
  • ALTER TABLE Student RENAME COLUMN s to SS VACHAR(64) NOT NULL
  • ALTER TABLE Student DROP COLUMN sDegree VARCHAR(64) NOT NULL

Question 49

Question
how to change the row(s) in a table
Answer
  • insert
  • update
  • change
  • delete

Question 50

Question
how to remove the row(s) from a table
Answer
  • insert
  • update
  • change
  • delete

Question 51

Question
A SELECT statement can be nested inside another query to form a
Answer
  • Subselect
  • Subresults
  • Subquery
  • Query in query

Question 52

Question
SQL uses privileges to control access to tables and other database objects, so which is NOT?
Answer
  • Select privilege
  • Update privilege
  • Insert privilege
  • Drop privilege

Question 53

Question
To convert any relation into _______, split any nonatomic values
Answer
  • First normal form
  • Second normal form
  • Third normal form
  • Fourth normal form

Question 54

Question
A functional dependency (FD) is a
Answer
  • link between three sets of attributes in a relation
  • link between all sets of attributes in a relation
  • link between four sets of attributes in a relation
  • link between two sets of attributes in a relation

Question 55

Question
which if the following does not refer to redundancy problems?
Answer
  • INSERT anomalies
  • CREATE anomalies
  • UPDATE anomalies
  • DELETE anomalies

Question 56

Question
To convert any relation into _______, remove transitive dependency
Answer
  • First normal form
  • Second normal form
  • Third normal form
  • Fourth normal form

Question 57

Question
What is it ?
Answer
  • Relation
  • Tuples
  • Attributes
  • Relationships

Question 58

Question
What is it ?
Answer
  • Relation
  • Tuples
  • Attributes
  • Relationships

Question 59

Question
What is it ?
Answer
  • Relation
  • Tuples
  • Attributes
  • Relationships

Question 60

Question
Choose the correct relational algebra operation
Answer
  • Union
  • Difference
  • Itersection
  • Product

Question 61

Question
Choose the correct relational algebra operation
Answer
  • Union
  • Difference
  • Intersection
  • Product

Question 62

Question
Choose the correct relational algebra operation
Answer
  • Difference
  • Union
  • Intersection
  • Product

Question 63

Question
Choose the correct relational algebra operation
Answer
  • Union
  • Difference
  • Intersection
  • Product

Question 64

Question
Are given table union compatible ?
Answer
  • yes
  • no

Question 65

Question
Which of the following is not correct? INSERT INTO Employee(ID, Name, Salary) VALUES
Answer
  • INSERT INTO Employee(ID, Name, Salary) VALUES(2,‘Mary’,26);
  • INSERT INTO Employee (Name,ID) VALUES (‘Mary’,2);
  • INSERT INTO Employee VALUES (2, ‘Mary’,26000);
  • INSERT INTO Employe VALUES(26, ‘Mary’,26);

Question 66

Question
Please increase salary for 10%?
Answer
  • UPDATE Employee SET Salary = Salary*0.5
  • UPDATE Employee SET Salary = Salary * 0.1
  • UPDATE Employee SET Salary = Salary * 1.1
  • UPDATE Employee Update Salary = Salary*0.1

Question 67

Question
Please remove staff, who earns more than 22000?
Answer
  • DELETE FROM Employee WHERE Salary >=22000
  • DELETE FROM Employe WHERE Salary => 22000;
  • REMOVE FROM Employee WHERE Salary >22000;
  • DELETE FROM Employee WHERE Salary = 22000;

Question 68

Question
πsName,sAddress(Student) is equal to?
Answer
  • SELECT Sname FROM Students
  • SELECT Sname, SAddress FORM Students
  • SELECT Sname and SAddress FROM Students
  • SELECT Sname, SAddress FROM Student

Question 69

Question
SQL query to find a list of the ID numbers and Marks for students who have passed IAI
Answer
  • Select ID, Mark from Grade Where code = 'IAI' and Mark > 50;
  • Select ID, Mark from Grade Where code = 'AIA' and Mark > 50;
  • Select ID, Mark, Code from Grade Where code = 'IAI';
  • Select ID, Mark from Grade Where code = 'IAI' and Mark >=50;

Question 70

Question
Find students who studying any Programming module
Answer
  • Select First,Last from Student,Grade Where Code='PR1'OR'PR2'
  • Select First,Last from Student Natural Join Grade Where Code like'PR%'
  • Select First Last from Student Natural Join Grade Where Code like'PR%'
  • Select First from Student Natural Join Grade Where Code = 'PR%'

Question 71

Question
How to use privileges in SQL?
Answer
  • ON<objects> TO<users> GRANT<privileges>
  • GRANT<privileges> ON<objects> TO<users>
  • GRANT<privileges> TO<users> ON<objects>
  • GRANT<tables> ON<objects> TO<users>

Question 72

Question
If Admin’ grants ALL privileges to ‘Manager’, and SELECT to ‘Finance’ with grant option, So..
Answer
  • ‘Manager’ grants ALL to ‘Personnel’
  • ‘Manager’ grants SELECT to ‘Personnel’
  • ‘Finance’ grants SELECT to ‘Manager’
  • ‘Finance’ grants ALL to ‘Manager’

Question 73

Question
If Admin’ grants ALL privileges to ‘Manager’, and SELECT to ‘Finance’ with grant option, So..
Answer
  • ‘Finance’ grants SELECT to ‘Personnel’
  • ‘Manager’ grants SELECT to ‘Personnel’
  • ‘Finance’ grants SELECT to ‘Manager’
  • ‘Finance’ grants ALL to ‘Manager’

Question 74

Question
If ‘Manager’ revokes ALL from ‘Personnel’
Answer
  • ‘Personnel’ still has ALL privileges from ‘Finance’
  • ‘Finance’ still has SELECT privileges from ‘Personnel’
  • ‘Personnel’ still has SELECT privileges from ‘Finance’
  • ‘Admin’ still has ALL privileges from ‘Finance’

Question 75

Question
If ‘Finance revokes SELECT from ‘Personnel’
Answer
  • ‘Personnel’ still has ALL privileges from ‘Finance’
  • ‘Finance’ still has SELECT privileges from ‘Personnel’
  • ‘Personnel’ still has ALL privileges from ‘Manager’
  • ‘Admin’ still has ALL privileges from ‘Finance’

Question 76

Question
If ‘Admin’ revokes Select from ‘Finance’
Answer
  • ‘Personnel’ still has ALL privileges from ‘Finance’
  • ‘Finance’ still has SELECT privileges from ‘Personnel’
  • ‘Personnel’ still has ALL privileges from ‘Manager’
  • ‘Admin’ still has ALL privileges from ‘Finance’

Question 77

Question
If ‘Admin’ revokes ALL from ‘Manager’
Answer
  • ‘Personnel’ still has ALL privileges from ‘Finance’
  • ‘Finance’ still has SELECT privileges from ‘Personnel’
  • ‘Finance still has SELECT privileges from ‘Admin’
  • ‘Admin’ still has ALL privileges from ‘Finance’
Show full summary Hide full summary

Similar

Breakdown of Philosophy
rlshindmarsh
Who did what now?...Ancient Greek edition
Chris Clark
Reason and Experience Plans
rlshindmarsh
The Cosmological Argument
Summer Pearce
AS Philosophy Exam Questions
Summer Pearce
Philosophy of Art
mccurryby
"The knower's perspective is essential in the pursuit of knowledge." To what extent do you agree?
nataliaapedraza
The Ontological Argument
daniella0128
Religious Experience
alexandramchugh9
Chapter 6: Freedom vs. Determinism Practice Quiz
Kristen Gardner
Environmental Ethics
Jason Edwards-Suarez