Database Iitu Quiz

150 Questions | Attempts: 611
Please wait...
Question 1 / 151
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. A table can be created with or without data

Submit
Please wait...
About This Quiz
Database Iitu Quiz - Quiz

.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. With SQL, how do you select all the columns from a table named "Persons"?

Submit

3. A table can be created with or without data.

Submit

4. You can add and drop columns from a table using the ALTER TABLE command.

Submit

5. Which keyword is used to provide an alias to a column?

Submit

6. What does SQL stand for?

Submit

7. You can add and drop columns from a table using the ALTER TABLE command.

Submit

8. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?

Submit

9. Which of the following is a concatenation operator?

Submit

10. Transaction control determines when data manipulation becomes permanent in a database. 

Submit

11. Which of the following is a concatenation operator?

Submit

12. Which keyword is used to provide an alias to a column?

Submit

13. What will be the result of the following SQL statement? (SYSDATE is a date of your exam)SELECT TO_CHAR(SYSDATE, 'Day') FROM Dual;

Submit

14. With SQL, how do you select a column named "FirstName" from a table named "Persons"?

Submit

15. Which SQL keyword is used to sort the result-set?

Submit

16. Queries containing set operators are called ______ .

Submit

17. With SQL, how can you return the number of records in the "Persons" table?

Submit

18. Transaction control determines when data manipulation becomes permanent in a database. 

Submit

19. Privileges, roles, and synonyms are all used to implement security in an Oracle Database.

Submit

20. Which symbol do you use if you need to choose all the columns from the table to the result query?

Submit

21. Which SQL statement is used to update data in a database?

Submit

22. Which SQL statement is used to insert new data in a database?

Submit

23. Queries containing set operators are called __________ .

Submit

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

Submit

25. What is the most common type of join?

Submit

26. By default, the foreign key restricts deletes of any parent row has a corresponding child row(s).

Submit

27. You can add to and drop columns from a table using the ALTER TABLE command.

Submit

28. The NUMBER data types is usually the best choice for a primary key.

Submit

29. Queries containing set operators are called __________ .

Submit

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

Submit

31. Privileges, roles, and synonyms are all used to implement security in an Oracle database.

Submit

32. Which keyword is used to eliminate duplicate rows in the result?

Submit

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

Submit

34. With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"?

Submit

35. A table can be created with or without data

Submit

36. Which operator is used to select values within a range?

Submit

37. Queries containing set operators are called __________ .

Submit

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

Submit

39. Queries containing set operators are called ______ . 

Submit

40. What will be the result of the following query?SELECT ROUND (63.548, -1) FROM DUAL;

Submit

41. The TRUNCATE command removes all data permanently from a table.

Submit

42. By default, the foreign key restricts deletes of any parent row has a corresponding child row(s).

Submit

43. Which command is used to view the structure of the table LOCATIONS?

Submit

44. The TRUNCATE command removes all data permanently from a table.

Submit

45. What will be the result of the following query?SELECT ROUND (63.548, -1) FROM DUAL;

Submit

46. Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who do not work in the departments 90 and 60?

Submit

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

Submit

48. Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those whose salary is greater than 5000 but less than 18000?

Submit

49. Which command is used to view the structure of the table LOCATIONS?

Submit

50. The data dictionary view USER_TAB_PRIVS_MADE lists details of table privilege grants performed by the current user.

Submit

51. Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who do not work in the departments 90 and 60?

Submit

52. What will be the result of the following SQL statement? (SYSDATE is a date of your exam)SELECT TO_CHAR(SYSDATE, 'Day') FROM Dual;

Submit

53. By default, the foreign key restricts deletes of any parent row that has a corresponding child row(s).

Submit

54. The ______ constraint defines a condition that each row must satisfy.

Submit

55. With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?

Submit

56. Which command is used to view the structure of the table LOCATIONS?

Submit

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

Submit

58. A SELECT statement that is embedded in a clause of another SELECT statement  is called 

Submit

59. DML statement such as INSERT, UPDATE, DELETE, and MERGE obtain a lock on the row(s), so other users cannot manipulate it.

Submit

60. Use the _____ operator to return all rows from multiple tables and eliminate any duplicate rows.

Submit

61. With SQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?

Submit

62. Which SQL statement is used to return only different values?

Submit

63. With SQL, how can you insert a new record into the "Persons" table?

Submit

64. With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?

Submit

65. Which operator is used to search for a specified pattern in a column?\

Submit

66. Consider the following SQL statement. What will be the result? SELECT e.last_name, e.salary, d.department_name FROM employees e, departments d WHERE e.department_id = d.department_id

Submit

67. Use the _______ operator to return all rows from multiple tables and eliminate any duplicate rows.

Submit

68. Both object and system privileges can be granted through a single role to a user.

Submit

69. The NOT NULL constraint enforces a column to not accept null values

Submit

70. Which of the following is the original purpose of SQL?

Submit

71. You can rename a table with the RENAME or the ALTER TABLE command.

Submit

72. When using LIKE condition which symbol is used to denote one character?

Submit

73. Transaction control determines when data manipulates becomes permanent in a database.

Submit

74. The ______ constraint defines a condition that each row must satisfy.

Submit

75. Which symbol is used to create a substitution variable

Submit

76. You can update only a single column at time in a table.

Submit

77. You can place the subquery in a number of SQL clauses, including the following:I. WHERE clauseII. HAVING clauseIII. FROM clause

Submit

78. Queries that return only one row from the inner SELECT statement are called

Submit

79. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?

Submit

80. Write SQL statement for display the names of the employees who are working in the company for the past 5 years:

Submit

81. What will be the result of the following SQL statement?SELECT INITCAP(SUBSTR(CONCAT('Hello',world),4,3)) FROM DUAL;

Submit

82. You can update only a single column at a time in a table.

Submit

83. Constraints always have a name.

Submit

84. Use the _____ operator to return all rows from multiple tables and eliminate any duplicate rows.

Submit

85. What will be the result of the following SQL statement? (SYSDATE is a date of your exam)SELECT TO_CHAR(SYSDATE, 'DD.MM.YY') FROM Dual;

Submit

86. Which of the following statements is NOT true?

Submit

87. When executed, this statement cannot be rolled back

Submit

88. What will be the result of the following SQL statement?SELECT SUBSTR ('Hello,World!!!',13) FROM DUAL

Submit

89. A subquery must be enclosed in _________ .

Submit

90. When using LIKE conditions which symbol is used to denote zero or many characters?

Submit

91. Consider the EMPLOYEES table. Which of the following conditions in the WHERE clause will generate an error?

Submit

92. A parent table referenced by a child table may not be dropped.

Submit

93. It is possible to combine from two tables that do not have a primary key/foreign key relationship into one result using a set operation.

Submit

94. When using LIKE condition which symbol is used to denote one character?

Submit

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

Submit

96. The command to eliminate a table from a database is:

Submit

97. Delete the zip codes 02199 and 43011 from the ZIPCODE table. Make the change permanent.

Submit

98. Consider the EMPLOYEES table. When condition in the WHERE clause limit the employees to IT Programmers with salary greater than 5000?

Submit

99. Any user can grant or revoke ant type of system privileges to or from another user.

Submit

100. Consider the EMPLOYEES table. Which of the following SQL statements is correct to provide the sentence in the format "King has been working since 01.01.1987" with "Employee Information" alias?

Submit

101. You cannot drop a user if objects exist in the user's schema.

Submit

102. Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those whose last name and first name starts with the letter 'K'?

Submit

103. The UNION and UNION ALL set operator have the opposite effect other. 

Submit

104. You cannot drop a user if objects exist in the user's schema. 

Submit

105. You can nor selectively delete rows a table.

Submit

106. Consider the EMPLOYEES table. Which of the following conditions in the WHERE clause will generate an error?

Submit

107. If there are schemas named USERA and USERB, and both have an EMPLOYEES table, then if USERA wants to access the EMPLOYEES table that belongs to USERB, USERA must write select statement as follows:

Submit

108. Which is right of the following clauses?

Submit

109. The subquery generally executes ______ , and its output is used to complete the query condition for the main (or ____ ) query.

Submit

110. Consider the EMPLOYEES table. Which of the following SQL statements is correct to provide the sentence in the format "King has been working since 01.01.1987" with "Employee Information" alias?

Submit

111. You can nor selectively delete rows a table.

Submit

112. Which SQL statement is used to create a table in a database?

Submit

113. Consider the SQL statement. Which of the following clauses does not sort the result rows by the salary values in the ascending order? SELECT last_name "Employee", salary "Salary" FROM employees

Submit

114. Which of the following functions is not single-row function?

Submit

115. Any user can grant or revoke any type of system privilege to or from another user

Submit

116. Comparison conditions fall into two classes:

Submit

117. Queries that return more than one row from the inner SELECT statement are called

Submit

118. Write SQL statement for increase salary of all managers by 10%

Submit

119. The data of a temporary table is visible to all session.

Submit

120. How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?

Submit

121. To obtain a last names thet student and instructors share, you use the mINUS set operator.

Submit

122. Which of the following functions joins two strings together?

Submit

123. The command to remove rows from a table 'CUSTOMER' is:

Submit

124. The data of a temporary table is visible to all session.

Submit

125. What will be the result of the following SQL statement?SELECT count(d.department_name), l.cityFROM departments d NATURAL JOIN locations lGROUP BY l.city

Submit

126. Which SQL statement is used to create a database?

Submit

127. Consider the EMPLOYEES table. Which of the following  statements displays the date in the 'January, 19 1998'?

Submit

128. When inserting data into a table form another table, the table names and columns must be the same.

Submit

129. ______ clause can be used and is required in the subquery to perform Top-N analysis.

Submit

130. The ____ operator compares a value to EACH value returned by a subquery

Submit

131. Which of the following functions finds the numeric position of a named character?

Submit

132. Consider the SQL statement. Which of the following clauses does not sort the result rows by salary value in the ascending order?SELECT last_name "Employee", salary "Salary"FROM employees

Submit

133. Consider the EMPLOYEES table. Which of the following statements count the number of employees within each department? 

Submit

134. The ____ operator returns all rows that are selected by either query

Submit

135. Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who work in the department prompted by the user?

Submit

136. The  ______ operator compares a value to every value returned by a subquery.

Submit

137. You cannot order the results of a set operation.

Submit

138. The SQL WHERE clause:

Submit

139. The wildcard in a WHERE clause is useful when?

Submit

140. Which of the following clauses is used to limit the rows that are retrieved by the query?

Submit

141. You can not order the results of a set operation

Submit

142. A DISTINCT must always be user in the top-most SELECT statement of a set operation

Submit

143. Write SQL statement for display the department numbers with more than employees in each dept. 

Submit

144. Which of the following SQL statements will generate an error?

Submit

145. The TRANCATE command and the TRUNC function can be used interchangeably.

Submit

146. Which of the following statements about aliases is NOT true?

Submit

147. Which statement discards all pending data changes

Submit

148. Consider the EMPLOYEES table. Which of the following displays the maximum average salary for each department?

Submit

149. Which of the following statements about aliases is NOT true?

Submit

150. The condition INSERT FIRST command evaluates the WHEN condition in order. For all conditions that are true a row is inserted into the appropriate table.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (150)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
A table can be created with or without data
With SQL, how do you select all the columns from a table named...
A table can be created with or without data.
You can add and drop columns from a table using the ALTER TABLE...
Which keyword is used to provide an alias to a column?
What does SQL stand for?
You can add and drop columns from a table using the ALTER TABLE...
With SQL, how do you select all the records from a table named...
Which of the following is a concatenation operator?
Transaction control determines when data manipulation becomes...
Which of the following is a concatenation operator?
Which keyword is used to provide an alias to a column?
What will be the result of the following SQL statement? (SYSDATE is a...
With SQL, how do you select a column named "FirstName" from...
Which SQL keyword is used to sort the result-set?
Queries containing set operators are called ______ .
With SQL, how can you return the number of records in the...
Transaction control determines when data manipulation becomes...
Privileges, roles, and synonyms are all used to implement security in...
Which symbol do you use if you need to choose all the columns from the...
Which SQL statement is used to update data in a database?
Which SQL statement is used to insert new data in a database?
Queries containing set operators are called __________ .
The OR operator displays a record if ANY conditions listed are true....
What is the most common type of join?
By default, the foreign key restricts deletes of any parent row has a...
You can add to and drop columns from a table using the ALTER TABLE...
The NUMBER data types is usually the best choice for a primary key.
Queries containing set operators are called __________ .
Which of the following is the correct order of keywords for SQL SELECT...
Privileges, roles, and synonyms are all used to implement security in...
Which keyword is used to eliminate duplicate rows in the result?
Which SQL statement is used to extract data from a database?
With SQL, how do you select all the records from a table named...
A table can be created with or without data
Which operator is used to select values within a range?
Queries containing set operators are called __________ .
The result of a SQL SELECT statement is a(n) ________ .
Queries containing set operators are called ______ . 
What will be the result of the following query?SELECT ROUND (63.548,...
The TRUNCATE command removes all data permanently from a table.
By default, the foreign key restricts deletes of any parent row has a...
Which command is used to view the structure of the table LOCATIONS?
The TRUNCATE command removes all data permanently from a table.
What will be the result of the following query?SELECT ROUND (63.548,...
Consider the EMPLOYEES table. Which condition in the WHERE clause...
Which of the following are the five built-in functions provided by...
Consider the EMPLOYEES table. Which condition in the WHERE clause...
Which command is used to view the structure of the table LOCATIONS?
The data dictionary view USER_TAB_PRIVS_MADE lists details of table...
Consider the EMPLOYEES table. Which condition in the WHERE clause...
What will be the result of the following SQL statement? (SYSDATE is a...
By default, the foreign key restricts deletes of any parent row that...
The ______ constraint defines a condition that each row must satisfy.
With SQL, how can you return all the records from a table named...
Which command is used to view the structure of the table LOCATIONS?
To remove duplicate rows from the results of an SQL SELECT statement,...
A SELECT statement that is embedded in a clause of another SELECT...
DML statement such as INSERT, UPDATE, DELETE, and MERGE obtain a lock...
Use the _____ operator to return all rows from multiple tables and...
With SQL, how do you select all the records from a table named...
Which SQL statement is used to return only different values?
With SQL, how can you insert a new record into the "Persons"...
With SQL, how can you insert "Olsen" as the...
Which operator is used to search for a specified pattern in a column?\
Consider the following SQL statement. What will be the result? SELECT...
Use the _______ operator to return all rows from multiple tables and...
Both object and system privileges can be granted through a single role...
The NOT NULL constraint enforces a column to not accept null values
Which of the following is the original purpose of SQL?
You can rename a table with the RENAME or the ALTER TABLE command.
When using LIKE condition which symbol is used to denote one...
Transaction control determines when data manipulates becomes permanent...
The ______ constraint defines a condition that each row must satisfy.
Which symbol is used to create a substitution variable
You can update only a single column at time in a table.
You can place the subquery in a number of SQL clauses, including the...
Queries that return only one row from the inner SELECT statement are...
With SQL, how do you select all the records from a table named...
Write SQL statement for display the names of the employees who are...
What will be the result of the following SQL statement?SELECT...
You can update only a single column at a time in a table.
Constraints always have a name.
Use the _____ operator to return all rows from multiple tables and...
What will be the result of the following SQL statement? (SYSDATE is a...
Which of the following statements is NOT true?
When executed, this statement cannot be rolled back
What will be the result of the following SQL statement?SELECT SUBSTR...
A subquery must be enclosed in _________ .
When using LIKE conditions which symbol is used to denote zero or many...
Consider the EMPLOYEES table. Which of the following conditions in the...
A parent table referenced by a child table may not be dropped.
It is possible to combine from two tables that do not have a primary...
When using LIKE condition which symbol is used to denote one...
You can add a row using SQL in database with which of the following?
The command to eliminate a table from a database is:
Delete the zip codes 02199 and 43011 from the ZIPCODE table. Make the...
Consider the EMPLOYEES table. When condition in the WHERE clause limit...
Any user can grant or revoke ant type of system privileges to or from...
Consider the EMPLOYEES table. Which of the following SQL statements is...
You cannot drop a user if objects exist in the user's schema.
Consider the EMPLOYEES table. Which condition in the WHERE clause...
The UNION and UNION ALL set operator have the opposite effect...
You cannot drop a user if objects exist in the user's schema. 
You can nor selectively delete rows a table.
Consider the EMPLOYEES table. Which of the following conditions in the...
If there are schemas named USERA and USERB, and both have an EMPLOYEES...
Which is right of the following clauses?
The subquery generally executes ______ , and its output is used to...
Consider the EMPLOYEES table. Which of the following SQL statements is...
You can nor selectively delete rows a table.
Which SQL statement is used to create a table in a database?
Consider the SQL statement. Which of the following clauses does not...
Which of the following functions is not single-row function?
Any user can grant or revoke any type of system privilege to or from...
Comparison conditions fall into two classes:
Queries that return more than one row from the inner SELECT statement...
Write SQL statement for increase salary of all managers by 10%
The data of a temporary table is visible to all session.
How can you change "Hansen" into "Nilsen" in the...
To obtain a last names thet student and instructors share, you use the...
Which of the following functions joins two strings together?
The command to remove rows from a table 'CUSTOMER' is:
The data of a temporary table is visible to all session.
What will be the result of the following SQL statement?SELECT...
Which SQL statement is used to create a database?
Consider the EMPLOYEES table. Which of the following  statements...
When inserting data into a table form another table, the table names...
______ clause can be used and is required in the subquery to perform...
The ____ operator compares a value to EACH value returned by a...
Which of the following functions finds the numeric position of a named...
Consider the SQL statement. Which of the following clauses does not...
Consider the EMPLOYEES table. Which of the following statements count...
The ____ operator returns all rows that are selected by either query
Consider the EMPLOYEES table. Which condition in the WHERE clause...
The  ______ operator compares a value to every value returned by...
You cannot order the results of a set operation.
The SQL WHERE clause:
The wildcard in a WHERE clause is useful when?
Which of the following clauses is used to limit the rows that are...
You can not order the results of a set operation
A DISTINCT must always be user in the top-most SELECT statement of a...
Write SQL statement for display the department numbers with more than...
Which of the following SQL statements will generate an error?
The TRANCATE command and the TRUNC function can be used...
Which of the following statements about aliases is NOT true?
Which statement discards all pending data changes
Consider the EMPLOYEES table. Which of the following displays the...
Which of the following statements about aliases is NOT true?
The condition INSERT FIRST command evaluates the WHEN condition in...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!