click below
click below
Normal Size Small Size show me how
F4 IT0119
| Question | Answer |
|---|---|
| Which among the following is not considered a database transaction? | One data definition statement |
| Using figure 7.2, what SQL statement will show the city and the highest salary of the salesman when they are grouped based on their city. | select city, max(salary) from salesman group by city; |
| You can add multiple rows to a table using a single insert statement. | True |
| A database transaction consists of one DCL statement. | False |
| Using figure 7.1, what is the SQL code to insert a new record in the salesman table? | insert into salesman (salesman_id) values (6000); |
| To create a marker in the current transaction, rollback is used. | False |
| Using the syntax to insert a row below: INSERT INTO table [(column [, column...])] VALUES (value [, value...]); What is the column part? | it is the name of the column in the table to populated |
| The check option command in creating a view works only for updateable views. | True |
| Using figure 7.2, what SQL statement will show the name of the salesman and city whose city has an ‘I’ letter in between, capital letter or not. | select sname, city from salesman where city like '%i%' or city like '%I%'; select sname, city from salesman where city like '%i%'; |
| What is the clause of the select statement where in it indicates the tables or views from which data will be obtained? | from |
| What is the clause of the select statement where in it indicates the conditions under which a row will be included in the result? | where |
| Using figure 7.1, the SQL code: update salesman set commission = 0.25 where city = 5700; , will change all the commission of the city that is empty or null. | False |
| In read consistency, changes made by one user do not conflict with the changes made by another user. | True |
| The update statement modifies existing values in a table | True |
| A database transaction consists of one DDL statement. | True |
| Before the changes are committed to the database, only the user who is modifying the data sees the database with the alterations. | True |
| Using figure 7.1, which among the SQL statement is going to change the salary to 19000 and commission to 0.15 of the salesman named Cambrault? | update salesman set salary = 19000, commission = 0.15 where sname = ‘Cambrault’; |
| In the savepoint statement, all the locks of the affected rows are released. | False |
| A DML statement is executed when adding rows, modifying existing rows, and removing existing rows from a table | True |
| What is a type of privilege that can manipulate the contents of the database objects? | object privilege |
| A user can have access to several roles, and several users can be assigned the same role. | True |
| What are collection of objects such as tables, views and sequences? | schemas |
| Fine tuning with group by and having clauses is needed in queries. | True |
| select d.department_name,e.employee_id from departments d, cemployees e where d.department_id = e.department_id and e.commission_pct is not null order by e.EMPLOYEE_ID; will show the department name and the employee ids of the employees | False |
| What is an equi-join in which one of the duplicate columns is eliminated in the result table? | natural join |
| The DBA creates the user by executing the CREATE USER statement. | True |
| Users require system privileges to gain access to the database. | True |
| Oracle server database security cannot confirm given and received privileges with Oracle data dictionary. | False |
| Instead of SELECT *, identify the specific attributes in the SELECT clause for query efficiency. | True |
| Using figure 8.3, what SQL statement will show the department name and employee id of employee ids 101 and 102? | select dept.department_name, e.employee_id from departments dept inner join employees e on dept.department_id = e.department_id and e.employee_id in (101,102); |
| A role is a named group of related privileges that can be granted to the user. This method makes it easier to revoke and maintain privileges. | True |
| An object privilege provides the user the ability to perform a particular action on a specific schema object | True |
| Users require object privileges to gain access to the database. | False |
| Users can also be given the privilege to grant additional privileges to other users or to roles, which are named groups of related privileges. | True |
| The left outer join returns all records from the outer table and the matching records returned from the joined table. | True |
| Understanding how indexes are used in query processing makes a better query design. | True |
| Which code will allow user A and B to make virtual tables? | GRANT CREATE VIEW TO A,B; |
| Which among the following codes will create a user name Michelle_Admin with a password of MA_123 | Create user Michelle_Admin identified by MA_123; |
| What is a relational operation that causes two or more tables with a common domain to be combined into a single table or view. | Join |