0% found this document useful (0 votes)
5 views52 pages

Oracle V5 Questions

Uploaded by

Leng Hongmeng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views52 pages

Oracle V5 Questions

Uploaded by

Leng Hongmeng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 52

គំរូសំណួ រសម្រាប់សាស្ត្រា ចារ្យ

ផ្ក៖
……………………………………………
មុខវិជ្ជា ៖……………………………………….. Font : Khmer OS Siemreap
ឆ្នាំ៖……………………………………………..
វេន៖……………………….…………………… ចំលើយដែរត្រឹមត្រូវសូមដាក់ពណ៌
ឈ្មោះសាស្តាចារ្យ៖
………………………………
Question type

លរ សំណួ រ ចម្លើយ ចម្លើយ ចម្លើយ ចម្លើយ

Which of the following statement is 1 KB = 1024 1 MB=2048 1 MB = 1000 1 KB = 1000


1
correct? bytes bytes kilobytes bytes
Which among the following is not a
2 peripheral hardware device in a computer Keyboard Optical Drive HDD Printer
system?
Devices which are used to receive data
output/input digital signaled
3 from central processing unit are classified output devices
devices devices devices
as
Computer which can perform quadrillion Supercompu Personal
4 PLC Automobile
instruction per second is termed as ter Computer
Devices which are used to receive data
output/input digital signaled
5 from central processing unit are classified output devices
devices devices devices
as
What is the shortcut key to “Undo” the
6 Hiding Bordering Cropping Cutting
last action in a document?

The process of removing unwanted part of


7 Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E
an image is called

To apply center alignment to a paragraph


8 Keyboard Plotter Scanner OMR
we can press
A light sensitive device that converts
9 drawing, printed text or other images into Input Input/Output Software Output
digital form is
What type devices are computer speakers Mouse, Mouse, Mouse, Mouse,
10 Keyboard, Keyboard, Keyboard, Keyboard,
or headphones? Monitor Printer Plotter Scanner

Which of the following groups consists of


11 Input Output Software Storage
only input devices?

View or print
12 What type of device is a digital camera? Input data Store data Scan data
data

13 A bar code reader is an example of Keyboard Optical Drive HDD Printer


output/input digital signaled
14 Using output devices one can ____ output devices
devices devices devices

Which of the following is not an example Supercompu Personal


15 PLC Automobile
of hardware? ter Computer

Which provides the fastest data access output/input digital signaled


16 output devices
time? devices devices devices

Which of the following devices displays


17 Hiding Bordering Cropping Cutting
information to a user?
Devices that enter information and let you
18 communicate with the computer are Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E
called:

19 A printer is a type of device used for Input Input/Output Software Output

The basic goal of computer process is to Mouse, Mouse, Mouse, Mouse,


20 Keyboard, Keyboard, Keyboard, Keyboard,
convert data into Monitor Printer Plotter Scanner

22 Scanner Input Output Software Storage

View or print
23 CPU Stand for Input data Store data Scan data
data

24 CPU ភ្ជា ប់ទៅ motherboard តាមរយៈ Keyboard Optical Drive HDD Printer

output/input digital signaled


25 RAM Stand for output devices
devices devices devices

Supercompu Personal
26 RAM ភ្ជា ប់ទៅកាន់ Motherboard តាមរយៈ PLC Automobile
ter Computer

output/input digital signaled


27 What is Hard Drive? output devices
devices devices devices

28 SSD Stand for Hiding Bordering Cropping Cutting

29 Flash Memory (USB) Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E

31 USB stand for Input Input/Output Software Output

Mouse, Mouse, Mouse, Mouse,


32 NIC Keyboard, Keyboard, Keyboard, Keyboard,
Monitor Printer Plotter Scanner
33 Text-styling feature of MS word is Input Output Software Storage

View or print
34 You can change Font in Input data Store data Scan data
data

Which items are placed at the end of a


35 Keyboard Optical Drive HDD Printer
document

A number of letter that appears little above output/input digital signaled


36 output devices
the normal text is called devices devices devices

A number of letter that appears little below Supercompu Personal


37 PLC Automobile
the normal text is called ter Computer

output/input digital signaled


38 We can insert a page number at output devices
devices devices devices

39 Ctrl + Z Hiding Bordering Cropping Cutting

40 What does Ctrl + = key effect? Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E

What is the short cut key to open the


41 Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E
Open documents?

View or print
42 Ctrl + B Input data Store data Scan data
data

How can you increase the font size of


43 Keyboard Optical Drive HDD Printer
selected text by one point every time?

output/input digital signaled


44 How to use Format Painter multiple times output devices
devices devices devices
A (n) _____is a dot or other symbol
Supercompu Personal
45 positioned at the beginning of a PLC Automobile
ter Computer
paragraph.
Which of the following is not a type of output/input digital signaled
46 output devices
page margin? devices devices devices

View or print
47 Ctrl + A Input data Store data Scan data
data

Which of the following is not on Home


48 Keyboard Optical Drive HDD Printer
ribbon?

output/input digital signaled


49 Ctrl + E output devices
devices devices devices
Which would you choose to save a Supercompu Personal
50 PLC Automobile
document with a new name? ter Computer

It shows the document as it would output/input digital signaled


51 output devices
appear if it were printed. devices devices devices

What is the short cut key to open Font View or print


52 Input data Store data Scan data
dialog box? data

What is the shortcut key to “justify” the


53 Keyboard Optical Drive HDD Printer
selected text?

output/input digital signaled


54 Pictures in output devices
devices devices devices

Supercompu Personal
55 Microsoft Office word is PLC Automobile
ter Computer
What is the smallest and largest font size
output/input digital signaled
56 available in Font Size tool on formatting output devices
devices devices devices
toolbar?
A character that is raised and smaller View or print
57 Input data Store data Scan data
above the baseline is known as data
MS-Word automatically moves the text to
58 the next line when it reaches the right Keyboard Optical Drive HDD Printer
edge of the screen and is called?
output/input digital signaled
59 In MS-Word, for what does ruler help? output devices
devices devices devices

By default, on which page the header or Supercompu Personal


60 PLC Automobile
the footer is printed? ter Computer

Which menu in MSWord can be used to output/input digital signaled


61 output devices
change character size and typeface? devices devices devices

Which key should be pressed to start a output/input digital signaled


62 output devices
new paragraph in MS-Word? devices devices devices

To get to the 'Symbol' dialog box, click on View or print


63 Input data Store data Scan data
the ______ menu and choose 'Symbol' data

What is the default number of lines to


64 Keyboard Optical Drive HDD Printer
drop for drop cap?

What is the function of CTRL+R in MS- output/input digital signaled


65 output devices
Word devices devices devices

Which option in File pull-down menu is Supercompu Personal


66 PLC Automobile
used to close a file in MSWord? ter Computer
output/input digital signaled
67 You can replace the text ... output devices
devices devices devices

Which of the following do you use to


68 Hiding Bordering Cropping Cutting
change margins?

69 In MS Word, Ctrl+S is for ….. Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E

A _____, is a small, portable personal


70 Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E
computer
A personal computer designed for regular
use at a single location on or near a desk View or print
71 Input data Store data Scan data
or table due to its size and power data

requirements
Computers used primarily by large View or print
72 Input data Store data Scan data
organizations for critical applications data
A computer with a high level of
73 performance as compared to a general- Keyboard Optical Drive HDD Printer
purpose computer.
output/input digital signaled
74 ROM Stand for output devices
devices devices devices

Supercompu Personal
75 Operating System PLC Automobile
ter Computer

output/input digital signaled


76 What is hardware? output devices
devices devices devices

78 What is software? Hiding Bordering Cropping Cutting

79 Which one is Output device? Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E

Which is the default page setup


80 Ctrl + S Ctrl + C Ctrl + C + A Ctrl + E
orientation in Word?

Double-clicking on a word will perform View or print


81 Input data Store data Scan data
which of the following actions? data

View or print
82 Header and Footer Input data Store data Scan data
data
Most computers use Windows to control
83 their basic functions and to run other Keyboard Optical Drive HDD Printer
programs. Windows is called a what?
Which would you choose to save a output/input digital signaled
84 output devices
document with a new name? devices devices devices
Which would you choose to move Supercompu Personal
85 PLC Automobile
selected text from one place to another? ter Computer

output/input digital signaled


86 Page break? output devices
devices devices devices
ប់សាស្ត្រា ចារ្យ
លរ សំណួ រ

1
What is the full form of SQL?

2 Which is the subset of SQL commands used to manipulate Oracle Database structures,
including tables?

3 In SQL, which command is used to SELECT only one copy of each set of duplicable
rows

4
A command that lets you change one or more fields in a record is

5
SELECT SUBSTR(‘123456789’, INSTR(‘abcabcabc’, ‘b’), 4) FROM DUAL;

6
Find the temperature in increasing order of all cities

7
Which of the SQL statements is correct?

8
Which of the following is illegal?

9
Identify the two select statement that execute successfully

10
Identify the two select statements that execute successfully

11 Which 3 of the following are valid operator’s for the where clause?

12
which of the following statements are true about single-row functions?

13 Chose the correct answer below

14
Which Operator are not correct about Arithmetic Expressions?

15
What statement below is wrong for Data definition language (DDL)
16
COMMIT,ROLLBACK ,SAVEPOINT is what type of SQL Language?

17
Chose correct answer below

18
If you join a table to itself , what kind of join are you using?

19
what does Cross Join is equal to?

20 Table A has 10 Rows, Table B has 20 rows, so Table A cross join table B , How many
rows it show?

21
Cartesian product is formed when :

22
How many type of Outer join in oracle

23 When you join two table together , the error show that the join column is Ambiguous ,
what does it mean?

24
What is True About NULL in oracle ?

25 Chose the correct answer for shorting data in the order from Small to BIG (A-Z)

26
Chose the correct answer below

27
Chose True Answer about Column Alias

28
Concatenation Operator

29
How to join 3 columns together

30 Literal Character String

31
Chose the correct statement below

32 What does this operator call? q'[]'


Select department_name || q’[Dep ‘s Manager ID :]’ || maanger_ID from Employees;
33
What does DESCRIBE Command used for ?

34 Which one is the graphic tool use to connect to oracle database to performance any
code execution

35 Chose the correct answer for Between Operator below

Which data manipulation command is used to combines the records from one or more
36
tables?

37
Which of the following is not a valid SQL type?

38 Which operator is used to compare a value to a specified list of values?

39
How a SQL query eliminates duplicates rows ?

40 The SQL used by front-end application programs to request data from the DBMS is
called

41
The command used to delete a particular column in a relation is

42
The database language that allows us to access data in a database is called :

43 Which of the following is a legal expression in SQL?

44
The COUNT function in SQL returns the number of

45
Which data type can store unstructured data in a column?

Which function is used to divides one numeric expression by another and get the
46
remainder ?

47
What is the full form of DDL ?

48
Which statement in SQL allows us to change the definition of a table is?

49
Between operator could be used with
50
Chose correct answer about IN operator

51
In LIKE Operator

52
Show employee that do not have manager_ID

53
Chose the correct statement below

54
Chose correct statement bellow

55

what does Row_limiting_clause use for?

56
We have row data from 1 to 10, when you used Fetch first 5 rows only it return

57
Where can we use Substitution Variable in select statement

58 Use double ampersand (&&) in substitution Variable

59 Define Command : Define employee_num=200

60
What is the result of Round (45.926,2)

61
What is the result of Trunc(45.926,2)

62
What is the result of MOD(1600,300)

63
Chose the correct definition of TRUNC

64 Chose the correct definition of ROUND

65
Chose the correct definition of MOD
What is the result of below statement
Select round(45.923,-1) from dual;
66
What is the result of below statement
Select TRUNC(45.923,-1) from dual;
67

68 What is the default date format in Oracle

69 Which is the correct answer for below statement

70
What does Sysdate function used for?

71
what is the correct statement used to return current date time from your database

72 Add or subtract a number with date

73
What is the correct syntax to add hour in your date

74 When we subtract two dates what is the result ? Sysdatedate-hiredate

75
(Sysdate-hire_date)/7

76
What function return last day of the month

77
What function return months between two date

78
What function add month to date (No Correct Answer)

79
Assum Today is Date=05-Aug-2020, what is the result of : Round(Date,’MONTH’)

80
What does the abbreviation DBMS stand for?
The advantages of Standard Query Language (SQL) include which of the
81
following in relation to GIS databases?

82
Which of the following are characteristics of an RDBMS?
83
Select the essential characteristic of Oracle Cloud Services

84
You can add a row using SQL in a database with which of the following?

85
The command to remove rows from a table ‘CUSTOMER’ is:

86
The SQL WHERE clause:

87
Which of the following is the original purpose of SQL?

88
The wildcard in a WHERE clause is useful when?

89
A view is which of the following?

90
The command to eliminate a table from a database is:

91
The SQL keyword(s) ________ is used with wildcards.

92 Which of the following is the correct order of keywords for SQL SELECT
statements?

93
The result of a SQL SELECT statement is a(n) ________

94
The HAVING clause does which of the following?

95 To remove duplicate rows from the results of an SQL SELECT statement, the
________ qualifier specified must be included.

96
The benefits of a standard relational language include which of the following?

97
Which of the following do you need to consider when you make a table in SQL?

98
SQL query and modification commands make up a(n) ________ .

99
Which one of the following sorts rows in SQL?
100
To sort the results of a query use:

101
SQL can be used to:

102
The SQL statement that queries or reads data from a table is ________ .

Chose the correct answer for TO_CHAR(hire_date,’fmDD Month YYYY’) from


103
Employees;

104
Which function use to convert null value to actual value

105 Which function use to Compare two expressions and returns null if they are
equal

106
Which function use to first non-null expression

107 Chose the correct answer below

108
What is Rapid elasticity?

109
Which four of the following are not valid operator’s for the where clause?

110
why do we need to qualify the name of the column with the table name?

111
What is the result of this function Lower(‘SQL Course’)

112
What is the result of this function Upper (‘Hello Norton!’)

113
What is the result of this function InitCap (‘Hello all students’)

114
Which of below function is used to connect two string together

115
Which of below function is used to count number of character in string

116
What is the result of this function SUBSTR(‘HelloWorld’,2,6)?
117
Which Function is used to find the numberic position of a named character

118
What is the result of this function : Trim (‘H’ From ‘HelloWord’)

119
What is the result of this function Replace (‘Jack and Jue’,’J’,’Bl’)

120
What is the result of this function RPAD(‘Hello’, 10,’*’)

121
The SQL WHERE clause:

122
Which of the following are SQL Agregate functions?

123
Which of the following is the original purpose of SQL?

124
The wildcard in a WHERE clause is useful when?

125
A view is which of the following?

126
The SQL keyword(s) ________ is used with wildcards.

127 Which of the following is the correct order of keywords for SQL SELECT statements?

128
A subquery in an SQL SELECT statement is enclosed in:

129
Which of the following are the five built-in functions provided by SQL?

130 In an SQL SELECT statement querying a single table, according to the SQL-92
standard the asterisk (*) means that:

131
The HAVING clause does which of the following?

132
The SQL -92 wildcards are ____ and ____ .

To remove duplicate rows from the results of an SQL SELECT statement, the ________
133
qualifier specified must be included.
When three or more AND and OR conditions are combined, it is easier to use the SQL
134
keyword(s):

Find the SQL statement below that is equal to the following: SELECT NAME FROM
135
CUSTOMER WHERE STATE = 'VA';

136
Which one of the following sorts rows in SQL?

137
To define what columns should be displayed in an SQL SELECT statement:

138
SQL can be used to:

139 The SQL statement that queries or reads data from a table is ________ .

140
The SQL keyword BETWEEN is used:

141
-________ was adopted as a national standard by ANSI in 1992.

142
SQL is:

143
Chose the correct Nested Group Function below

144
Which Function is used for IF-Then-Else Logic?

145
what year oracle 12c release?

146
In which language Oracle has been developed?

147 What is the correct function use for finding the average value from a specific giving
column name

148
where You could place Group by Clause?

149
Full outer join is the combination of what type of join?
150
In what Year that Dr. E. F Code proposed the relational model for Database system

151
First Relation Database Model exist of the below points

152
What is the benefit of ER Model

153
Chose the correct Key component of ER Model

154 The following SQL is which type of join : Select A.CustomerID, B.CustomerID From
Customer A , OrderDetail B where A.customerID=B.CustomerID

155
How many time Subquery can be nested?

156
What type of join is needed when you wish to return rows that do have matching values

157
How do we represent comments in Oracle?

158
With SQL, how do you select all the columns from a table named “Persons” ?

159
Which SQL Statement is used to update data in a database?

160
Which SQL statement is used to extract data from a database?

161 With SQL, how do you select a column named “FirstName” from a table named
“Persons”

162
Which SQL Statement is used to insert new data in a database?

163 The OR Operator displays a record if ANY conditions listed are true. The AND operator
display a record if ALL of the conditions listed are true

Which of the following query would display names and percentage of marks of all
164
students sorted by honours subject, and then order by percentage of marks?

165 What is returned by INSTR(‘TUTORIALS POINT’, ‘P’)?


phone_no, date_of_birth, honours_subject, percentage_of_marks);

Which query will display the names and honours subjects of all students and if a
166
student has not yet been given a honours subject yet, then it should display ‘No
Honours Yet’.

167
Which of the following is not true about the database objects?

168
Which of the following is not true about the ON clause?

169
Which of the following is not a developer’s privilege?

170
Which of the following is true about Cartesian Products?

Consider the following schema −STUDENTS(student_code, first_name, last_name,


email,
phone_no, date_of_birth, honours_subject, percentage_of_marks);
171
Which of the following query would display all the students where the second letter in
the first name is ‘i’?

172
Consider the following schema −STUDENTS(student_code, first_name, last_name,
email,
phone_no, date_of_birth, honours_subject, percentage_of_marks);
Which of the following query will correctly display name of all the students who got more
marks than the student ‘0215/15’?

173
Which of the following is not true about the COALESCE function?

174
Which of the following is not a group function?

175
The AVG SQL Function returns the

Can the select clause list have a computed value like in the example below? Select
176
customerName, unitPrice * numberofUnits From Sales

177
Which of the following SQL Statement deletes all rows in table called SaleData?
178 Which of the following is True about CASE SQL Statement?

179
The table columns are also known as

180 The Primary Foreign Key relations are used to

181
Select the primary Tools in to select data from Oracle database

182
What is Oracle?

183
Chose the correct SQL Statement below

184
With Date and Time data Type Which two operator you could not use?

185
In Oracle 12*Salary+100

186
Null Value is

187 Null is the same as what?

188 What is On-demand self-service?

189
How to rename column heading which contain space or special character

190 What happen when you concatenate a null value with a character string?

191 What is Hybrid Cloud Deployment Model?

192
Where can you use column alias ?

193
Chose the symbol that represent not equal in oracle

194
How many type of services Oracle Provide ?
195
what is the wildcard we use to denote one or more characters

196
To search for % and _ symbol what do we need to use?

197
Which statement below exclude value from the list

198
Which of the following is not a Oracle Database feature?

199 What is Oracle database used for?

200
Chose the correct statement to declare variable in SQL statement

201
Where can a Substitution Variable can be used ?

202 Which function is best use to determine whether a value is odd or even

203
Which tables are exist in HR Schema?

204
which tool do you use to shutdown your DB?

205
Implicit data type conversion

Char to Number conversion success only if the character string represent a valid
206
number, Which one is the correct answer

207
Which below format define Minute formatting

208
What does SPTH mean?

209
Which Function below is complies with the ANSI SQL

210
Max and Min Group function can not used with which data type?

211
what dose Count(expr) return?
212
what condition does Natural Join joins two table base on ?

213
which group function that can accept string as its argument

214
What is SQL * Plus

215
what can you do with date in oracle

216
How can you add 5 hours to your current date

217
date-date

218
(sysdate-hire_date)/7

219
Which data Type that Round function can use with?

220
which one is the correct answer for add months to a date

221
Which one is the correct answer for subtract 3 months from currect date

222
Assume SysDate='27-Jun-2021' , Trunc(SysDate) Will return which date?

223
If you want to reuse the value from oracle variable , How do you declare it?

224
Which Character set support Khmer Unicode

225
What is the sample schema in oracle Database?

226
Last_date Function

227
which function that you could use to find Odd or Event Number

228
what is the result of this TO_Char(Sysdate,'Dy-DD-Mon-YYYY')
229
How to fomat Mili Second in Oracle

230
what is the result of this code To_Char(hire_date,'fmDD Month YYYY')

231
What is NVL2 Function?

232
NVL(Commission_pct,0)

233
which group function that can not accept string as its argument

234
How many column can we group by in select statement?

235
How many characters can you us as table aliases

236
what is true about sub query

237
where can use place subquery?

238
which operator that can not use with Single row subqueries

If you would like to find the department that do not have any employee what is
239
the best Operator you should use?

What part of this statement is wrong "Where Hire_date=To_date('May 24,


240
2007','DD Month , YYYY')

241

Chose the correct statement


ចម្លើយ ចម្លើយ ចម្លើយ

Structured Query Language Structured Query List Simple Query Language

Data Manipulation
Data Definition Language(DDL) Language(DML) DDL and DML

SELECT DISTINCT SELECT UNIQUE SELECT DIFFERENT

Insert Update Look-up

6789 2345 1234


SELECT city, temperature
SELECT city FROM weather SELECT city, temperature FROM weather ORDER BY
ORDER BY temperature; FROM weather; temperature;

SELECT Username AND Password SELECT Username, Password


FROM Users WHERE Username = ‘user1’ None of the Mentioned

SELECT SYSDATE –
SELECT SYSDATE – SYSDATE SELECT SYSDATE – (SYSDATE + 2) FROM
FROM DUAL; (SYSDATE – 2) FROM DUAL; DUAL;
Select first_name , job_id , salary
*12 as Yearly Sal from employees Select first_name , job_id , Select first_name , job_id ,
salary *12 “Yearly Sal” from salary *12 as “Yearly Sal”
employees from employees

Select * from employees where Select * from employees where Select * from employees
last_name=’whalen’ hire_date =17-Nov-2020 where last_name=whalen

>= != In Between

Accept arguemtns and return Return one result per set of


Manipulate data items
one value per argument row

Select First_name , Salary * 12 Select First_name, Salary


Select First_name+Salary
as Annual Salary from * 12 as “Annual Salary”
fom Employees;
employees; from employees;

+ - >

CREATE ALTER DROP


DDL
DTL DML
Where clause is used to filter on Order by is used to sort data Default sorting in oracle is
row DESC

Nonequijoins Left outer join Self Joins

Cartesian products equijoins Full outer join

10 200 20

All rows in the first table are


joined to all rows in the
A Join condition is omitted A Join condition is invalid second table

1 2 3

Both join columns has difference No row from both column


No Column Name found data type match

NULL mean 0 NULL mean space NULL = NULL

Order by Descending Sort by Desc Order by

Null+10=10 Null=Null Null=””

Requires double quotation


Renames a column heading Is useful with calculations marks if it contain spaces

A- || B- ||| C- &&

Col1 & Col2 & Col3 Col2 and Col2 and Col3 Col1 | Col2 | Col3

is a character, a number or date Date and character literal values Each character string is
that is included in the select must be enclosed within single output once for each row
statement quotation marks returned

Last_name ||’ is a ‘ || Job_ID Last_name || is a || job_ID Last_name || “is a “ || Job_ID

Join Operator
Quote Operator Concate Operator
select the table in the
connections tree and use the
columns tab to view the table
display the structure of a table structure Show table comment

SQL * Plus SQL Developer SQL Management Studio

Salary between 100 and 200 Salary between 100 to 200 Salary between 100-200

SELECT PROJECT JOIN

DECIMAL NUMERIC FLOAT

BETWEEN ANY IN

By Using distinct
By using remove duplicate It can not remove duplicate row

DML DDL VDL

UPDATE TABLE TRUNCATE COLUMN ALTER , DROP

DCL DML DDL

SELECT * FROM SALES


SELECT NULL FROM SALES; SELECT NAME FROM SALES; WHEN PRICE = NULL;

Values Distinct values Group By

RAW CHAR NUMERIC

POWER MOD ROUND

Dynamic Data Language Detailed Data Language Data Definition Language

ALTER UPDATE CREATE

Number Date String


A- IN {1,2,3} B- IN(1,2,3) C- IN “1,2,3”

% denotes zero or more characters _denoted one character % mean null

Select * from employees where Select * from employees where Select * from employees
manager_id=null manager_id=Blank where manager_id=””

Select * from tab1 order by ID Select * from Tab1 where


where Salary>100 Salary>100 order by ID
Select order by ID from tab1

select ID,name, Salary from Tab1 select ID,name, Salary from select ID,name, Salary from
order by 2 Tab1 order by ID Tab1 order by ID,Salary,4

Select Top Rows you want


to show
Select First row only Select Last row only

Row 6 to 10 Row 1 to 5 Row 2 to 7

In select In Where In From

if you want to reuse the variable if you do not want to reuse the if you want to store value
value without prompting the user variable value with prompting
for permanace
each time the user each time

is used to assign a variable is used to declare variable


is used to remove a variable value value

45.93 45 45.92

45.93 45 45.92

100 200 5

Truncates value to a specific Rounds value to a specified


Returns remainder of division decimal decimal

Rounds value to a specified


Returns remainder of division Truncates value to a specific dec decimal

Returns remainder of division Truncates value to a specific Rounds value to a specified


decimal decimal
Error 46 50

Error 40 50

DD-MM-YY
DD-Month-YYYY DD-MON-YY

Select * from employees where Select * from employees


Select * from employees where hireday<”02-Feb-2020” where hireday<02-02-2020
hireday<’02-02-2020’

Return current date and time from Return date time from your
server Return system number application

Select getdate() from dual Select Today() from dual -Select Now() from dual
you can multiple a number
you can not subtract a number
with a date
you can not add number to a date with date

date+number/24 date+Convert(hour)/24 date+number of hour

number of day number of weeks number of month

number of day number of weeks number of month

Last_day Next_day Last_day_month

Last_day Next_day Last_day_month

Last_day Next_day Last_day_month

1-Sep-20 5-Aug-20 1-Aug-20

Data Borrowing and Database Management


Digital Base Mapping System. Movement Software. System.

It is good at handling It is simple and easy to


geographical concepts It is widely used. understand
Keys may be unique or have Queries are possible on
multiple occurrences in the individual or groups of
database It cannot use SQL tables
Measured Services
On-demad self-service Resource Pooling

ADD CREATE INSERT

REMOVE FROM CUSTOMER DROP FROM CUSTOMER DELETE FROM


… … CUSTOMER WHERE …

limits the column data that are . limits the row data are
returned. returned. Both A and B are correct.
To specify the syntax and To specify the syntax and
semantics of SQL data definition semantics of SQL To define the data
language manipulation language structures
An exact match is not An exact match is
An exact match is necessary in a possible in a SELECT necessary in a CREATE
SELECT statement statement statement.
A virtual table that cannot be A base table that can be
A virtual table that can be accessed via SQL accessed via SQL
accessed via SQL commands commands commands

DELETE TABLE
REMOVE TABLE CUSTOMER DROP TABLE CUSTOMER CUSTOMER

LIKE only IN only NOT IN only

SELECT, FROM, WHERE FROM, WHERE, SELECT WHERE, FROM,SELECT

report form file


Acts like a WHERE clause Acts like a WHERE clause
Acts like a WHERE clause but is but is used for rows rather but is used for columns
used for groups rather than rows than columns. rather than groups.

ONLY UNIQUE DISTINCT

Increased dependence on a Applications are not


Reduced training costs single vendor needed

Data types Primary keys Default values

DDL DML HTML

SORT BY ALIGN BY ORDER BY


SORT BY. GROUP BY. ORDER BY.

create database structures only. query database data only. modify database data only.

SELECT READ QUERY

"7-January-2020"
"07-Jan-2020" 7-Jan-20

NVL NVL2 NULLIF

NVL NVL2 NULLIF

NVL NVL2 NULLIF


a) Round (40.9933,0) --
b) Trunc (33.22,1) -->33.2 c) Mod (2999,3) -->3
>40.90
Implies sharing and a level of
Ability to quickly scale up or Access through a browser
abstraction between consumers
down as needed on any networked device
and service

A) >= B) != C) Is like

To avoid ambiguilty Increase speed of parsing Make your query run faster

A- SQL Course B- Sql Course C- sql course

A- HELLO NORTON! B- Hello Norton! C- hello Norton!

A- Hello all students B- Hello All Students C- Hello all Students

A- concat B- Join C- ||

A- RPAD B- Count C- RPAD

A- Hell B- Hello C- ello


A- Search B- Find C- Trim

elloWord HelloWord elloword

Jack and Blue Black and Blue Bl and Bl

Hello10101010 *****Hello Hello*****

limits the column data that are


returned. limits the row data are returned. Both A and B are correct.

Min Insert Select

To specify the syntax and To specify the syntax and


semantics of SQL data definition semantics of SQL manipulation
language language To define the data structures

An exact match is necessary in a An exact match is not possible An exact match is necessary
SELECT statement. in a SELECT statement. in a CREATE statement.

A virtual table that can be accessed A virtual table that cannot be A base table that can be
via SQL commands accessed via SQL commands accessed via SQL commands

LIKE only IN only NOT IN only

SELECT, FROM, WHERE FROM, WHERE, SELECT WHERE, FROM,SELECT

braces -- {...}. CAPITAL LETTERS. parenthesis -- (...) .

COUNT, SUM, AVG, MAX, MIN SUM, AVG, MIN, MAX, MULT SUM, AVG, MULT, DIV, MIN

all columns of the table are to be all records with even partial
returned. all records meeting the full criteria met are to be
criteria are to be returned. returned.

Acts like a WHERE clause but is Acts like a WHERE clause but
Acts like a WHERE clause but is used for rows rather than is used for columns rather
used for groups rather than rows. columns. than groups.

underscore(_); question mark


asterisk (*); percent sign (%) percent sign (%); underscore (_) (?)

ONLY UNIQUE DISTINCT


LIKE only. IN only. NOT IN only.

SELECT NAME IN
SELECT NAME IN CUSTOMER SELECT NAME IN CUSTOMER CUSTOMER WHERE STATE
WHERE STATE IN ('VA'); WHERE STATE = 'VA'; = 'V';

SORT BY ALIGN BY ORDER BY

use USING to name the source use SELECT to name the


use FROM to name the source table(s) and list the columns to source table(s) and list the
table(s) and list the columns to be be shown after SELECT. columns to be shown after
shown after SELECT. USING.

create database structures only. query database data only. modify database data only.

SELECT READ QUERY

for ranges. to limit the columns displayed. as a wildcard.

Oracle SQL Microsoft Access

a programming language. an operating system. a data sublanguage.

Max(Avg(Salary)) Max(Salary(Avg)) Salary(Max(Avg))

NULLIF
Decode IF Conditon

2017 2018 2019

C#
C Language Java

Average(Salary) Aver(Salary) AVG(Salary)

After Order by
Before Where After Where

Inner join
Left outer join Right outer Join
1980 1990 1960

Set of Operators to act on the Data integrity for Accuracy


Collection of Objects or relations relations and consistency

Provide a clear picture of the Provide an easily understood


document information for the scope of the information picture map for database
organization in a clear requirement design

Entity Entity –Attribute Entity-Attribute-Relationship

Equi-join Natural Join Outer join

only one time


More than one time less than 3 times

Equi-join Natural join Outer join

" "
/*—— */ Two dashes(–)

Select [all] from Persons Select All persons Select * persons

Update Save as Modify

GET OPEN EXTRACT

Extract FirstName from Persons Select FirstName From Persons Select Persons FirstName

Add Record Add Into Insert

1 FALSE

select first_name, last name, select first_name, last name,


honours_subject, honours_subject, select first_name, last name,
percentage_of_marks from students percentage_of_marks order by percentage_of_marks from
order by honours_subject, percentage_of_marks desc from students order by
percentage_of_marks; students; percentage_of_marks desc;

11 10 POINT
select first_name, last name, select first_name, last name, select first_name, last name,
nvl(honours_subject, ‘No Honours nvl2(honours_subject, ‘No honours_subject, from
Yet’) from students; Honours Yet’) from students; students;

Sequences are numeric value


Indexes improve performance of Views give alternative names to generators.
queries. objects.

ON clause is used to specify


conditions or specify columns to ON clause makes the query ON clause does not allow
join. easy to understand. three way joins.

CREATE USER CREATE TABLE CREATE VIEW


Some rows in the first table
A Cartesian product is formed when A Cartesian product is formed
are joined to all rows in the
a join condition is omitted. when a join condition is valid.
second table.

select first_name from


select first_name from students select first_name from students students where first_name
where first_name like ‘_i%’; where first_name like ‘%i_’; like ‘%i%’;
select first_name, last_name select first_name,
select first_name, last_name
from students last_name from students
from students
having percent_of_marks > using percent_of_marks >
where percent_of_marks >
(select (select select
(select percentage_of_marks
percentage_of_marks from percentage_of_marks from
from students
students students
where student_code =
where student_code = where student_code =
‘0215/15’);
‘0215/15’); ‘0215/15’);
It returns the first non-null
It takes multiple alternate values. expression in the parameter It returns the first value in the
list. parameter list if it is null.

SUM NVL COUNT

Average in the values in group maximum value from a column the sum of values in a column

A- No B- Yes C-need to change * to X

Delete all saleData Delete SaleData Delete From SaleData


A way to establish and IF-THEN- A way to establish a data
ELSE is SQL A way to establish a loop in SQL definition in SQL

A- Records B- Attributes C- Fields

Cross-reference database tables Clean up the database to index the database

Command line
SQL Developer SQL Management Studio SSIS

Oracle is a programming Oracle is an operating


Oracle is a database language system
SQL Keyword can be slit
SQL Statement is not case
across two lines
SQL Statement is case sensitive sensitive

Plus
Division Multiple

It calculate 12*Salary first after that It calculate Salary+100 first


plus 100 after that multiple by 12
It does all at the same time

unavailable unassigned unknown

Null word
Zero Space
Implies sharing and a level of
Ability to quickly scale up or Access through a browser
abstraction between consumers
down as needed on any networked device
and service

it require { } it require single quotation it require double quotation

Result is the Character String


Result is null Error

Is the combination of Public and is used to host public data


Private Cloud is use to host private data

in Having In where
In select

<> != ^=

2
3 4
% - *

A- “ “ A- ‘ ‘ A- ESCAPE Symbol

Not In
Is not null Not Exist

Scalability Availability Analytics

Store and retrieve relevant


Creating backup for data Accessing database servers data

Var X &X $X

in order by
In select in where

Round Trunc MOD

Departments
Employees Locations

SQL Developer
Oracle Enterprise Manager SQL * Plus

Mean need to use a specific User define data type


Mean auto convert data type for converting

!234
123 ABC

MI MM Minute

Spelled out Ordinal number


Spelled out number Ordinal number

CASE DECODE BOTH

Varchar
LOB or LONG Data Type Date

the number of column


the number of rows in a table the number of non null rows
The same Table
The same Data Type The same column Name

Count Max MIN

is a command dos for execute sql is a graphic tools for execute sql is a web controller
statement statement
devided a number with a
Add number to a date Subtract number to a date
date

now+5 sysdate+5 now+5/24

return number of hour between 2 return number of days


will return null
dates between 2 dates

return number of hours Return number of month Return number of day

Byte Character Number

Mon_Add Month_Add Add_Months

Sysdate-3 Sysdate-90 Add_Months(Sysdate,-3)

1-Jan-21 1-Jun-21 1-Jan-22

Var &Var &&Var

UTF8 UTFE Unicode

Finance SA HR

Return Last day of the


Return Last day of the week Return Last day of the Year
month

Mod Division Round

Mon-12-July-2021 12-Mon-Jul-2021 Monday-12-Jul-2021


SS SSS SSSSS

9-Jul-21 09-Jul-2021 9-July-2021

compares two expression


convert a null to an actual
Return the first non-null and return null if they are
value
equal
if commision_pct is null than if commision_pct has value if commission_pct is not
return 0 than 0 null return 0

Count Max MIN

Only one Only 10 More than one

20 25 30

Sub query can be call inner sub query executes after sub query execute before
query main query the main query

In select In Where In From

= > IN

Not in In Exists

Month format should put before


this statement is correct Wrong Month format
date
B) Select First_Name, C) Select First_Name,
A) Select First_Name, count(*)
count(*) From Employees count(*) From Employees
From Employees Group by
having count(*)>10 Group Where count(*)>10
First_Name having count(*)>10
by First_Name Group by First_Name
ចម្លើយ

None of the Mentioned

None of the Mentioned

All of the Mentioned

All of the Mentioned

456789

SELECT city, temperature FROM


weather ORDER BY city;

SELECT Username, Password


FROM Users

None of the Mentioned

Select first_name , job_id , salary


*12 Yearly Sal from employees

Select * from employees where


hire_date =’17-Nov-2020’

Like null

can be nested

Select First Name,Salary as


Annual Salary * 12 from
employees;

SELECT
TCL

Having is used to filter on row

Cartesian products

Inner Join

30

All Above answer

the column name has in both tables.

All are wrong

Order by Desc

Null +100 is NULL

All above are correct

D- &

Col1 || Col2 || Col3

Non of above answer

Last_name || “is a ‘ || job_ID

Function Operator
show all data in table

DBCA

Salary between 100 or 200

PRODUCT

CHARACTER

ALL
It is auto eliminate the duplicate
rows

SDL

DELETE COLUMN

None Of Above

SELECT # FROM SALES;

Columns

VARCHAR

REMAINDER

Data Derivation Language

SELECT

All Above
D- IN 1,2,3

* mean all characters

Select * from employees where


manager_id is null

Select * from Tab1 order by ID

select ID,name, Salary from Tab1


order 1,2

It is similar to Top N in SQL Server

Row 5-10

All are wrong


if you want oracle to save this
variable in Hard disk

is used to search for employee


200

45

45

remove all decimal number

Show the round circle

Show Number which happen the


most
45.92

45.92

DD-MMM-YYYY

Select * from employees where


hireday<’02-Feb-2020’

All are correct

Select Sysdate from dual

All are incorrect

all are wrong

number of year

number of year

Months_between

Months_between

All are incorrect

30-Aug-20

Database Manipulation Software.

It uses a pseudo-English style of


questioning.

Tables are linked by common data


known as keys.
All

MAKE

UPDATE FROM CUSTOMER …

Neither A nor B are correct

All of the above.

An exact match is not possible in


a CREATE statement.

A base table that cannot be


accessed via SQL commands

UPDATE TABLE CUSTOMER;

IN and NOT IN

SELECT,WHERE,FROM

table

Acts EXACTLY like a WHERE


clause.

SINGLE

All of the above.

All of the above.

XML

GROUP BY
None of the above is correct.

All of the above can be done by


SQL.

None of the above is correct.

7/7/2020

COALECE

COALECE

COALECE

d)Mod(100,10)-->1

Provisioning , Monitoring and


management control

D) <>

Make your script become standard

D- SQL COURSE

D- hello norton!

D- HELLO ALL STUDENTS

D- Connect

D- Length

D- orld
D- InStr

Replace all character to H

Wrong code

**Hello***

Neither A nor B are correct.

Join

All of the above.

An exact match is not possible in a


CREATE statement.

A base table that cannot be accessed


via SQL commands

IN and NOT IN

SELECT,WHERE,FROM

brackets -- [...].

SUM, AVG, MIN, MAX, NAME

None of the above is correct.

Acts EXACTLY like a WHERE clause.

question mark (?); asterisk (*)

SINGLE
Both IN and NOT IN.

SELECT NAME FROM CUSTOMER


WHERE STATE IN ('VA');

GROUP BY

use USING to name the source


table(s) and list the columns to be
shown after WHERE.

All of the above can be done by SQL.

None of the above is correct.

None of the above is correct.

DBase

a DBMS.

None of above

IF_NULL

2020

VB

sum(salary)/count(Salary)

in Select

seft join
1970

All above

All Above

Table

Cartesian Join

can not nested

All Above

%%

Select * from Persons

Save

Select

Add New

select first_name, last name,


percentage_of_marks from students
order by percentage_of_marks,
honours_subject;

TUTORIALS
select first_name, last name,
nullif(honours_subject, ‘No Honours
Yet’) from students;

Tables are the basic unit of storage.

None of the above.

CREATE SEQUENCE

All rows in the first table are joined to


some rows in the second table.

select first_name from students


where first_name like ‘_i_’;

None of the above.

None of the above.

MIN

D-need to change * to multiple


word

Delect rows from SaleData


All of the above

D-Measure

to make two table can join together

Java JDK

Oracle is a sripting language

SQL Keyword can be abbreviated

Minus

you can not use multiple operators

All above

Empty

Provisioning , Monitoring and


management control

it require ()

Return Null+Character string

is used to host data for multiple


branch company

in Group by

All above

5
X

A-Like and %

Not Like

None of the mentioned

Both a & c

Variable X

all

ODD_EVEN

All of these tables

Oracle Data Pumb

Manual Convert

123A

Minute

Spelled out date

IF

Number

the number of tables


The same Database

All

is a window command dos

multiple number with a date

sysdate+5/24

Error

Return number of weeks between


2 date

Date

Months_Add

Add_Months(-3,Sysdate)

2021

Decalre Var

AL32UTF8

Non of them

Return Current Date time

Trunc

Mon-12-Jul-2021
SSSSSS

09-July-2021

if exp1 is not null return exp2, if


exp1 is null return exp3

Error

SUM

One or More column

35

the result of the sub query is not


used by the main query

in Having

<>

Not Exists

Wrong Year format

D) Select First_Name, count(*)


From Employees Group by
First_Name order by having
count(*)>10

You might also like