June 2020
June 2020
myTest
Part 1:
1
You need to create a table for a banking application. One of the columns in the
table has the following requirements:
• You want a column in the table to store the duration of the credit period.
• The data in the column should be stored in a format such that it can be easily
added and subtracted with date data type without using conversion functions
• The maximum period of the credit provision in the application is 30 days
• The interest has to be calculated for the number of days an individual has taken
a credit for.
Which data type would you use for such a column in the table?
A.
Date Feedback: --------
B.
Timestamp Feedback: --------
C.
Interval Year to Month Feedback: --------
D.
Interval day to second Feedback: --------
Open Rubric
2
Which 3 SQL statements would display the value 1890.55 as $1, 890.55?
A.
1, 2, 4 Feedback: --------
B.
1, 3, 5 Feedback: --------
C.
1, 4, 5 Feedback: --------
D.
2,3, 5 Feedback: --------
1007 2 1
1007 3 1
1007 4 1
1008 1 2
1009 1 1
A.
It gives an error because the having
clause should be specified after the Feedback: --------
GROUP BY clause
B.
It gives an error because all the
aggregate functions used in the HAVING
Feedback: --------
clause must be specified in the SELECT
list.
C.
It displays the item numbers with their
average quantity where the average
Feedback: --------
quantity is more than 0.5 the minimum
quantity of that item in the table
D.
It displays the item numbers with their
average quantity where the average
Feedback: --------
quantity is more than 0.5 the overall
quantity of the items in the table.
Increment by 10
Maxvalue 9999
Nocycle;
The command to create the table fails. What causes the failure?
A.
An error will occur because you cannot
use SYSDATE in the condition of a check Feedback: --------
constraint.
B.
An error will occur because the
BETWEEN clause in the condition of a Feedback: --------
CHECK constraint.
C.
An error will occur because you cannot
use the NEXTVAL sequence value as a Feedback: --------
5
Which of the following keywords allows the user to delete a record from a table,
even if rows in another table reference the record through a FOREIGN KEY
constraints?
A. Cascade Feedback: --------
A.
Alter table customers add constraint
lastname_nn check customer_name is Feedback: --------
not null;
B.
Alter table customers modify constraint
cust_name_nn check lastname is not Feedback: --------
null;
C.
Alter table customers modify lastname Feedback: --------
D.
Alter table customers modify last_name
Feedback: --------
constraints cust_name_nn is not null;
First_name varchar2(25,
Last_name varchar2(25))
A.
Insert into customer values (null, john,
Feedback: --------
‘smith’);
B.
Insert into customer values(first_name,
Feedback: --------
last_name) values (‘john’, ‘smith’)
C.
Insert into customer (first_name,
last_name, customer#) values (1000, Feedback: --------
‘john’,’smith’)
D.
Insert into customer values (1000,
Feedback: --------
‘john’, ‘smith’);
A.
Select isbn, title,
retail
from books
B.
select isbn, title, retail
from books
C.
select isbn, title, retail
from books
from books
Feedback: --------
9
The user Alice wants to grant all users query privileges on her Orders table.
Which SQL statement accomplishes this?
A.
Grant select on Orders to all_users; Feedback: --------
B.
Grant select on Orders to_all; Feedback: --------
C.
Grant query on Orders to_public; Feedback: --------
D.
Grant select on Orders to public; Feedback: --------
A.
Alter role mcain default role
Feedback: --------
customerrep;
B.
Alter user mcain to customerrep; Feedback: --------
C.
Set default role customerrep for mcain; Feedback: --------
D.
Alter user mcain default role
Feedback: --------
custmerrep;
A.
The set of statements contain an error
Feedback: --------
and does not work.
B.
It create a role called SALES, add the
MODIFY privilege on the CUSTOMERS
Feedback: --------
object to the role and gives the SALES
role to the users
C.
It creates a roles called SALES, adds the
UPDATE privilege on the CUSTOMERS
object to the role and gives the SALES
Feedback: --------
role to three users.
D.
It creates a roles called SALES, adds the
UPDATE privilege on the CUSTOMERS
Feedback: --------
object to the role and creates three
users with the role.
12
Which of the following commands eliminates only the user ELPOEZ’s ability to
enter new books in the BOOKS table?
A.
Revoke insert on books from elopez; Feedback: --------
B.
Revoke insert from elopez; Feedback: --------
C.
Revoke insert into from elopez; Feedback: --------
D.
Drop insert into books from elopez;
Feedback: --------
A.
1 and 2 Feedback: --------
B.
2 and 4 Feedback: --------
C.
2 and 3 Feedback: --------
D.
4 and 5
Feedback: --------
A.
1, 2, 3, 4 Feedback: --------
B.
1, 2, 3, 5 Feedback: --------
C.
1, 2, 4, 5 Feedback: --------
D.
1, 2, 5, 6
Feedback: --------
A.
46 and 45 Feedback: --------
B.
46 and 45.93 Feedback: --------
C.
50 and 45.93 Feedback: --------
D.
50 and 45.9 Feedback: --------
A.
1,2,3,4 Feedback: --------
B.
1,3,5,6 Feedback: --------
C.
2, 3, 6, 8 Feedback: --------
D.
2, 4, 7, 8 Feedback: --------
Increment by 10
Maxvalue 200
Cycle
Nocache;
When you execute the sq1 sequence it generate numbers upto a maximum of
200. After issuing the following SQL statement:
A.
1 Feedback: --------
B.
10 Feedback: --------
C.
100 Feedback: --------
D.
An error Feedback: --------
18
You create a sequence as follows:
After selecting from the sequence a few times, you want to reinitialize it to
reissue the numbers already generated. How can you do this?
A.
You must drop and recreate the
Feedback: --------
sequence
B.
You can’t. Under no circumstances can
numbers from a sequence be reissued Feedback: --------
C.
Use the command ALTER SEQ2 START
Feedback: --------
WITH 1; to reset the next value to 1.
D.
Use the command ALTER SEQUENCE
SEQ2 CYCLE; to reset the sequence to
its starting value. Feedback: --------
A.
IOT Feedback: --------
B.
B-tree Feedback: --------
C.
Bitmap Feedback: --------
D.
Function based index Feedback: --------
A.
Branch blocks Feedback: --------
B.
Root block Feedback: --------
C.
Leaf block Feedback: --------
D.
None of the above because the primary
key is used to identify rows
Feedback: --------
A.
1 and 2 Feedback: --------
B.
2 and 3 Feedback: --------
C.
2 and 4 Feedback: --------
D.
1 and 4 Feedback: --------
You want to list all cities that have more than one customer along with the
customer details.
Select c1.lastname
Which two JOIN options can be used in the blank space in the above query to give
the correct output?
1.JOIN
2.NATURAL JOIN
3.LEFT OUTER JOIN
4.FULL OUTER JOIN
5.RIGHT OUTER JOIN
Choose the best combination of the answers
A.
1 and 2
Feedback: --------
B.
1 and 3
Feedback: --------
C.
1 and 4
Feedback: --------
D.
1 and 5 Feedback: --------
23
Which of the following functions can be used to extract a portion of a character
string?
A.
EXTRACT Feedback: --------
B.
TRUNC Feedback: --------
C.
SUBSTR Feedback: --------
D.
INITCAP Feedback: --------
A.
Returns all distinct rows selected by
Feedback: --------
both queries
B.
Returns all distinct rows selected by the
Feedback: --------
first query but not the second
C.
Returns all distinct rows selected
Feedback: --------
by either query
D.
Returns all rows selected by either
Feedback: --------
query, including all duplicates
A.
Feedback: --------
By default the output is not sorted
B.
Null values are not ignored during Feedback: --------
duplicate checking
C.
Names of all columns must be
identical across all select Feedback: --------
statements
D.
The number of columns selected
in all statements need not be the Feedback: --------
same
select avg(max(quantity))
from orderitems
group by item
having avg(max(quantity))>5;
A.
It executes successfully and gives
the correct output Feedback: --------
B.
It gives an error because the
HAVING clause of this query is not
Feedback: --------
valid
C.
It executes successfully but does
not give the correct output Feedback: --------
D.
It gives an error because the Feedback: --------
GROUP BY expression is not valid
A.
The column contain many distinct Feedback: --------
values
B.
The column contain a small Feedback: --------
number of distinct values
C.
A WHERE clause is always used in Feedback: --------
a query on a column
D.
The selectivity on a column can’t Feedback: --------
be determined
2. All indexes and constraints defined on the table being dropped are also
dropped
A.
1, 2 and 6
Feedback: --------
B.
1, 3 and 6
Feedback: --------
C.
1, 4 and 5
Feedback: --------
D.
2, 3 and 4
Feedback: --------
· SALESID: Number
· STOREID: Number
· ITEMID: Number
· QTY: Number, should be set to 1 when no value is specified
A.
CREATE TABLE sales(
salesid NUMBER(4),
storied NUMBER(4),
itemid NUMBER(4),
Feedback: --------
qty NUMBER DEFAULT = 1,
salesid NUMBER(4),
storieId NUMBER(4),
itemid NUMBER(4),
Feedback: --------
qty NUMBER DEFAULT 1,
C.
CREATE TABLE sales(
salesid NUMBER(4),
storieId NUMBER(4),
itemid NUMBER(4),
Feedback: --------
qty NUMBER DEFAULT 1,
salesid NUMBER(4),
storieId NUMBER(4),
CUSTOMER# NUMBER(4)
SHIPDATE DATE
SHIPSTREET VARCHAR2(18)
SHIPCITY VARCHAR2(15)
SHIPSTATE VARCHAR2(2)
SHIPZIP VARCHAR2(5)
SHIPCOST NUMBER(4,2)
Based on the ORDERS table of the JustLee Books database, you want to find the
value of the total shipment of all the orders for each year and you issue the
following command:
GROUP by to_char(orderdate,'YY');
Which statement is true regarding the outcome?
A.
It executes successfully and gives Feedback: --------
the correct output
B.
It gives an error because the Feedback: --------
TO_CHAR function is not valid
C.
It executes successfully but does Feedback: --------
not give the correct output
D.
It gives an error because the data
type conversion in the SELECT list
does not match the data type Feedback: --------
Which of the following three statements are true about the SQL statement.
3. You can roll back the deletion of rows after the statement executes
4. You cannot roll back the deletion of rows after the statement executes
6. You must be the owner of the table or have DELETE ANY TABLE system
privilege to truncate the BOOKS table.
A.
2, 3 and 6 Feedback: --------
B.
2, 4 and 5 Feedback: --------
C.
4, 5 and 6 Feedback: --------
D.
1, 4 and 6 Feedback: --------
32
Where can subqueries be used? Choose the best combination of correct answers.
A.
1, 2, 3 and 6 Feedback: --------
B.
2, 4 and 5 Feedback: --------
C.
3, 4, 5 and 6 Feedback: --------
D.
2, 5 and 6 Feedback: --------
1. String
2. Character
3. Integer
4. Calendar
5. Numeric
6. Translation
7. Date
8. Conversion
A.
1,2,3 and 4 Feedback: --------
B.
2, 4, 5 and 8 Feedback: --------
C.
2, 5, 7 and 8 Feedback: --------
D.
2, 3,6 and 7 Feedback: --------
A.
USER_CONSTRAINTS Feedback: --------
B.
USER_OBJECTS Feedback: --------
C.
ALL_CONSTRAINTS Feedback: --------
D.
USER_CONS_COLUMNS Feedback: --------
ord_date DATE,
cust_id NUMBER(4));
Item_no NUMBER(3),
);
The above SQL statements fail when executed, what could be the reason?
A.
The BETWEEN clause cannot be used
Feedback: --------
with the CHECK constraint
B.
SYSDATE cannot be used with the
Feedback: --------
CHECK constraint
C.
ORD_NO and ITEM_NO cannot be used
as a composite primary key because Feedback: --------
D.
The CHECK constraint cannot be placed
Feedback: --------
on columns having the DATE data type
A.
It removes all the rows as well as the
Feedback: --------
structure of the table
B.
It removes all the rows in the table and
Feedback: --------
the deleted rows cannot be rolled back
C.
It removes all the rows in the table and
Feedback: --------
the deleted rows can be rolled back
D.
It would not remove the rows if the
Feedback: --------
table has a primary key
the ON clause.
A.
It ignores NULL values. Feedback: --------
B.
The number of columns and data
types must be identical for all Feedback: --------
C.
The names of columns in all
SELECT statements must be Feedback: --------
identical.
D.
Reversing the order of the
intersected tables will reverse the Feedback: --------
results.
A.
* Feedback: --------
B.
|| Feedback: --------
C.
[] Feedback: --------
D.
Feedback: --------
""
40
Which of the following commands can be used to view the structure of a table?
A.
SELECT Feedback: --------
B.
DESCRIBE Feedback: --------
C.
CONCATENATION Feedback: --------
D.
TRUNCATE Feedback: --------
A.
SELECT title, retail * 0.2 "New retail
Feedback: --------
price" FROM books
B.
SELECT title, retail + 0.02 "New Feedback: --------
retail price" FROM books
C.
SELECT title, cost * 1.02 "New Feedback: --------
retail price" FROM books
D.
SELECT title, cost * 1.20 "New Feedback: --------
retail price" FROM books
A.
Data Manipulation Language (DML) Feedback: --------
B.
Data Control Language (DCL) Feedback: --------
C.
Data Definition Language (DDL) Feedback: --------
D.
Data Formatting Language (DFL) Feedback: --------
43
Which command instructs Oracle to create a new table from existing data?
A.
CREATE NEW TABLE...………... Feedback: --------
B.
CREATE TABLE …… FROM...……. Feedback: --------
C.
CREATE TABLE ……….AS...…….. Feedback: --------
D.
CREATE TABLE ………... Feedback: --------
A.
ALTER TABLE …….ADD Feedback: --------
B.
ALTER TABLE …...DROP COLUMN Feedback: --------
C.
ALTER TABLE ……...MODIFY Feedback: --------
D.
ALTER TABLE ……...AS Feedback: --------
45
Which of the following commands will display the structure of the CUSTOMERS
table?
A.
DESC TABLE customers Feedback: --------
B.
DESCRIBE customers Feedback: --------
C.
DSC customers Feedback: --------
D.
DESCRIBE TABLE customers Feedback: --------
A.
RENAME oldname TO newname; Feedback: --------
B.
RRENAME table FROM oldname to
Feedback: --------
newname;
C.
ALTER TABLE oldname MODIFY TO
Feedback: --------
newname;
D.
CREATE TABLE newname (SELECT *
Feedback: --------
FROM oldname);
A.
The UNIQUE constraint does not allow
Feedback: --------
NULL values
B.
The UNIQUE constraint can be created
Feedback: --------
either at column level or at table level
C.
The UNIQUE constraint allows NULL
Feedback: --------
values.
D.
The UNIQUE constraint ensures that a
specific condition is true before a data Feedback: --------
A.
FOREIGN KEY Feedback: --------
B.
PRIMARY KEY Feedback: --------
C.
CHECK CONSTRAINT Feedback: --------
D.
UNIQUE CONSTRAINT Feedback: --------
49
Where does the Oracle server store information about objects in the database,
including information about constraints?
A.
In the data reference manual Feedback: --------
B.
In the objects dictionary Feedback: --------
C.
In the data view dictionary Feedback: --------
D.
In the data dictionary Feedback: --------
ISBN VARCHAR2(10)
TITLE VARCHAR2(30)
PUBDATE DATE
PUBID NUMBER(2)
COST NUMBER(5,2)
RETAIL NUMBER(5,2)
DISCOUNT NUMBER(4,2)
CATEGORY VARCHAR2(12)
Which of the following commands will make certain that the ISBN entered in the
ORDERITEMS table actually exists in the ISBN column of the BOOKS table?
A.
ALTER TABLE orderitems ADD FOREIGN
KEY isbn REFERENCES BOOKS TABLE Feedback: --------
(isbn);
B.
ALTER TABLE orderitems MODIFY
FOREIGN KEY (isbn) REFERENCES Feedback: --------
books(isbn);
C.
ALTER TABLE orderitems CREATE
FOREIGN KEY (isbn) REFERENCES Feedback: --------
books(isbn);
D.
ALTER TABLE orderitems ADD FOREIGN
Feedback: --------
KEY (isbn) REFERENCES books(isbn);
A.
ADD Feedback: --------
B.
UPDATE Feedback: --------
C.
INSERT Feedback: --------
D.
RENAME Feedback: --------
52
Which one of the following commands is used to remove rows from a table?
A.
DELETE Feedback: --------
B.
DROP Feedback: --------
C.
REMOVE Feedback: --------
D.
MODIFY Feedback: --------
Which of the following commands will delete only publisher 4 from the PUBLISHER
table?
A.
DELETE FROM publisher Feedback: --------
B.
DELETE pubid = 4 FROM publisher Feedback: --------
C.
DROP FROM publisher WHERE pubid=4 Feedback: --------
D.
DELETE FROM publisher WHERE pubid =
Feedback: --------
4
A.
INSERT INTO publisher VALUES('BOOKS
Feedback: --------
MADE CHEAP', '800-111-2222');
B.
INSERT INTO publisher (pubid,
name) VALUES(6, 'BOOKS MADE Feedback: --------
CHEAP');
C.
UPDATE publisher VALUES('BOOKS
Feedback: --------
MADE CHEAP', '800-111-2222');
D.
UPDATE publisher(pubid, name)
VALUES('BOOKS MADE CHEAP', Feedback: --------
'800-111-2222');
55
Which one of the following commands is used to create a function based index?
A.
CREATE FUNCTION INDEX …..ON Feedback: --------
B.
CREATE INDEX ……...ON Feedback: --------
C.
CREATE INDEX...…..FOR Feedback: --------
D.
CREATE INDEX ………..FUNCTION Feedback: --------
A.
CREATE NEW USER username
Feedback: --------
IDENTIFIED BY password
B.
CREATE USERNAME username IDENTITY
Feedback: --------
password
C.
CREATE USER username PASSWORD
Feedback: --------
password
D.
CREATE USER username IDENTIFIED BY
Feedback: --------
password
A.
DELETE USER username Feedback: --------
B.
DELETE USER username IDENTIFIED BY
Feedback: --------
password
C.
DROP USER username IDENTIFIED BY
Feedback: --------
password
D.
DROP USER username Feedback: --------
58
Which of the following SQL statements will create a new role named PRCLERK?
A.
CREATE prclerk; Feedback: --------
B.
CREATE ROLE prclerk; Feedback: --------
C.
CREATE ROLE as prclerk; Feedback: --------
D.
CREATE prclerk as ROLE; Feedback: --------
A.
The highest ROWNUM values Feedback: --------
B.
A ROWNUM greater than or equal to N Feedback: --------
C.
The lowest ROWNUM values Feedback: --------
D.
A ROWNUM value less than or equal to
Feedback: --------
N
A.
Assign aliases in the subquery and the
Feedback: --------
aliases are used for column names.
B.
Use the ALTER VIEW command to
Feedback: --------
change column names.
C.
Assign names for up to three columns in
the CREATE VIEW clause before the Feedback: --------
D.
None of the above - because columns
cannot be assigned names for a view, Feedback: --------
A.
IN Feedback: --------
B.
ALL Feedback: --------
C.
Feedback: --------
<>
D.
<>ALL Feedback: --------
A.
It determines which publisher published
a book belonging to the oracle category
and then lists all other books published
Feedback: --------
by the same publisher.
B.
It lists all publishers and categories
containing the value oracle.
Feedback: --------
C.
It lists the ISBN and title of all books
belonging to the same category and
having the same publisher as any book
Feedback: --------
with the phrase ORACLE in its title.
D.
None of the above. The query contains
a multiple row operator and because
the inner query only returns one value, Feedback: --------
Which of the following lists only the last four digits of the contact person's phone
numbers at America Publishing?
A.
SELECT EXTRACT (phone, -4,1) FROM
publisher WHERE name = ‘AMERICAN Feedback: --------
PUBLISHING’;
B.
SELECT SUBSTR(phone, -4,1) FROM
publisher WHERE name = ‘AMERICAN Feedback: --------
PUBLISHING’;
C.
SELECT EXTRACT(phone, -1,4) FROM
publisher WHERE name = ‘AMERICAN Feedback: --------
PUBLISHING’;
D.
SELECT SUBSTR(phone, -4,4) FROM
publisher WHERE name = ‘AMERICAN Feedback: --------
PUBLISHING’;
64
Which of the following queries contains an equality join?
A.
SELECT title, authorid FROM books,
bookauthor WHERE books.isbn =
bookauthor.isbn and retail >20; Feedback: --------
B.
SELECT title, name FROM books CROSS
JOIN publisher;
Feedback: --------
C.
SELECT title, gift FROM books,
promotion WHERE retail >= minretail
and retail <= maxretail; Feedback: --------
D.
Feedback: --------
None of the above
A.
SUM Feedback: --------
B.
NVL Feedback: --------
C.
NOT NULL Feedback: --------
D.
MIN Feedback: --------
on BOOKS.ISBN = ORDERITEMS.ISBN
A.
equality Feedback: --------
B.
self join Feedback: --------
C.
non-equality Feedback: --------
D.
outer join Feedback: --------
A.
Single quotation marks (' '). Feedback: --------
B.
Asterisks (* *). Feedback: --------
C.
Percent signs (% %). Feedback: --------
D.
Double quotation marks (" "). Feedback: --------
68
To indicate which database table contains the data to be selected by a query, the
table name should be listed in the ____________clause.
A.
WHERE Feedback: --------
B.
SELECT Feedback: --------
C.
HAVING Feedback: --------
D.
FROM Feedback: --------
A.
ALTER TABLE customers MODIFY (city
Feedback: --------
VARCHAR2(+8), lastname VARCHAR2(+4));
B.
ALTER TABLE customers MODIFY (city
Feedback: --------
VARCHAR2(20), lastname VARCHAR2(14));
C.
ALTER TABLE customers MODIFY (city (+8),
Feedback: --------
lastname (+4));
D.
ALTER TABLE customers MODIFY (city (20),
Feedback: --------
lastname (14));
A.
WITH GRANT OPTION Feedback: --------
B.
WITH ADMIN OPTION Feedback: --------
C.
WITH DBA ROLES Feedback: --------
D.
WITH ASSIGN ROLES Feedback: --------
71
Which of the following is not a type of a constraint in Oracle?
A.
CHECK Feedback: --------
B.
UNIQUE Feedback: --------
C.
REFERENCE Feedback: --------
D.
NOT NULL Feedback: --------
A.
CASCADE Feedback: --------
B.
ON DELETE AUTO REMOVE Feedback: --------
C.
ON DELETE CASCADE Feedback: --------
D.
ON REMOVE CASCAADE Feedback: --------
If a PRIMARY KEY constraint, named ORDERITEMS_PK, exists for the ORDER# and ITEM#
columns of the ORDERITEMS table, which of the following commands will disable the
constraint?
A.
ALTER TABLE orderitems DISABLE PRIMARY
Feedback: --------
KEY CONSTRAINT;
B.
ALTER TABLE orderitems DISABLE PRIMARY
Feedback: --------
KEY CONSTRAINT;
C.
ALTER TABLE orderitems REMOVE PRIMARY
Feedback: --------
KEY CONSTRAINT;
D.
ALTER TABLE orderitems MODIFY PRIMARY
Feedback: --------
KEY CONSTRAINT DISABLE;
Which of the following commands will add a UNIQUE constraint to the MINRETAIL column
of the PROMOTION table?
A.
ALTER TABLE promotion MODIFY UNIQUE
Feedback: --------
(minretail);
B.
ALTER TABLE promotion ADD CONSTRAINT
orderitems_minretail_uk UNIQUE Feedback: --------
(minretail);
C.
ALTER TABLE promotion ADD UNIQUE
Feedback: --------
minretail;
D.
ALTER TABLE promotion MODIFY
Feedback: --------
minretail;
A.
COMMIT Feedback: --------
B.
LOCK TABLE Feedback: --------
C.
BLOCK Feedback: --------
D.
COMMIT TABLE Feedback: --------
76
Evaluate the following SQL statement:
A.
01,230.00 Feedback: --------
B.
230,01.00 Feedback: --------
C.
01,230 Feedback: --------
D.
1,230.00 Feedback: --------
A.
object Feedback: --------
B.
index Feedback: --------
C.
synonym Feedback: --------
D.
sequence Feedback: --------
A.
When using the ORDER BY clause, it
always appears as the last clause in a Feedback: --------
SELECT statement.
B.
The ORDER BY clause may
appear in a SELECT statement Feedback: --------
that does not contain a WHERE
clause.
C.
Positional sorting is
accomplished by specifying the
numeric position of a column as Feedback: --------
D.
The ORDER BY clause
specifies one or more terms by
which the retrieved rows are Feedback: --------
A.
HAVING, WHERE, GROUP BY Feedback: --------
B.
WHERE, GROUP BY, HAVING Feedback: --------
C.
WHERE, HAVING, GROUP BY Feedback: --------
D.
GROUP BY, WHERE, HAVING Feedback: --------
80
Which of the following commands can be used to revoke system or object privileges
previously granted to a user?
A.
UNGRANT Feedback: --------
B.
REMOVE Feedback: --------
C.
REVOKE Feedback: --------
D.
DROP Feedback: --------
Which one of the following statements returns all the fields in the ORDERS table?
A.
SELECT order#, customer#, date,
Feedback: --------
address FROM orders;
B.
SELECT all FROM orders; Feedback: --------
C.
SELECT * FROM orders Feedback: --------
D.
SELECT order#,*,*,*,*,*,*,* FROM orders Feedback: --------
A.
SELECT cost - retail FROM books; Feedback: --------
B.
SELECT retail + cost FROM books; Feedback: --------
C.
SELECT retail^3 from books; Feedback: --------
D.
SELECT retail*retail*retail FROM books; Feedback: --------
A.
CREATE newtable (col1 DATE, col2
Feedback: --------
VARCHAR2);
B.
CREATE TABLE newtable (col1 DATE,
Feedback: --------
col2 VARCHAR2);
C.
CREATE TABLE newtable (SELECT col1,
Feedback: --------
col2 FROM tablename);
D.
CREATE TABLE newtable (col1 DATE
Feedback: --------
DEFAULT SYSDATE, col2 VARCHAR1(1));
A.
DEFAULT_COLUMNS Feedback: --------
B.
USER_TAB_COLUMNS Feedback: --------
C.
DBA_TAB_COLUMNS Feedback: --------
D.
DEF_TAB_COLUMNS Feedback: --------
A.
CREATE TABLE table1
Col4 VARCHAR2(2));
B.
CREATE TABLE table1
(col1 NUMBER,
Col4 VARCHAR2(2));
C.
CREATE TABLE table1
Col2 VARCHAR2(20),
Feedback: --------
Col3 DATE,
(col1 NUMBER,
Col2 VARCHAR2(20),
Feedback: --------
Col3 DATE,
Col4 VARCHAR2(2),
86
Choose a command that can be used to enable a disabled constraint.
A.
ALTER TABLE …………..MODIFY Feedback: --------
B.
ALTER TABLE …………...ADD Feedback: --------
C.
ALTER TABLE ………….DISABLE Feedback: --------
D.
ALTER TABLE …………..ENABLE Feedback: --------
A.
INSERT INTO customes values ('A', 'B',
Feedback: --------
'C');
B.
INSERT INTO customer VALUES (NULL,
Feedback: --------
'A', 'B');
C.
UPDATE customers SET col1 = col3; Feedback: --------
D.
INSERT INTO customer (col3, col1, col2)
Feedback: --------
VALUES (NULL, 'A', 'B');
A.
DROP SYNONYM synonym_name; Feedback: --------
B.
DROP PUBLIC SYNONYM
Feedback: --------
synonym_name;
C.
DELETE SYNONYM synonym_name ; Feedback: --------
D.
DELETE PUBLIC SYNONYM
Feedback: --------
synonym_name;
89
Which of the following can’t be modified with the ALTER SEQUENCE command?
A.
INCREMENT BY Feedback: --------
B.
START WITH Feedback: --------
C.
MINVALUE Feedback: --------
D.
MAXVALUE Feedback: --------
FIRSTNAME LASTNAME
---------- ----------
BONITA MORALES
RYAN THOMPSON
LEILA SMITH
THOMAS PIERSON
CINDY GIRARD
MESHIA CRUZ
TAMMY GIANA
Which of the following includes a customer with the first name BONITA in the
results?
A.
SELECT * FROM customers Feedback: --------
WHERE firstname = ‘B%’;
B.
SELECT* FROM customers Feedback: --------
WHERE firstname = ‘_B%’;
C.
SELECT * FROM customers Feedback: --------
WHERE firstname LIKE ‘%N%’;
D.
SELECT * FROM customers Feedback: --------
WHERE firstname = LIKE ‘%N%’;
FROM customers LEFT OUTER JOIN orders USING (customer#) ORDER BY customer#;
B.
SELECT lastname, firstname, order#
C.
SELECT lastname, firstname, order#
D.
Non of the above.
Feedback: --------
A.
SELECT ROUND (24.37, 2) FROM dual; Feedback: --------
B.
SELECT TRUNC(29.99, 2) FROM dual; Feedback: --------
C.
SELECT ROUND (29.01, -1) FROM dual; Feedback: --------
D.
SELECT TRUNC(29.99, -1) FROM dual; Feedback: --------
93
What is the correct solution for the arithmetic expression 2+8/2*9/3 using the
order of operations employed by Oracle 12c when solving equations?
A.
14 Feedback: --------
B.
15 Feedback: --------
C.
4.8 Feedback: --------
D.
0.1 Feedback: --------
A.
SQL Feedback: --------
B.
SQL* PLUS Feedback: --------
C.
SCRIPT Feedback: --------
D.
COMMAND LINE Feedback: --------
A.
DELETE UNUSED COLUMNS Feedback: --------
B.
DROP UNUSED COLUMNS Feedback: --------
C.
UNSET UNUSED COLUMNS Feedback: --------
D.
DROP SET COLUMNS Feedback: --------
A.
USER_HIDE_COLS Feedback: --------
B.
USER_TABLES Feedback: --------
C.
USER_COLUMNS Feedback: --------
D.
USER_TAB_COLS Feedback: --------
97
Which keyword permanently saves changed data in a table?
A.
COMMIT Feedback: --------
B.
SAVE Feedback: --------
C.
UPDATE Feedback: --------
D.
ADD Feedback: --------
A.
CREATE SYNONYM synonyname IN
Feedback: --------
tablename;
B.
CREATE SYNONYM synonymname ON
Feedback: --------
tablename;
C.
CREATE SYNONYM synonymname
Feedback: --------
REFERENCES tablename;
D.
CREATE SYNONYM synonyname FOR
Feedback: --------
tablename;
A.
TIMESTAMP Feedback: --------
B.
TIMESTAMP WITH TIME ZONE Feedback: --------
C.
TIME STAMP WITH LOCAL TIME ZONE Feedback: --------
D.
iT CANNOT BE DONE Feedback: --------
A.
SESSION_PRIVS Feedback: --------
B.
SYS_PRIVILEGE_MAP Feedback: --------
C.
V$SYSTEM_PRIVILEDGES Feedback: --------
D.
SYSTEM_PRIVILEDGE_MAP Feedback: --------