Beruflich Dokumente
Kultur Dokumente
GROUP BY clause
SELECT clause
COUNT function
HAVING clause
PW=
The following are examples of the use of GRANT to users U1 and U2.
GRANT SELECT ON TABLE S TO USER U1 WITH GRANT
OPTION ;
GRANT INSERT, DELETE ON TABLE T TO USER U2 ;
The GRANT statement in SQL is used to grant security rights to users. A user with
administrative authorithy or a user who owns a table or view can use the GRANT
statement to let other users execute one or more of the SELECT, INSERT, DELETE,
UPDATE, ALTER TABLE and CREATE INDEX statements against the table or view.
Some examples of GRANT along with the syntax of GRANT is given. Granted privileges
can be revoked with the SQL REVOKE statement. The GRANT statement also inserts a
tuple into one of the system tables in the DBMS catalog.
create view work.tableview as
select * from proclib.invoices
using libname proclib 'sas-data-library';
], ...
... ON [ owner.]table-name TO userid, ... [ WITH GRANT
OPTION]
Question 2
Integrity constraints are a set of data validation rules that you can specify to restrict the data values
accepted into a data file. Using integrity constraints can preserve the correctness and consistency of stored
data.
Using the information in the question we see that the integrity constraint needs to be applied for each
student in the student table and the Degree code in the degree table.
Question 3
i) the amount of space used in the database would be 2048 + 32 + 4 + 1 = 2085 bytes
ii) This can be calculated by adding the total number of pages which is