Professional Documents
Culture Documents
==================================================================================
==========================================
place the alias at the beginning of the statement to describe the table.
place the alias after each column, separated by white space, to describe the
column.
place the alias after each column, separated by a comma, to describe the column.
place the alias at the end of the statement to describe the table.
4.)output from a table called plays with two columns, play_name and author, is
shown below. which of the following sql statements produced it?
play_table
������������-
�midsummer night�s dream", shakespeare
�waiting for godot", beckett
�the glass menagerie", williams
the emacs editor will become the sql*plus default text editor.
the emacs editor will start running immediately.
the emacs editor will no longer be used by sql*plus as the default text editor.
the emacs editor will be deleted from the system.
6.)the user issues the following statement. what will be displayed if the empid
selected is 60494?
true
false
emp
the table containing the column values
dual
an oracle-defined table
avg( )
sqrt( )
sum( )
max( )
ampersand
ellipses
quotation marks
asterisk
12.)a user is setting up a join operation between tables emp and dept. there are
some employees in the emp table that the user wants returned by the query, but the
employees are not assigned to departments yet. which select statement is most
appropriate for this user?
a table named animals will be created in the master schema with the same data as
the animals table owned by anju.
a table named anju will be created in the animals schema with the same data as the
animals table owned by master.
a table named animals will be created in the anju schema with the same data as the
animals table owned by master.
a table named master will be created in the animals schema with the same data as
the anju table owned by animals.
14.)user janko would like to insert a row into the employee table, which has three
columns: empid, lastname, and salary. the user would like to enter data for empid
59694, lastname harris, but no salary. which statement would work best?
insert into employee values (59694,�harris�, null);
insert into employee values (59694,�harris�);
insert into employee (empid, lastname, salary) values (59694,�harris�);
insert into employee (select 59694 from �harris�);
15.)which three of the following are valid database datatypes in oracle? (choose
three.)
char
varchar2
boolean
number
16.)omitting the where clause from a delete statement has which of the following
effects?
the delete statement will fail because there are no records to delete.
the delete statement will prompt the user to enter criteria for the deletion
the delete statement will fail because of syntax error.
the delete statement will remove all records from the table.
true
false
no effect.
the index will be dropped.
the index will be rendered invalid.
the index will contain null values.
true
false
22.)which of the following lines in the select statement below contain an error?
sqrt
decode
new_time
rowidtochar
24.)which two of the following orders are used in order by clauses? (choose two)
abs
asc
desc
disc
select name
from employee
where name like �_a%�;
sal (to_char(to_date(sal,'j'),'jsp'))
--------- -----------------------------------------------------
800 eight hundred
1600 one thousand six hundred
1250 one thousand two hundred fifty
will this query work ?
yes
no
==================================================================================
====================================
section c || time : 90 mins || ques 1-19 -->2.5 marks each, ques 20 -->7.5 marks