_____ are queries based on tables.
A.ViewsB.SequencesC.IndexesD.None of the aboveThe correct answer is A. B is incorrect because sequences generate unique numbers for numeric columns in a table. C is incorrect because indexes are used to speed up theaccess of data from a database.
Given the tables"Employee_Information" and "Employee_Resume," what type of relationship do you think exists?
A.One-to-oneB.Many-to-manyC.One-to-manyThe correct answer is A. Each employee should have only one resume.
What does the SQL statement "Select * From Employees wherestate = 'IL';" do?
This statement will display all the fields in the employee table where an employee islocated in the state of Illinois.
What is the purpose of an index?
An index is used to store data in a specific way in a table which will permit easy retrievalof data. An index to a database is similar to an index in a book; it allows the user toimmediately access the information he or she is seeking without having to read everypage. Indexes sort one or more fields in a database in ascending or descending order.
How can a user create a table?
The SQL statement "Create table" is used to create a table inOracle. An example of thestatement follows:
CREATE TABLE students (Student_id NUMBER(5) NOT NULL;Department CHAR(3) NOT NULL);
How does a user create an index?
The SQL statement "Create index" is used to create an index inOracle. The syntax is"Create Index "ORCL.employees (empid);" is an example of a create statement.<indexname> on <table_name (column_name(s)>.
What is data normalization?
The goal of data normalization is to eliminate redundant data in tables. For example, in apayroll table where the hourly rate of $60 per hour is stored in a new field for each andevery supervisor, a table can be created that is used to retrieve the hourly rate by the useof a join. This configuration will allow changes to be made once rather than in multiplelocations for all supervisors in the table.
Can you give an example of a one-to-one relationship?
The relationship between an employee table and an employee resume table, where eachemployee has only one resume, illustrates a one-to-one relationship.
Can you give an example of a one-to-many relationship?
An example of a one-to-many relationship can be illustrated by the relationship betweensales_reps and sales offices. Sales_reps can report to only one office, but an office canhave more than one sales rep.
What does the command "DropTable Employees" do?
The drop table command is used to delete the employee table and to remove informationabout it from the data dictionary.
What is the purpose of an Entity Relationship Diagram (ERD)?
An ERD is used to graphically depict the relationship between tables in anOracledatabase.
What is PL/SQL?
PL/SQL is a programming language used to accessOracledatabases. PL/SQLenhances the SQL programming language with additional programming capabilities, suchas if-then statements, functions, procedures, and so on.
In a SQL statement, what is the purpose of the where clause?
The where clause is used to restrict the data returned from a SQL query.
If the department name for Human
The SQL command update would be used to change the department name. The syntax