| Term 
 | Definition 
 
        | creation of a logical schema and external schemas in the data model of the selected DBMS by mapping the conceptual schema |  | 
        |  | 
        
        | Term 
 
        | System-independent mapping (LogDataDesign) |  | Definition 
 
        | does not consider any specific characteristics or special cases that apply to the DBMS implementation of the data model |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | adjust the schemas to exploit DBMS-specific modeling features and constraints in order to improve performance and/or semantic richness |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | The process of choosing specific storage structures and access paths for the physical database files to achieve good performance for the various DB applications |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | 
Locial schema: "create table"Physical schema: "create database","create tablespace","create index"External schema:"create view"  |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | 
Select...from...whereInsert...into...Update...where...Delete where... |  | 
        |  | 
        
        | Term 
 
        | Referential Triggered Action Clauses |  | Definition 
 
        | Specified action to be taken if a referential integrity constraint is violotaed upon delete of a referenced tuple or modification of a referenced primary key value    
ON DELETE | ON UPDATE SET NULL | CASCADE | SET DEFAULT | RESTRICT |  | 
        |  | 
        
        | Term 
 
        | DROP SCHEMA COMPANY CASCADE |  | Definition 
 
        | Automatical drops objects that are contained in the schema |  | 
        |  | 
        
        | Term 
 
        | DROP SCHEMA COMPANY RESTRICT |  | Definition 
 
        | refused to drop the schema if it contains any objects (default) |  | 
        |  | 
        
        | Term 
 
        | DROP TABLE COMPANY CASCADE |  | Definition 
 
        | automatically drop objects that depend on the table |  | 
        |  | 
        
        | Term 
 
        | DROP TABLE COMPANY RESTRICT |  | Definition 
 
        | refused to drop table if any objects depend on it (default) |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | 
adds of drops columnschanges colomn defenitions add or drop table constraintsALTER TABLE EMPLOYEE ADD JOB VARCHAR(12); |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | defines operators on relations to specify a retrieval request |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | defines declarative expressions to specify a retrieval request |  | 
        |  | 
        
        | Term 
 
        | SELECT-FROM-WHERE structure |  | Definition 
 
        | SELECT <attribute list> FROM <table list> WHERE <condition>; |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | INSERT INTO EMPLOYEE(FNAME, LNAME, DNO, SSN) VALUES  ('Richard', 'Marini', :DEPNUMBER, '653298653'); |  | 
        |  | 
        
        | Term 
 | Definition 
 | 
        |  | 
        
        | Term 
 | Definition 
 
        | Retrieve the name and address of all employees who work for the 'Research' department.   SELECT FNAME, LNAME, ADDRESS FROM (EMPLOYEE JOIN DEPARTMENT ON DNUMBER = DNO) WHERE DNAME = 'Research'; |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | Select all EMPLOYEE SSNs SELECT SSN FROM EMPLOYEE;   |  | 
        |  | 
        
        | Term 
 
        | Elminating Duplicate Queries |  | Definition 
 
        | SELECT DISTINCT SALARY FROM EMPLOYEE |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | Make a list of project numbers for projects that  involve an employee whose last name is 'Smith',  either as a worker or as a manager of the  department that controls the project.   (SELECT DISTINCT PNUMBER FROM PROJECT, DEPARTMENT, EMPLOYEE WHERE DNUM = DNUMBER AND MGRSSN = SSN AND LNAME = 'Smith') UNION (SELECT DISTINCT PNUMBER FROM PROJECT, WORKS_ON, EMPLOYEE WHERE PNUMBER = PNO AND ESSN = SSN AND LNAME = 'Smith'); |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | Retrieve all employees whose address is in Houston, Texas   SELECT FNAME, LNAME FROM EMPLOYEE WHERE ADDRESS LIKE '%HOUSTON,TX%' |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | ORDER BY DNAME DESC, LNAME ASC, FNAME ASC; |  | 
        |  | 
        
        | Term 
 
        | Nested queries:Scalar Subquery |  | Definition 
 
        | Retrieve the first name and last name  of all employees working in the  department ‘Research’   SELECT FNAME, LNAME FROM EMPLOYEE WHERE DNO =   (SELECT DNUMBER  FROM DEPARTMENT               WHERE DNAME = 'Research' |  | 
        |  | 
        
        | Term 
 
        | Correlated nested queries |  | Definition 
 
        | WHERE-clause of a nested query references some attribute of a relation declared in the outer query |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | Retrieve the name of each employee who has a dependent with the same first name and sex as the employee   SELECT E.FNAME, E.LNAME FROM EMPLOYEE E WHERE EXISTS   (SELECT *      FROM DEPENDENT      WHERE E.SSN = ESSN      AND E.SEX = SEX      AND E.FNAME = DEPENDENT_NAME);   |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | Retrieve the names of employees who  have no dependents   SELECT FNAME, LNAME FROM EMPLOYEE WHERE NOT EXISTS  (SELECT *               FROM DEPENDENT               WHERE SSN = ESSN); |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | WHERE....IS NULL WHERE...IS NOT NULL |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | 
inner joinleft outer joinright outer joinfull outer join |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | a tuple is included in result only if a matching tuple exists in the relation |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | all tuples of first table are included |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | all tuples of second table are included |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | all tuples of both tables are included |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | Used after SELECT-clause or HAVING-clause COUNT,SUM,MAX,MIN,AVG |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | allows to apply aggregate function to subgroups of tubples in a relation based on an attribute value   SELECT DNO, COUNT(*), AVG(SALARY) FROM EMPLOYEE GROUP BY DNO; |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | condintion on the groups being selected |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | 
virtual tablesconsists of formula that determines which attributes from base table are shown |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | queries on views are modifed into queries on the underlying base tables |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | temporary physical table created when the view is first queried |  | 
        |  | 
        
        | Term 
 
        | Requirements for views to be updatable |  | Definition 
 
        | 
No DISTINCTno aggregate functionsonly one table in FROMno correlated subqueryno GROUP BYno UNION, INTERSECT or EXCEPT |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | allows to you to avoid an insert or update through a view that would leave it unretrievable through the view. UPDATE and INSERT statements are checked for conformity with the view definition |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | referes to a user account or a group of user accounts. The DBMS must provide selective access to relation in the DB based on the spefic accounts |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | the DBA specifies the particular privlleges that each account holds independently of the tables in the database |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | one can control the privileges to access each individual table or view in a DB |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | an atomic unit of work that is either completed in its entirety or not done at all |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | marks beginning of the transactions |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | specifies that read and write operations have ended and marks the end of the transaction |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | signals a succesful end of the transaction |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | signals transacton has ended unsucessfully |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | 
atomicity consistency preservationisolationdurability |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | transaction is an atomic unity of processing |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | a transaction is consistency preserving if its complete execution takes the databse from one consistent state to another |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | a transaction should appear as though it is being executed in isolation from other transactions |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | changes applied to the database by a commited transaction must persit in the database |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | seperate the SQL instructions to be processed by the precompiled from the native host language "#SQL" |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | variable declared in host language that can be accessed in embedded SQL instructions to pass data from SQL to host language and vice versa |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | used to pass database data to the applcation |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | assigned value by application code and then used in SQL |  | 
        |  | 
        
        | Term 
 | Definition 
 
        | allow for the tuples that result from SQL query to be presented to the application code one by one |  | 
        |  |