bazeee hatz

February 3, 2018 | Author: Demiii | Category: Sql, Table (Database), Information Retrieval, Databases, Software
Share Embed Donate


Short Description

baze de date...

Description

The text below is an example of what constraint type: The value in the manager_id column of the EMPLOYEES table must match a value in the employee_id column in the EMPLOYEES table. (4) Referential integrity A table must have at least one candidate key, as well as its primary key. True or False? (2) False A table must have a primary key. True or False? (2) False If a primary key is a set of columns then one column must be null. True or False? (2) False Attributes become tables in a database. True or False? (2) False In a physical data model, an attribute becomes a _____________. (4) Column The transformation from an ER diagram to a physical design involves changing terminology. Primary Unique Identifiers in the ER diagram become __________ and relationships become ____________. (2) Primary keys, Foreign keys The Oracle Database can implement a many to many relationship. You simply create two foreign keys between the two tables. True or False? (2) False Many to many relationships are implemented via a structure called a: ________________ (2) Intersection Table An "Arc Implementation" can be done just like any other Relationship - you simply add the required Foreign Keys. True or False? (2) False What command will return data from the database to you? (3) SELECT The DESCRIBE command returns all rows from a table. True or False? (2) False What command can be used to create a new row in a table in the database?

(4) INSERT The f_customers table contains the following data: ID

Name Address

City

State

Zip

1

Cole Bee

123 Main Street

Orlando

FL

2

Zoe Twee

1009 Oliver Avenue

Boston MA

02116

3

Sandra Lee

22 Main Street

Tampa FL

32444

32838

If you run the following statement: DELETE FROM F_CUSTOMERS WHERE ID = You need to display employees whose salary is in the range of 30000 and 50000. Which comparison operator should you use? (3) BETWEEN...AND... Which symbol represents the not equal to condition? (3) != The Concatenation Operator does which of the following? (2) Links two or more columns or literals to form a single output column You need to display all the rows in the EMPLOYEES table that contain a null value in the DEPARTMENT_ID column. Which comparison operator should you use? (4) IS NULL What does the DISTINCT keyword do when it is used in a SELECT clause? (3) Eliminates duplicate rows in the result You need to display all the values in the EMAIL column that contains the underscore (_) character as part of that email address. The WHERE clause in your SELECT statement contains the LIKE operator. What must you include in the LIKE operator? (4) The ESCAPE option (\) You need write a SELECT statement that should only return rows that contain 34, 46, or 48 for the DEPARTMENT_ID column. Which operator should you use in the WHERE clause to compare the DEPARTMENT_ID column to this specific list of values? (3) IN You want to determine the orders that have been placed by customers who reside in Chicago. You write this partial SELECT statement: SELECT orderid, orderdate, total FROM orders; What should you include in your SELECT statement to achieve the desired results?

(3) WHERE city = 'Chicago'; What will be the result of the SELECT statement and what will display? SELECT last_name, salary, salary + 300 FROM employees; (1) Display the last name, salary and the results of adding 300 to each salary for all the employees When is an entity in 2nd Normal Form? (1) When all non-UID attributes are dependent upon the entire UID. Would it be a good idea to model age as an attribute of STUDENT? (4) No - it breaks the Normalization rules Which comparison condition means "Less Than or Equal To"? (4) "
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF