DatabaseFinal
Which symbol represents the not equal to condition? A. # B. +' C. != D. ~
!=
Which comparison condition means "Less Than or Equal To"? A. "=)" B. "+<" C. ">=" D. "<="
"<="
When using the LIKE condition, which symbol represents any sequence of characters of any length--zero, one, or more characters? A. _ B.% C. # D. &
%
The f_customers table contains the following data: ID NAME ADDRESS CITY STATE ZIP 1 Cole Bee 123 Main Street Orlando FL 32838 2 Zoe Twee 1009 Oliver Avenue Boston MA 02116 3 Sandra Lee 22 Main Street Tampa FL 32444 If you run the following statement: DELETE FROM F_CUSTOMERS WHERE ID <= 2; How many rows will be left in the table? A. 0 B. 3 C. 1 D. 2
1
In a SELECT clause, what is the result of 2+3*2? A. 6 B. 8 C. 10 D. 13
8
Oracle SQL Developer data modeller offers: A. Capture business rules and information B. Create process, logical, relational and physical models C. Store metadata information in XML files D. Synchronise the relational model with the data dictionary. D. All
All
What would you use in the SELECT clause to return all the columns in the table? A. An asterisk (*) B. A minus sign (-) C. A plus sign (+) D. The ALL keyword
An asterisk
From left to right, what is the correct order of Precedence? A. Arithmetic, Concatenation, Comparison, OR B. NOT, AND, OR, Arithmetic C. Arithmetic, NOT, Logical, Comparison D. Arithmetic, NOT, Concatenation, Logical
Arithmetic, Concatenation, Comparison, OR
____ modelling is the approach taken for creating database based on extracting metadata from an existing database or using the data definition language(ddl) code obtained from an implementation of an existing database.
Bottom up modelling
Which of the following is a valid reason for considering a Subtype Implementation? A. The resulting table will reside in a single database and be used by just ONE user. B. The common access paths for the supertypes are different. C. Business functionality, business rules, access paths, and frequency of access are all very different between the subtypes. D. Most of the relationships are at the supertype level.
Business functionality, business rules, access paths, and frequency of access are all very different between the subtypes.
In a physical data model, an attribute becomes a _____________. A. Table B. Foreign Key C. Constraint D. Column
Column
Which statement best describes how column headings are displayed by default in Oracle Application Express: A. Column headings are displayed left-justified and in lowercase. B. Column headings are displayed left-justified and in uppercase. C. Column headings are displayed centered and in uppercase. D. Column headings are displayed centered and in mixed case.
Column headings are displayed centered and in uppercase.
What are the steps in building an ERD by using Oracle SQL Developer Data Modeller?
Create entities, add attributes and UIDs, Define relationship between entities, set the source and the target values for the relationship
Evaluate this SELECT statement: SELECT * FROM employees WHERE department_id IN(10, 20, 30) AND salary > 20000; Which values would cause the logical condition to return TRUE? A. DEPARTMENT_ID = 10 and SALARY = 20000 B. DEPARTMENT_ID = 20 and SALARY = 20000 C. DEPARTMENT_ID = null and SALARY = 20001 D. DEPARTMENT_ID = 10 and SALARY = 20001
DEPARTMENT_ID = 10 and SALARY = 20001
You need to change the default sort order of the ORDER BY clause so that the data is displayed in reverse alphabetical order. Which keyword should you include in the ORDER BY clause? A. DESC B. ASC C. SORT D. CHANGE
DESC
You need to change the default sort order of the ORDER BY clause so that the data is displayed in reverse alphabetical order. Which keyword should you include in the ORDER BY clause? A. DESC B. ASC C. SORT D. CHANGE
DESC
____ is a business constraint that can be ensured at a server level by using only database language statements, it requires no coding.
Declarative constraint
What will be the result of the SELECT statement and what will display? SELECT last_name, salary, salary + 300 FROM employees; A. Display the last name, salary, and the results of adding 300 to each salary for all the employees B. Display the last name and salary of all employees who have a salary greater than 300. C. Modify the salary column by adding 300 and only display the last name and the new salary. D. Display the last name, salary, and the results of adding 300 to the salary of the first employee row
Display the last name, salary, and the results of adding 300 to each salary for all the employees
Which statement best describes how arithmetic expressions are handled? A. Addition operations are handled before any other operations. B. Multiplication and subtraction operations are handled before any other operations. C. Multiplication and addition operations are handled before subtraction and division operations. D. Division and multiplication operations are handled before subtraction and addition operations.
Division and multiplication operations are handled before subtraction and addition operations.
A foreign key cannot refer to a primary key in the same table. True or False?
False
A table must have a primary key. True or False?
False
A table must have at least one candidate key, as well as its primary key. True or False?
False
Attributes become tables in a database. True or False?
False
Foreign keys must be null. True or False?
False
If you write queries using the BETWEEN operator, it does not matter in what order you enter the values, i.e. BETWEEN low value AND high value will give the same result as BETWEEN high value and low value. True or False?
False
In the Analysis phase, the tables are created and populated with test data. True or False?
False
It is possible to implement non-transferability via a simple Foreign Key Relationship. True or False?
False
Once you have created a table, it is not possible to alter the definition of it. If you need to add a new column you must delete the table definition and create a new, correct table. True or False?
False
One-to-One relationships are transformed into Check Constraints in the tables created at either end of that relationship. True or False?
False
System Documentation is developed right at the end once the system has gone live and users have been using it for a little while. You are more likely to get it correct that way. True or False?
False
The DESCRIBE command returns all rows from a table. True or False?
False
The Oracle Database can implement a many-to-many relationship. You simply create two foreign keys between the two tables. True or False?
False
The explanation below is a User Defined integrity rule and must, therefore, be manually coded; the Database cannot enforce this rule automatically. True or False? A primary key must be unique, and no part of the primary key can be null.
False
When translating an arc relationship to a physical design, you must turn the arc relationships into foreign keys. Assuming you are implementing an Exclusive Design, you must also create two Unique Key Constraints to ensure the Arc is implemented correctly. True or False?
False
_____ is the process of transforming a logical data model to a relational data model.
Forward Engineering
Evaluate this SELECT statement: SELECT * FROM employees WHERE department_id = 34 OR department_id = 45 OR department_id = 67; Which operator is the equivalent of the OR conditions used in this SELECT statement? A. IN B. AND C. LIKE D. BETWEEN ... AND ...
IN
What command can be used to create a new row in a table in the database? A. CREATE B. NEW C. ADD D. INSERT
INSERT
To resolve a many to many relationship in a physical model you create a/an ___________________? A. Unique key constraints B. Intersection entity C. Intersection table D. Two tables with Foreign key constraints between them
Intersection table
If a SQL statement returns data from two or more tables, which SQL capability is being used? A. Selection B. Projection C. Joining D. Insertion
Joining
Which comparison operator searches for a specified character pattern? A. IN B. LIKE C. BETWEEN...AND... D. IS NULL
LIKE
The Concatenation Operator does which of the following? A. Links rows of data together inside the database. B. Links two or more columns or literals to form a single output column C. Is represented by the asterisk (*) symbol D. Separates columns.
Links two or more columns or literals to form a single output column
The SELECT statement retrieves information from the database. In a SELECT statement, you can do all of the following EXCEPT: A. Projection B. Manipulation C. Joining D. Selection
Manipulation
Which of the following best describes the meaning of the LIKE operator? A. Display rows based on a range of values. B. To test for values in a list. C. Match a character pattern. D. To find Null values.
Match a character pattern.
In an Oracle database, why would 1_TABLE not work as a table name? A. The database does not understand all capital letters. B. There is no problem here. You can create a table called 1_TABLE. C. Object names must not start with a number. They must begin with a letter. D. TABLE is a reserved word.
Object names must not start with a number. They must begin with a letter.
In an Oracle database, why would 1_TABLE not work as a table name? A. The database does not understand all capital letters. B. There is no problem here. You can create a table called 1_TABLE. C. Object names must not start with a number. They must begin with a letter. D. TABLE is a reserved word.
Object names must not start with a number. They must begin with a letter.
Evaluate this SELECT statement: SELECT (salary * raise_percent) raise FROM employees; If the RAISE_PERCENT column only contains null values, what will the statement return? A. Only zeroes B. Only null values C. A null value or a zero depending on the value of the SALARY column D. A null value or a numeric value depending on the value of the SALARY column
Only null values
When you use the SELECT clause to list one or two columns only from a table and no WHERE clause, which SQL capability is used? A. Joining only B. Selection only C. Projection only D. Projection and Selection
Projection only
When you use the SELECT clause to list one or two columns only from a table and no WHERE clause, which SQL capability is used? A. Joining only B. Selection only C. Projection only D. Projection and Selection
Projection only
____ is the process of creating a conceptual or logical model by extracting the information from an existing data source.
Reverse Engineering
What command will return data from the database to you? A. FETCH B. GET C. SELECT D. RETURN
SELECT
What command will return data from the database to you? A. FETCH B. GET C. SELECT D. RETURN
SELECT
Which SELECT statement should you use to limit the display of product information to those products with a price of less than 50? A. SELECT product_id, product_name FROM products WHERE price < 50; B. SELECT product_id, product_name FROM products HAVING price < 50; C. SELECT product_id, product_name FROM products WHERE price <= 50; D. SELECT product_id, product_name FROM products GROUP BY price < 50; E. SELECT product_id, product_name FROM products WHERE price < 50.00 GROUP BY price;
SELECT product_id, product_name FROM products WHERE price < 50;
You query the database with this SQL statement: SELECT * FROM transaction WHERE product_id = 4569; Which SQL SELECT statement capabilities are achieved when this statement is executed? A. Selection only B. Projection only C. Selection and projection only D. Projection, selection and joining
Selection and projection only
The EMPLOYEES table contains these columns: SALARY NUMBER(7,2) BONUS NUMBER(7,2) COMMISSION_PCT NUMBER(2,2) All three columns contain values greater than zero. There is one row of data in the table and the values are as follows: Salary = 500, Bonus = 50, Commission_pct = .5 Evaluate these two SQL statements: 1. SELECT salary + bonus + commission_pct * salary - bonus AS income FROM employees; 2. SELECT (salary + bonus ) + commission_pct * (salary - bonus) income FROM employees; What will be the result? A. Statement 1 will return a higher value than statement 2 B. Statement 2 will return a higher value than statement 1. C. Statement 1 will display a different column heading. D. One of the statements will NOT execute.
Statement 2 will return a higher value than statement 1.
Entity integrity refers to: A. Tables always containing text data B. Tables always containing numeric data C. Columns having Primary Keys, Foreign Keys, Unique Keys, and Check constraints defined in the database. D. Tables having Primary Keys, Foreign Keys, Unique Keys, and Check constraints defined in the database.
Tables having Primary Keys, Foreign Keys, Unique Keys, and Check constraints defined in the database.
____ modelling is best suited for adapting a database to new requirements.
Target modelling
Evaluate this SELECT statement: SELECT last_name, first_name, salary FROM employees; How will the results of this query be sorted? A. The database will display the rows in whatever order it finds it in the database, so no particular order. B. The results will be sorted ascending by the LAST_NAME column only. C. The results will be sorted ascending by LAST_NAME and FIRST_NAME only. D. The results will be sorted ascending by LAST_NAME, FIRST_NAME, and SALARY.
The database will display the rows in whatever order it finds it in the database, so no particular order.
Which statement about the default sort order is true? A. The lowest numeric values are displayed last. B. The earliest date values are displayed first. C. Null values are displayed first. D. Character values are displayed in reverse alphabetical order.
The earliest date values are displayed first.
Which statement about the logical operators is true? A. The order of operator precedence is AND, OR, and NOT. B. The order of operator precedence is AND, NOT, and OR. C. The order of operator precedence is NOT, OR, and AND. D. The order of operator precedence is NOT, AND, and OR.
The order of operator precedence is NOT, AND, and OR.
The ORDER BY clause always comes last. True or False?
True
The explanation below is a column integrity constraint. True or False? A column must contain only values consistent with the defined data format of the column.
True
The transformation from an ER diagram to a physical design involves changing terminology. Secondary Unique Identifiers become A. Columns B. Tables C. Unique Constraints D. Primary Key Constraints
Unique Constraints
The transformation from an ER diagram to a physical design involves changing terminology. Secondary Unique Identifiers become: A. Columns B. Tables C. Unique Constraints D. Primary Key Constraints
Unique Constraints
The text below is an example of what constraint type? If the number of BOOKS lent to a BORROWER in the LIBRARY exceeds 5, then we must send him a letter requesting the return of the BOOKS; this will require extra programming to enforce. A. Entity integrity B. User-defined integrity C. Column integrity D. Referential integrity
User-defined integrity
The text below is an example of what constraint type? If the number of BOOKS lent to a BORROWER in the LIBRARY exceeds 5, then we must send him a letter requesting the return of the BOOKS; this will require extra programming to enforce. A. Entity integrity B. User-defined integrity C. Column integrity D. Referential integrity
User-defined integrity
The _______ clause can be added to a SELECT statement to return a subset of the data. A. ANYWHERE B. WHICH C. WHERE D. EVERY
WHERE
Which clause would you include in a SELECT statement to restrict the data returned to only the employees in department 10? A. WHERE B. FROM C. SELECT D. IS
WHERE
You want to determine the orders that have been placed by customers who reside in the city of 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? A. AND city = Chicago; B. AND city = 'Chicago'; C. WHERE city = 'Chicago'; D. WHERE city = Chicago;
WHERE city = 'Chicago';
You need to display employees whose salary is in the range of 10000 through 25000 for employees in department 50 . What does the WHERE clause look like? A. WHERE department_id < 50 AND salary BETWEEN 10000 AND 25000 B. WHERE department_id > 50 AND salary BETWEEN 10000 AND 25000 C. WHERE department_id = 50 AND salary BETWEEN 25001 AND 10001 D. WHERE department_id = 50 AND salary BETWEEN 10000 AND 25000
WHERE department_id = 50 AND salary BETWEEN 10000 AND 25000
What value will the following SQL statement return? SELECT employee_id FROM employees WHERE employee_id BETWEEN 100 AND 150 OR employee_id IN(119, 175, 205) AND (employee_id BETWEEN 150 AND 200); A. 19 B. No rows will be returned C. 100, 101, 102, 103, 104, 107, 124, 141, 142, 143, 144, 149 D. 200, 201, 202, 203, 204, 205, 206
100, 101, 102, 103, 104, 107, 124, 141, 142, 143, 144, 149
You query the database with this SQL statement: SELECT price FROM products WHERE price IN(1, 25, 50, 250) AND (price BETWEEN 25 AND 40 OR price > 50); Which two values could the statement return? (Choose two.) A. 1 B. 50 C. 25 D. 10 E. 250
25, 250
You need to display employees with salaries that are at least 30000 or higher. Which comparison operator should you use? A. > B. "=>" C. >= D. !=
>=
Which of the following elements cannot be include d in a WHERE clause? A. A column alias B. A column name C. A comparison condition D. A constant
A column alias
Which of the following elements cannot be included in a WHERE clause? A. A column alias B. A column name C. A comparison condition D. A constant
A column alias
You want to create a list of all albums that have been produced by the company. The list should include the title of the album, the artist's name, and the date the album was released. The ALBUMS table includes the following columns: ALB_TITLE VARCHAR2(150) NOT NULL ALB_ARTIST VARCHAR2(150) NOT NULL ALB_DATE DATE NOT NULL Which statement can you use to retrieve the necessary information? A. SELECT FROM albums; B. SELECT alb_title, alb_artist, alb_dates FROM album; C. SELECT alb_title, alb_artist, alb_dates FROM albums; D. SELECT alb_title; alb_artist; alb_date FROM albums;
SELECT FROM albums;
The PLAYERS table contains these columns: PLAYER_ID NUMBER(9) LAST_NAME VARCHAR2(20) FIRST_NAME VARCHAR2 (20) TEAM_ID NUMBER (4) MANAGER_ID NUMBER (9) POSITION_ID NUMBER (4) Which SELECT statement should you use if you want to display unique combinations of the TEAM_ID and MANAGER_ID columns? SELECT * FROM players; A. SELECT team_id, manager_id FROM players; B. SELECT DISTINCT team_id, manager_id FROM players; C. SELECT team_id, DISTINCT manager_id FROM players; D. SELECT team_id, manager_id DISTINCT FROM players;
SELECT DISTINCT team_id, manager_id FROM players;
You need to create a report to display all employees that were hired on or before January 1, 1996. The data should display in this format: Employee Start Date and Salary 14837 - Smith 10-MAY-1992 / 5000 Which SELECT statement could you use? A. SELECT employee_id || - || last_name "Employee", hire_date || / || salary "Start Date and Salary FROM employees WHERE hire_date <= '01-JAN-1996'; B. SELECT employee_id ||' '|| last_name "Employee", hire_date ||' '|| salary "Start Date and Salary" FROM employees WHERE hire_date <= 01-JAN-1996'; C. SELECT employee_id ||'"- "|| last_name "Employee", hire_date ||" / "|| salary Start Date and Salary" FROM employees WHERE hire_date <= '01-JAN-1996'; D. SELECT employee_id ||' - '|| last_name 'Employee', hire_date ||' / '|| salary 'Start Date and Salary" FROM employees WHERE hire_date <= '01-JAN-1996'; E. SELECT employee_id ||' - '|| last_name "Employee", hire_date ||' / '|| salary
SELECT employee_id ||' - '|| last_name "Employee", hire_date ||' / '|| salary "Start Date and Salary" FROM employees WHERE hire_date <= '01-JAN-1996';
You need to create a report to display all employees that were hired on or before January 1, 1996. The data should display in this format: Employee Start Date and Salary 14837 - Smith 10-MAY-1992 / 5000 Which SELECT statement could you use? A. SELECT employee_id || - || last_name "Employee", hire_date || / || salary "Start Date and Salary FROM employees WHERE hire_date <= '01-JAN-1996'; B. SELECT employee_id ||' '|| last_name "Employee", hire_date ||' '|| salary "Start Date and Salary" FROM employees WHERE hire_date <= 01-JAN-1996'; C. SELECT employee_id ||'"- "|| last_name "Employee", hire_date ||" / "|| salary Start Date and Salary" FROM employees WHERE hire_date <= '01-JAN-1996'; D. SELECT employee_id ||' - '|| last_name 'Employee', hire_date ||' / '|| salary 'Start Date and Salary" FROM employees WHERE hire_date <= '01-JAN-1996'; E. SELECT employee_id ||' - '|| last_name "Employee", hire_date ||
SELECT employee_id ||' - '|| last_name "Employee", hire_date ||' / '|| salary "Start Date and Salary" FROM employees WHERE hire_date <= '01-JAN-1996';
The PLAYERS table contains these columns: PLAYERS TABLE: LAST_NAME VARCHAR2 (20) FIRST_NAME VARCHAR2 (20) SALARY NUMBER(8,2) TEAM_ID NUMBER(4) MANAGER_ID NUMBER(9) POSITION_ID NUMBER(4) You want to display all players' names with position 6900 or greater. You want the players names to be displayed alphabetically by last name and then by first name. Which statement should you use to achieve the required results? A. SELECT last_name, first_name FROM players WHERE position_id >= 6900 ORDER BY last_name, first_name; B. SELECT last_name, first_name FROM players WHERE position_id > 6900 ORDER BY last_name, first_name; C. SELECT last_name, first_name FROM players WHERE position_id <= 6900 ORDER BY last_name, first_name; D. SELECT last_name, first_name FROM players WHERE position_id >= 6900 ORDER BY last_name DESC, first_name;
SELECT last_name, first_name FROM players WHERE position_id >= 6900 ORDER BY last_name, first_name;
The EMPLOYEES table includes these columns: EMPLOYEE_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(15) NOT NULL FIRST_NAME VARCHAR2(10) NOT NULL HIRE_DATE DATE NOT NULL You want to produce a report that provides the last names, first names, and hire dates of those employees who were hired between March 1, 2000, and August 30, 2000. Which statements can you issue to accomplish this task? A. SELECT last_name, first_name, hire_date FROM employees WHERE hire_date BETWEEN '01-MAR-2000' AND '30-AUG-2000'; B. SELECT last_name, first_name, hire_date FROM employees WHERE hire_date BETWEEN '30-AUG-2000' AND '01-MAR-2000'; C. SELECT last_name, first_name, hire_date FROM employees GROUP BY hire_date >= '01-MAR-2000' and hire_date <= '30- AUG-2000'; D. SELECT last_name, first_name, hire_date FROM employees AND hire_date >= '01-MAR-2000' and hire_date <= '30-AUG-2000';
SELECT last_name, first_name, hire_date FROM employees WHERE hire_date BETWEEN '01-MAR-2000' AND '30-AUG-2000';
The PLAYERS table contains these columns: PLAYERS TABLE: LAST_NAME VARCHAR2 (20) FIRST_NAME VARCHAR2 (20) SALARY NUMBER(8,2) TEAM_ID NUMBER(4) MANAGER_ID NUMBER(9) POSITION_ID NUMBER(4) You must display the player name, team id, and salary for players whose salary is in the range from 25000 through 100000 and whose team id is in the range of 1200 through 1500. The results must be sorted by team id from lowest to highest and then further sorted by salary from highest to lowest. Which statement should you use to display the desired result? A. SELECT last_name, first_name, team_id, salary FROM players WHERE (salary > 25000 OR salary < 100000) AND team_id BETWEEN 1200 AND 1500 ORDER BY team_id, salary; B. SELECT last_name, first_name, team_id, salary FROM players WHERE salary BETWEEN 25000 AND 100000 AND team_id BETWEEN 1200 AND 1500 ORDER BY team_id, salary DESC; C. SELECT last_name, first_name, team_
SELECT last_name, first_name, team_id, salary FROM players WHERE salary BETWEEN 25000 AND 100000 AND team_id BETWEEN 1200 AND 1500 ORDER BY team_id, salary DESC;
Which of the following commands will display the last name concatenated with the job ID from the employees table, separated by a comma and space, and label the resulting column "Employee and Title"? A. SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM employees; B. SELECT last_name||', '|| job_id "Employee and Title" FROM employees; C. SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM emp; D. SELECT last_name||","|| job_id "Employee and Title" FROM employees;
SELECT last_name||', '|| job_id "Employee and Title" FROM employees;
Which of the following commands will display the last name concatenated with the job ID from the employees table, separated by a comma and space, and label the resulting column "Employee and Title"? A. SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM employees; B. SELECT last_name||', '|| job_id "Employee and Title" FROM employees; C. SELECT " last name" ||', '|| "job_id" + "Employee and Title" FROM emp; D. SELECT last_name||","|| job_id "Employee and Title" FROM employees;
SELECT last_name||', '|| job_id "Employee and Title" FROM employees;
Which SELECT statement will display both unique and non-unique combinations of the MANAGER_ID and DEPARTMENT_ID values from the EMPLOYEES table? A. SELECT manager_id, department_id DISTINCT FROM employees; B. SELECT manager_id, department_id FROM employees; C. SELECT DISTINCT manager_id, department_id FROM employees; D. SELECT manager_id, DISTINCT department_id FROM employees;
SELECT manager_id, department_id FROM employees;
Evaluate this SELECT statement: SELECT * FROM employees WHERE salary > 30000 AND department_id = 10 OR email IS NOT NULL; Which statement is true? A. The OR condition will be evaluated before the AND condition. B. The AND condition will be evaluated before the OR condition. C. The OR and AND conditions have the same precedence and will be evaluated from left to right D. The OR and AND conditions have the same precedence and will be evaluated from right to left
The AND condition will be evaluated before the OR condition.
In which clause of a SELECT statement would you specify the name of the table or tables being queried? A. The FROM clause B. The SELECT clause C. The WHERE clause D. Any of the above options; you can list tables wherever you want in a SELECT statement.
The FROM clause
Evaluate this SELECT statement: SELECT last_name, first_name, salary FROM employees; How will the heading for the FIRST_NAME column appear in the display by default in Oracle Application Express? A. The heading will display with the first character capitalized and centered. B. The heading will display with the first character capitalized and left justified. C. The heading will display as uppercase and centered. D. The heading will display as uppercase and left justified.
The heading will display as uppercase and centered.
Which statement about the logical operators is true? A. The order of operator precedence is AND, OR, and NOT. B. The order of operator precedence is AND, NOT, and OR. C. The order of operator precedence is NOT, OR, and AND. D. The order of operator precedence is NOT, AND, and OR.
The order of operator precedence is NOT, AND, and OR.
Evaluate this SQL statement: SELECT product_id, product_name, price FROM products ORDER BY product_name, price; What occurs when the statement is executed? A. The results are sorted numerically only. B. The results are sorted alphabetically only. C. The results are sorted numerically and then alphabetically. D. The results are sorted alphabetically and then numerically.
The results are sorted alphabetically and then numerically.
The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(9) PK LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) DEPARTMENT_ID NUMBER(9) Compare these two SQL statements: 1. SELECT DISTINCT department_id DEPT, last_name, first_name FROM employees ORDER BY department_id; 2. SELECT department_id DEPT, last_name, first_name FROM employees ORDER BY DEPT; How will the results differ? A. One of the statements will return a syntax error. B. One of the statements will eliminate all duplicate DEPARTMENT_ID values. C. There is no difference in the result between the two statements. D. The statements will sort on different column values.
The statements will sort on different column values.
______modelling is the approach taken for designing a new database
Top down modelling
What are the three approaches to data modelling
Top down modelling, bottom up modelling, target modelling
During which phases of the System Development Life Cycle would you test the system before rolling it out to the users? A. Build and Transition B. Strategy and Analysis C. Design and Production D. Transition and Production
Transition and Production
A relational model is closer to the implementation solution. True or False
True
The EMPLOYEES table contains these columns: LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) EMAIL VARCHAR2(50) You are writing a SELECT statement to retrieve the names of employees that have an email address. SELECT last_name||', '||first_name "Employee Name" FROM employees; Which WHERE clause should you use to complete this statement? A. WHERE email = NULL; B. WHERE email != NULL; C. WHERE email IS NULL; D. WHERE email IS NOT NULL;
WHERE email IS NOT NULL;
Which statement about the ORDER BY clause is true? A. You can use a column alias in the ORDER BY clause. B. The default sort order of the ORDER BY clause is descending. C. The ORDER BY clause can only contain columns that are included in the SELECT list. D. The ORDER BY clause should immediately precede the FROM clause in a SELECT statement
You can use a column alias in the ORDER BY clause.
Which statement about the ORDER BY clause is true? A. You can use a column alias in the ORDER BY clause. B. The default sort order of the ORDER BY clause is descending. C. The ORDER BY clause can only contain columns that are included in the SELECT list. D. The ORDER BY clause should immediately precede the FROM clause in a SELECT statement
You can use a column alias in the ORDER BY clause.
When using the LIKE condition to search for _ symbols, which character can you use as the default ESCAPE option? A. % B. ^ C. & D. \
\
You need to combine the FIRST_NAME and LAST_NAME columns in the EMPLOYEES table and display the columns as a combined character string. Which operator should you use? A. + B. | C. || D. AND
||