MCQs > IT & Programming > SQL MCQs > Basic SQL MCQs

Basic SQL MCQ

1. In today's decentralized business world, ________ the most important strategic decisions.

Answer

Correct Answer: Top managers still primarily make

Note: This Question is unanswered, help us to find answer for this one

2. Access does not support the ____ data type.

Answer

Correct Answer: DECIMAL

Note: This Question is unanswered, help us to find answer for this one

3. When using a(n) _____ join, only rows that meet the given criteria are returned.

Answer

Correct Answer: Inner

Note: This Question is unanswered, help us to find answer for this one

4. You can use the ____ command to delete an entire table and its data.

Answer

Correct Answer: DROP TABLE

Note: This Question is unanswered, help us to find answer for this one

5. Use the ____ keyword to enter the computer's date as a data value in the insert command.

Answer

Correct Answer: SYSDATE

Note: This Question is unanswered, help us to find answer for this one

6. To list all the contents of the product table, you would use ____.

Answer

Correct Answer: SELECT * FROM PRODUCT

Note: This Question is unanswered, help us to find answer for this one

7. The operators =, <, >, <=, >=, and <> are referred to as ____ operators.

Answer

Correct Answer: Single-row

Note: This Question is unanswered, help us to find answer for this one

8. In microsoft access, the ____ function displays a value in lowercase letters.

Answer

Correct Answer: ​LCASE

Note: This Question is unanswered, help us to find answer for this one

9. The command to delete a view is ____.

Answer

Correct Answer: DROP TABLE

Note: This Question is unanswered, help us to find answer for this one

10. The maximum width of the number datatype is ____ digits.

Answer

Correct Answer: 38

Note: This Question is unanswered, help us to find answer for this one

11. ____ is one of the categories of update anomalies.

Answer

Correct Answer: Inconsistent data

Note: This Question is unanswered, help us to find answer for this one

12. The system catalog is also called the ____.

Answer

Correct Answer: Data dictionary

Note: This Question is unanswered, help us to find answer for this one

13. The ____ special operator is used to check whether an attribute value is null.

Answer

Correct Answer: NULL

Note: This Question is unanswered, help us to find answer for this one

14. An index can be created ____.

Answer

Correct Answer: ​both a and b

Note: This Question is unanswered, help us to find answer for this one

15. To assign a conditional value, use the ____ function.

Answer

Correct Answer: IIF

Note: This Question is unanswered, help us to find answer for this one

16. The correct data type for the balance column in the customer table is ____.

Answer

Correct Answer: DECIMAL

Note: This Question is unanswered, help us to find answer for this one

17. The syntax for a left outer join is ____.

Answer

Correct Answer: SELECT column-list

Note: This Question is unanswered, help us to find answer for this one

18. The sql command that lets you select attributes from rows in one or more tables is ____.

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

19. The sql command that lets you insert rows into a table is ____.

Answer

Correct Answer: INSERT

Note: This Question is unanswered, help us to find answer for this one

20. The sql ________ statement allows you to combine two different tables.

Answer

Correct Answer: JOIN

Note: This Question is unanswered, help us to find answer for this one

21. Only one ____ constraint can exist for each table.

Answer

Correct Answer: Pimary key

Note: This Question is unanswered, help us to find answer for this one

22. Insert into is an example of ________ code.

Answer

Correct Answer: DML

Note: This Question is unanswered, help us to find answer for this one

23. A ____ file is a text file with a .sql extension that contains sql commands.

Answer

Correct Answer: Script

Note: This Question is unanswered, help us to find answer for this one

24. The syntax for the union query is ____.

Answer

Correct Answer: Query UNION query

Note: This Question is unanswered, help us to find answer for this one

25. In oracle, the ____ table contains information about the columns within tables.

Answer

Correct Answer: DBA_TAB_COLUMNS

Note: This Question is unanswered, help us to find answer for this one

26. To add data from an existing table to a new table, use a select command in a(n) ____ command.

Answer

Correct Answer: INSERT

Note: This Question is unanswered, help us to find answer for this one

27. To include all fields in a sql query, use the ____ symbol after the word select.

Answer

Correct Answer: Asterisk (*)

Note: This Question is unanswered, help us to find answer for this one

28. The sql command ________ defines a logical table from one or more tables or views.

Answer

Correct Answer: Create view

Note: This Question is unanswered, help us to find answer for this one

29. The sql command ________ adds one or more new columns to a table.

Answer

Correct Answer: Alter table

Note: This Question is unanswered, help us to find answer for this one

30. The basic form of an sql retrieval command is ____.

Answer

Correct Answer: SELECT-FROM-WHERE

Note: This Question is unanswered, help us to find answer for this one

31. The ____ function determines the number of rows in a table.

Answer

Correct Answer: Count

Note: This Question is unanswered, help us to find answer for this one

32. The ____ function calculates a total of the values in a column.

Answer

Correct Answer: SUM.

Note: This Question is unanswered, help us to find answer for this one

33. The ____ data type would be appropriate for a fixed-length field designed to hold a person’s name.

Answer

Correct Answer: Text

Note: This Question is unanswered, help us to find answer for this one

34. The ____ data type stores only the actual character string.

Answer

Correct Answer: VARCHAR

Note: This Question is unanswered, help us to find answer for this one

35. The ____ data type is used to store integers.

Answer

Correct Answer: INT

Note: This Question is unanswered, help us to find answer for this one

36. The ____ command is used with the alter table command to modify the table by deleting a column.

Answer

Correct Answer: DROP

Note: This Question is unanswered, help us to find answer for this one

37. The ____ command is permanent.

Answer

Correct Answer: COMMIT

Note: This Question is unanswered, help us to find answer for this one

38. The ____ clause lets you group data on a particular column.

Answer

Correct Answer: GROUP BY

Note: This Question is unanswered, help us to find answer for this one

39. The ansi standard defines _____ type(s) of outer join(s)

Answer

Correct Answer: Three

Note: This Question is unanswered, help us to find answer for this one

40. The action of including only some columns for output while retrieving data is known as ____.

Answer

Correct Answer: Projecting

Note: This Question is unanswered, help us to find answer for this one

41. The ________ keyword is required to use relational operators in a case statement.

Answer

Correct Answer: Is

Note: This Question is unanswered, help us to find answer for this one

42. The _____ operator could be used in place of minus if the dbms does not support it.

Answer

Correct Answer: Not in

Note: This Question is unanswered, help us to find answer for this one

43. The _____ command replaces the ***** in the syntax of the update command, shown above.

Answer

Correct Answer: SET columnname = expression

Note: This Question is unanswered, help us to find answer for this one

44. The ____ wildcard symbol represents any individual character.

Answer

Correct Answer: Underscore ( _ )

Note: This Question is unanswered, help us to find answer for this one

45. The ____ operator uses one or more wildcard characters to test for a pattern match.

Answer

Correct Answer: LIKE

Note: This Question is unanswered, help us to find answer for this one

46. The ____ operator specifies a range of values in a condition.

Answer

Correct Answer: BETWEEN

Note: This Question is unanswered, help us to find answer for this one

47. The ____ operator is used to determine whether a condition is present in a subquery.

Answer

Correct Answer: EXISTS

Note: This Question is unanswered, help us to find answer for this one

48. You indicate the end of a command by typing a ____.

Answer

Correct Answer: Semicolon

Note: This Question is unanswered, help us to find answer for this one

49. You can use the ____ command to create a new table using data in an existing table.

Answer

Correct Answer: CREATE TABLE

Note: This Question is unanswered, help us to find answer for this one

50. You can save the results of a query as a table by including the ____ clause in the query.

Answer

Correct Answer: Into

Note: This Question is unanswered, help us to find answer for this one

51. You can join tables by using a condition in the ____ clause.

Answer

Correct Answer: WHERE

Note: This Question is unanswered, help us to find answer for this one

52. When you use the ____ function, you can use the asterisk (*) to represent any column.

Answer

Correct Answer: COUNT

Note: This Question is unanswered, help us to find answer for this one

53. The _____ command restricts the selection of grouped rows based on a condition.

Answer

Correct Answer: HAVING

Note: This Question is unanswered, help us to find answer for this one

54. The structure of the table can be displayed with the _________ command:

Answer

Correct Answer: Describe

Note: This Question is unanswered, help us to find answer for this one

55. Sql was developed in the mid-____.

Answer

Correct Answer: 1970s

Note: This Question is unanswered, help us to find answer for this one

56. Sql uses search operators such as ____ to form complex queries.

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

57. Sql requires the use of the _____ command to enter data into a table.

Answer

Correct Answer: INSERT

Note: This Question is unanswered, help us to find answer for this one

58. Sql queries that use exists and not exists are ________.

Answer

Correct Answer: Correlated subqueries

Note: This Question is unanswered, help us to find answer for this one

59. Sql links tables together by ________.

Answer

Correct Answer: Using primary keys and foreign keys

Note: This Question is unanswered, help us to find answer for this one

60. Sql is an example of a ________ style of programming language.

Answer

Correct Answer: 4GL

Note: This Question is unanswered, help us to find answer for this one

61. Sql ________ statements may change the contents of a database.

Answer

Correct Answer: UPDATE, DELETE, INSERT

Note: This Question is unanswered, help us to find answer for this one

62. Popular ____ include access, oracle, db2, mysql, and sql server.

Answer

Correct Answer: DBMS

Note: This Question is unanswered, help us to find answer for this one

63. Oracle and sql server support the ____ operator but microsoft access does not.

Answer

Correct Answer: INTERSECT

Note: This Question is unanswered, help us to find answer for this one

64. Microsoft azure sql is an example of a _________________ database.

Answer

Correct Answer: Cloud

Note: This Question is unanswered, help us to find answer for this one

65. Insert, update, and delete statements can be referred to as ______________ queries.

Answer

Correct Answer: Action

Note: This Question is unanswered, help us to find answer for this one

66. In the select clause, you can use the ____ symbol to indicate that you want to include all columns.

Answer

Correct Answer: *

Note: This Question is unanswered, help us to find answer for this one

67. In subquery terminology, the first query in the sql statement is known as the _____ query.

Answer

Correct Answer: Outer

Note: This Question is unanswered, help us to find answer for this one

68. In sql, you use the ____ command to query a database.

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

69. In sql, use the ____ data type for variable-length character columns.

Answer

Correct Answer: VARCHAR

Note: This Question is unanswered, help us to find answer for this one

70. In sql server, you can use the ____ function to obtain today’s date.

Answer

Correct Answer: GETDATE()

Note: This Question is unanswered, help us to find answer for this one

71. In oracle, use the ____ command to display the structure of a table.

Answer

Correct Answer: DESCRIBE

Note: This Question is unanswered, help us to find answer for this one

72. In oracle, the _____ function converts a date to a character string.

Answer

Correct Answer: TO_CHAR()

Note: This Question is unanswered, help us to find answer for this one

73. In oracle, the ____ table contains information about the tables known to sql.

Answer

Correct Answer: DBA_TABLES

Note: This Question is unanswered, help us to find answer for this one

74. In many languages the case structure is called a ________ statement.

Answer

Correct Answer: Switch

Note: This Question is unanswered, help us to find answer for this one

75. In an entity-relationship (e-r) diagram, ____ are used to represent an entity.

Answer

Correct Answer: Rectangles

Note: This Question is unanswered, help us to find answer for this one

76. In access sql, the ____ is used as a wildcard to represent any individual character.

Answer

Correct Answer: Question Mark (?)

Note: This Question is unanswered, help us to find answer for this one

77. If you have three different transitive dependencies, _____ different determinant(s) exist.

Answer

Correct Answer: Three

Note: This Question is unanswered, help us to find answer for this one

78. Commands used to modify data are called ____ commands.

Answer

Correct Answer: DML

Note: This Question is unanswered, help us to find answer for this one

79. Columns in a database table contain data with the same _________.

Answer

Correct Answer: Type

Note: This Question is unanswered, help us to find answer for this one

80. All join conditions are connected through a(n) _____ logical operator.

Answer

Correct Answer: AND

Note: This Question is unanswered, help us to find answer for this one

81. A dbms lets you assign users to ____.

Answer

Correct Answer: Groups

Note: This Question is unanswered, help us to find answer for this one

82. A ________ is a temporary table used in the from clause of an sql query.

Answer

Correct Answer: Derived table

Note: This Question is unanswered, help us to find answer for this one

83. A ____ query creates a new table using the query results.

Answer

Correct Answer: Make-table

Note: This Question is unanswered, help us to find answer for this one

84. A ____ is a pointer to a row in the collection of rows retrieved by an sql command.

Answer

Correct Answer: Cursor

Note: This Question is unanswered, help us to find answer for this one

85. All statements in SQL end with:

Answer

Correct Answer: Semicolon

Note: This Question is unanswered, help us to find answer for this one

86. Which of the following is an internet media type for SQL? (check any that apply)

Answer

Correct Answer: application/sql
application/x-sql

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

87. Which of the following is not a comparison operator in SQL?

Answer

Correct Answer: ==

Note: This Question is unanswered, help us to find answer for this one

88.

Which of the following is the correct syntax for writing sub query?


Answer

Correct Answer:

SELECT sub.*

      FROM (

            SELECT *

              FROM abc

             WHERE day = 'Friday'

           ) sub

     WHERE sub.resolution = 'NONE'


Note: This Question is unanswered, help us to find answer for this one

89. Which of the following can be used with LIKE operator?

Answer

Correct Answer: %

Note: This Question is unanswered, help us to find answer for this one

90. Which statement INSERTS or UPDATES based on the given conditions?

Answer

Correct Answer: Merge

Note: This Question is unanswered, help us to find answer for this one

91. If a column is defined as decimal(5,2), what does that mean?

Answer

Correct Answer: A number that has 3 digits before the decimal and 2 digits after the decimal

Note: This Question is unanswered, help us to find answer for this one

92. Is there a difference between AND and & (ampersand) in SQL?

Answer

Correct Answer: AND has lower priority in comparison with ampersand;

Note: This Question is unanswered, help us to find answer for this one

93. Which of the following can you not do with SQL?

Answer

Correct Answer: Send data from databases

Note: This Question is unanswered, help us to find answer for this one

94. Which operator allows you to specify multiple values in a WHERE clause?

Answer

Correct Answer: IN

Note: This Question is unanswered, help us to find answer for this one

95. Which of the following is an SQL operator?

Answer

Correct Answer: LIKE

Note: This Question is unanswered, help us to find answer for this one

96. Which of the following can be used to delete all the data from a table?

Answer

Correct Answer: TRUNCATE

Note: This Question is unanswered, help us to find answer for this one

97.

Suppose you have the following table with columns:

+------+------+------------+--------------------+

| id   | name | work_date  | salary                     |

+------+------+------------+--------------------+

|    1 | John | 2016-01-24 |                300 |

To get an output like '1John2016-01-24' which of the following functions can be used?


Answer

Correct Answer:

CONCAT 


Note: This Question is unanswered, help us to find answer for this one

98. Which of the following functions are related to XML? (check any that apply)

Answer

Correct Answer: XMLTABLE
DEPTH

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

99. Which of the following is the name of ** operator?

Answer

Correct Answer: Exponentiation

Note: This Question is unanswered, help us to find answer for this one

100. Transactions, if available, wrap ___ operations.

Answer

Correct Answer: DML

Note: This Question is unanswered, help us to find answer for this one

101.

Consider two tables A and B having only one column each and having these values:

A = [0, 1, 2, 3, 4, 5]

B = [5, 6, 7, 8, 9, 10]

The number of records in result of UNION operator on these tables will be?


Answer

Correct Answer:

11


Note: This Question is unanswered, help us to find answer for this one

102. Which one of the following is the correct way to delete a column from a table?

Answer

Correct Answer: ALTER TABLE table_name DROP COLUMN column_name

Note: This Question is unanswered, help us to find answer for this one

103.

Suppose a table CUSTOMERS has the following records: 

+---+--------+----------+

| ID | CUSTOMER| INCOME |

+----+---------+---------+

| 1 | Roman | 150000 |

| 2 | Andrew | 200000 |

| 3 | Christi | 240000 |

| 4 | Ivan | 240000 |

| 5 | John | 240000 |

| 6 | Ann | 240000 |

+----+---------+---------+`

Which of the following statements will select the customers with income more than 200000? (check any that apply)


Answer

Correct Answer:

SELECT * FROM CUSTOMERS WHERE ID IN (SELECT ID FROM CUSTOMERS WHERE INCOME > 200000);



SELECT * FROM CUSTOMERS WHERE ID IN (SELECT ID FROM CUSTOMERS WHERE INCOME >= 200001);



Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

104. If AND and OR are used after WHERE clause ...

Answer

Correct Answer: AND has higher priority;

Note: This Question is unanswered, help us to find answer for this one

105. Which of the following is not a DDL statement?

Answer

Correct Answer: INNER JOIN

Note: This Question is unanswered, help us to find answer for this one

106. Which of the following SQL commands can use a foreign key constraint? (check any that apply)

Answer

Correct Answer: CREATE
ALTER

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

107. Which of the following SQL commands can be included to sort data?

Answer

Correct Answer: ORDER BY

Note: This Question is unanswered, help us to find answer for this one

108.

For a table with the following data:

Name    Marks

John    400

Brown    200

Darwin    350

Kamy    250

Which of the following queries will give you names of all students having above average marks?


Answer

Correct Answer:

SELECT name FROM student WHERE marks > (SELECT AVG(marks) FROM student)


Note: This Question is unanswered, help us to find answer for this one

109. Which of the following is not a valid SQL operator?

Answer

Correct Answer: EQUAL

Note: This Question is unanswered, help us to find answer for this one

110. Which of the following statements is/are true?

Answer

Correct Answer: Alter and Drop are DDL commands.

Note: This Question is unanswered, help us to find answer for this one

111. Which of the following operators can not be used in the 'WHERE' clause?

Answer

Correct Answer: <<

Note: This Question is unanswered, help us to find answer for this one

112. What is the difference between CHAR and VARCHAR data types?

Answer

Correct Answer: CHAR takes fixed space whereas VARCHAR takes variable space.

Note: This Question is unanswered, help us to find answer for this one

113.

Assuming there are multiple rows in the 'Commission_Agents' table with entries for commission agents from different departments, what is the error in the following query:

SELECT name, department_id, commission_percentage from Commision_Agents 

WHERE commission_percentage = (SELECT min(commission_percentage)  FROM Commision_Agents GROUP BY department_id);

Answer

Correct Answer:

You cannot use '=' operator as the sub-query is returning multiple results 


Note: This Question is unanswered, help us to find answer for this one

114. What keyword is used to filter values obtained by applying aggregate functions in the query results using GROUP BY clause?

Answer

Correct Answer: HAVING;

Note: This Question is unanswered, help us to find answer for this one

115. What does MID() function do?

Answer

Correct Answer: Extract characters from a text field.

Note: This Question is unanswered, help us to find answer for this one

116. To create a table column which should not accept blank values, which of the following can be used?

Answer

Correct Answer: NOT NULL

Note: This Question is unanswered, help us to find answer for this one

117. Which of the following is not a DDL command?

Answer

Correct Answer: ALERT

Note: This Question is unanswered, help us to find answer for this one

118. Which of the following is not a DDL Command?

Answer

Correct Answer: UPDATE

Note: This Question is unanswered, help us to find answer for this one

119.

Which of the following command will work as per below statement

"We need to replace a string named "foo" with "bar" in a column having ID <= 4"


Answer

Correct Answer:

UPDATE table_name

SET column_name = REPLACE(column_name, 'foo', 'bar')

WHERE ID <= 4; 


Note: This Question is unanswered, help us to find answer for this one

120.

Consider two tables A and B,  having only one column each and having these values:

A = [0, 1, 2, 3, 4, 5]

B = [5, 6, 7, 8, 9, 10]

The result of the UNION ALL operator on these tables will be?


Answer

Correct Answer:

[0, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 10]


Note: This Question is unanswered, help us to find answer for this one

121. To speed up searches in tables we can?

Answer

Correct Answer: create Index

Note: This Question is unanswered, help us to find answer for this one

122. Which of the following clauses can be included in SELECT to fetch 10 records only? (Check all that apply)

Answer

Correct Answer: LIMIT 10
TOP 10
LIMIT 10 OFFSET 1

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

123. To create a column in a table with a fixed length(n) string, which of the following data type is recommended?

Answer

Correct Answer: CHAR

Note: This Question is unanswered, help us to find answer for this one

124.

For a table with the following columns:

product_id, product_name, supplier_id, price

Which of the following queries will give you the supplier with the maximum average price of products?


Answer

Correct Answer:

SELECT supplier_id, avg(price) FROM Products group by supplier_id having avg(price) in (Select max(avg_price) from (Select avg(price) as avg_price from products group by supplier_id))


Note: This Question is unanswered, help us to find answer for this one

125. Which of the following commands is used to explain access to data?

Answer

Correct Answer: EXPLAIN PLAN

Note: This Question is unanswered, help us to find answer for this one

126. Which of the following operators can be used to check if a column contains NULL value?

Answer

Correct Answer: IS NULL

Note: This Question is unanswered, help us to find answer for this one

127. Which query can be used to copy all records from table1 into table2 provided they have the same columns?

Answer

Correct Answer: INSERT INTO table2 SELECT * FROM table1;

Note: This Question is unanswered, help us to find answer for this one

128.

What will be the output of the following query?

SELECT (ROUND(3.5 MOD 4)) from DUAL;


Answer

Correct Answer:

4


Note: This Question is unanswered, help us to find answer for this one

129.

What will be the output of the following query?

SELECT SUBSTRING('987654321', INSTR('foobar', 'o'), 5) from DUAL; 


Answer

Correct Answer:

87654 


Note: This Question is unanswered, help us to find answer for this one

130. Which of the following is not true about the COMMIT command?

Answer

Correct Answer: A COMMIT will end all the transactions that were initiated before it.

Note: This Question is unanswered, help us to find answer for this one

131. What is the difference between decimal and numeric data types?

Answer

Correct Answer: There is no difference.

Note: This Question is unanswered, help us to find answer for this one

132. Which of the following is true for creating SQL Views? (check any that apply)

Answer

Correct Answer: If you have a complex select with lots of joins, you can implement it in a view and simply call the view without need to consider all these joins.
Each user can be given permission to access the database only through a small set of views that contain the specific data the user is authorized to see, thus restricting the user's access to stored data
A view can draw data from several different tables and present it as a single table, turning multi-table queries into single-table queries against the view.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

133.

How would you create a table with one column having Integer precision of 10?

Answer

Correct Answer:

CREATE TABLE table_name

(

column_name1 INTEGER(10),

);


Note: This Question is unanswered, help us to find answer for this one

134.

Consider the following Attendance table which contains an employee attendance record for a company:

EmployeeID (int), LoginTime (time), LogoutTime (time)

Which of these SELECT statements will list the employee ID that has logged-in most recently?


Answer

Correct Answer:

SELECT TOP 1 a.EmployeeID

FROM Attendance a

WHERE a.LoginTime = (SELECT MAX(b.LoginTime) FROM Attendance b)


Note: This Question is unanswered, help us to find answer for this one

135. Referential Integrity means that among relations

Answer

Correct Answer: A record cannot be deleted if it has any associated data.

Note: This Question is unanswered, help us to find answer for this one

136. Which of the following only works with GROUP BY clause?

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

137. How can you improve the execution speed of the following query: Select * from Products Where City like '%gen%'

Answer

Correct Answer: None of these will improve the execution speed.

Note: This Question is unanswered, help us to find answer for this one

138. All the following are properties of the Relational tables expect

Answer

Correct Answer: Column values are of the different kind.

Note: This Question is unanswered, help us to find answer for this one

139. Complete the sentence: SELECT animals ______ types WHERE id = 5;

Answer

Correct Answer: FROM

Note: This Question is unanswered, help us to find answer for this one

140. What is T/SQL?

Answer

Correct Answer: It is a proprietary version of SQL developed by Microsoft for their SQL Server.

Note: This Question is unanswered, help us to find answer for this one

141. How many Oracle installations does it take to execute a query?

Answer

Correct Answer: Four: three to hold it down, and one to rip its head off.

Note: This Question is unanswered, help us to find answer for this one

142. what listing does represent a form of SQL

Answer

Correct Answer: minus

Note: This Question is unanswered, help us to find answer for this one

143. what keyword below can replace NOT EXIST in SQL

Answer

Correct Answer: MINUS

Note: This Question is unanswered, help us to find answer for this one

144. Which of the following cannot be used in a subquery?

Answer

Correct Answer: ORDER BY

Note: This Question is unanswered, help us to find answer for this one

145. TRUE/FALSE. All of the SQL language, syntax, and commands are universal across all major database platforms (Oracle, MySQL, and MS-SQL).

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

146. How to Extract characters from a text field?

Answer

Correct Answer: MID()

Note: This Question is unanswered, help us to find answer for this one

147. SELECT dg.* FROM dgpricing dg LEFT OUTER JOIN icitem ic ON dg.Partno = ic.Item What columns does this query return?

Answer

Correct Answer: Columns from dg table

Note: This Question is unanswered, help us to find answer for this one

148. SELECT Customers.* FROM Customers LEFT OUTER JOIN Sales ON Customers.CustNo = Sales.CustNo What columns does this query return?

Answer

Correct Answer: All columns from Customers table

Note: This Question is unanswered, help us to find answer for this one

149. What is function for adding all the records of a column?

Answer

Correct Answer: SUM()

Note: This Question is unanswered, help us to find answer for this one

150. How do you select the first record of a table?

Answer

Correct Answer: SELECT top 1 * FROM dgpricing

Note: This Question is unanswered, help us to find answer for this one

151. What's the difference between "_" and "%" in sql wildcard

Answer

Correct Answer: % is a substitute for zero or more characters, while _ is a substitute for a single character

Note: This Question is unanswered, help us to find answer for this one

152. What is the Difference between Varchar and Char Datatypes in SQL?

Answer

Correct Answer: VarChar is the Variable length strings with the maximum specified limit. Char are Fixed length strings

Note: This Question is unanswered, help us to find answer for this one

153. How to create indexes?

Answer

Correct Answer: CREATE INDEX index_name ON table_name (column_name)

Note: This Question is unanswered, help us to find answer for this one

154. When an aliases is used to rename a table in a particular SQL statement. The actual table name in the database is also renamed?

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

155. Other things being equal, which queries are the fastest?

Answer

Correct Answer: Queries including uncorrelated subqueries.

Note: This Question is unanswered, help us to find answer for this one

156. Which statement can be used to encrypt data in SQL?

Answer

Correct Answer: EncryptByKey(encryption_key_guid, source_data)

Note: This Question is unanswered, help us to find answer for this one

157. When using logical (truth value) operations, how many logical results are there and what are they?

Answer

Correct Answer: 3: True, False and Unknown

Note: This Question is unanswered, help us to find answer for this one

158. what does the following sql statement do? SELECT TOP(10) WITH TIES Name, Salary FROM Employees ORDER BY Salary DESC

Answer

Correct Answer: Get the top 10 records with the highest salary, and any record with a Salary that matches the last result

Note: This Question is unanswered, help us to find answer for this one

159. What is executed first in SQL?

Answer

Correct Answer: FROM

Note: This Question is unanswered, help us to find answer for this one

160. What is the equivalent sql statement of following statement? Select sum(column1) a, count(column2) b from TableA where 1=2

Answer

Correct Answer: Select 0 a, 0 b from TableA

Note: This Question is unanswered, help us to find answer for this one

161. How many TRIGGERS are allowed in MySql table

Answer

Correct Answer: 6

Note: This Question is unanswered, help us to find answer for this one

162. How can you prevent a phantom read?

Answer

Correct Answer: By changing the isolation level to snapshot or serializable

Note: This Question is unanswered, help us to find answer for this one

163. Which is the highest isolation level?

Answer

Correct Answer: Serializable

Note: This Question is unanswered, help us to find answer for this one

164. A recursive CTE would contain which of the following?

Answer

Correct Answer: Union All

Note: This Question is unanswered, help us to find answer for this one

165. What code would find the position of the character 'D' in the string 'ABCDE' - starting at position 1?

Answer

Correct Answer: CHARINDEX('D','ABCDE',1)

Note: This Question is unanswered, help us to find answer for this one

166. How can you insert several records in TABLE1 that already exist in TABLE2?

Answer

Correct Answer: insert into TABLE1 (FIELD1) select FIELD2 from TABLE2

Note: This Question is unanswered, help us to find answer for this one

167. What is the difference between a unique key and primary key?

Answer

Correct Answer: A unique key will allow NULL values

Note: This Question is unanswered, help us to find answer for this one

168. What are the differences between MySQL_fetch_array(), MySQL_fetch_object(), MySQL_fetch_row()

Answer

Correct Answer: The mysql_fetch_object() returns the result from the database as an object only.

Note: This Question is unanswered, help us to find answer for this one

169. which of the following is NOT a SQL wildcard

Answer

Correct Answer: ~

Note: This Question is unanswered, help us to find answer for this one

170. Which of the following KEYWORDS will return the first NON-NULL value from a list of columns?

Answer

Correct Answer: COALESCE

Note: This Question is unanswered, help us to find answer for this one

171. Which of the following types of triggers can be used with a view?

Answer

Correct Answer: Instead of Update

Note: This Question is unanswered, help us to find answer for this one

172. What is a collation?

Answer

Correct Answer: A set of rules that sort and compare characters.

Note: This Question is unanswered, help us to find answer for this one

173. How many clustered indexes can a table have?

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one

174. Which of these is not a valid constraint?

Answer

Correct Answer: EXISTS

Note: This Question is unanswered, help us to find answer for this one

175. Which is the only proven way to prevent SQL Injection

Answer

Correct Answer: Use parameters to hold user inputs

Note: This Question is unanswered, help us to find answer for this one

176. Which of the following statements about indexes is NOT correct?

Answer

Correct Answer: Adding additional indexes cannot decrease the performance of your database.

Note: This Question is unanswered, help us to find answer for this one

177. If you INNER JOIN tableA (which has 10 rows) with tableB (which has 5 rows), what is the smallest possible amount of rows that can be returned?

Answer

Correct Answer: 0

Note: This Question is unanswered, help us to find answer for this one

178. Which is the lowest isolation level to ensure dirty reads can not happen

Answer

Correct Answer: Read committed

Note: This Question is unanswered, help us to find answer for this one

179. Which of the following is a valid isolation level?

Answer

Correct Answer: Read Commited

Note: This Question is unanswered, help us to find answer for this one

180. What is a phantom read?

Answer

Correct Answer: A phantom read occurs when, in the course of a transaction, two identical queries are executed, and the collection of rows returned by the second query is different from the first.

Note: This Question is unanswered, help us to find answer for this one

181. What is the correct syntax for using a CASE statement?

Answer

Correct Answer: CASE {value/column} WHEN {Boolean Condition} THEN {Value} ELSE {Value} END

Note: This Question is unanswered, help us to find answer for this one

182. Where can we find subquery within another statement?

Answer

Correct Answer: In all these clauses.

Note: This Question is unanswered, help us to find answer for this one

183. Which type of join will yield a Cartesian product?

Answer

Correct Answer: Cross Join

Note: This Question is unanswered, help us to find answer for this one

184. Must CASE statements always be indented?

Answer

Correct Answer: No.

Note: This Question is unanswered, help us to find answer for this one

185. What is an alternate way of writing the following statement: WHERE "column_name" IN ('value1')

Answer

Correct Answer: WHERE "column_name" = 'value1'

Note: This Question is unanswered, help us to find answer for this one

186. What is the difference between WHERE and HAVING clauses?

Answer

Correct Answer: HAVING filter records after the GROUP BY while WHERE filter records before the GROUP BY clause

Note: This Question is unanswered, help us to find answer for this one

187. What is a common schema name?

Answer

Correct Answer: dbo

Note: This Question is unanswered, help us to find answer for this one

188. What keyword is used in conjunction with the INNER JOIN keywords to return rows when there is at least one match in both tables?

Answer

Correct Answer: ON

Note: This Question is unanswered, help us to find answer for this one

189. Which of the following DROP statements is incorrect?

Answer

Correct Answer: DROP ROW

Note: This Question is unanswered, help us to find answer for this one

190. A trigger is a database object that is attached to a table. It is most similar to what other database process?

Answer

Correct Answer: stored procedure

Note: This Question is unanswered, help us to find answer for this one

191. What visual technique is commonly used to format subqueries?

Answer

Correct Answer: indenting

Note: This Question is unanswered, help us to find answer for this one

192. What of the following is an operator for nonequality?

Answer

Correct Answer: less than greater than (<>)

Note: This Question is unanswered, help us to find answer for this one

193. What function returns the highest value in a column?

Answer

Correct Answer: MAX()

Note: This Question is unanswered, help us to find answer for this one

194. What function counts the number of rows in a column?

Answer

Correct Answer: COUNT()

Note: This Question is unanswered, help us to find answer for this one

195. Which character is used to retrieve all columns of data?

Answer

Correct Answer: asterisk (*)

Note: This Question is unanswered, help us to find answer for this one

196. Which of the following is NOT a basic SQL statement?

Answer

Correct Answer: QUERY

Note: This Question is unanswered, help us to find answer for this one

197. Which character is used to end a SQL statement?

Answer

Correct Answer: semicolon (;)

Note: This Question is unanswered, help us to find answer for this one

198. True or False: An ORDER BY clause is optional in a query.

Answer

Correct Answer: True.

Note: This Question is unanswered, help us to find answer for this one

199. Of the following sequences which one is in the correct order?

Answer

Correct Answer: SELECT | FROM | GROUP BY | HAVING

Note: This Question is unanswered, help us to find answer for this one

200. What statement must be placed in the blank space at the beginning of this query in order for it to be valid? ______ Movie.title, COUNT(*) AS Directors FROM Movie JOIN Movie_director ON Movie.isbn = Movie_director.isbn GROUP BY Movie.title

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

201. True or false The ORDER BY keyword is used to sort the result-set by one or more columns.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

202. What is DDL Stand for?

Answer

Correct Answer: Data Definition Language

Note: This Question is unanswered, help us to find answer for this one

203. What keyword is used to retrieve table data?

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

204. Which of the following is NOT included as a field in the timestamp data type?

Answer

Correct Answer: Century

Note: This Question is unanswered, help us to find answer for this one

205. Which command is used to sort retrieved data?

Answer

Correct Answer: ORDER BY

Note: This Question is unanswered, help us to find answer for this one

206. True or False: All SQL queries must contain a WHERE clause.

Answer

Correct Answer: False.

Note: This Question is unanswered, help us to find answer for this one

207. What keyword is used to check for no value?

Answer

Correct Answer: NULL

Note: This Question is unanswered, help us to find answer for this one

208. When sorting by multiple columns, which character is used to separate column names?

Answer

Correct Answer: coma (,)

Note: This Question is unanswered, help us to find answer for this one

209. Which keyword is used to retrieve only certain rows of data?

Answer

Correct Answer: WHERE

Note: This Question is unanswered, help us to find answer for this one

210. Which keyword is used to assign an alias?

Answer

Correct Answer: AS

Note: This Question is unanswered, help us to find answer for this one

211. What function returns the lowest value in a column?

Answer

Correct Answer: MIN()

Note: This Question is unanswered, help us to find answer for this one

212. The FROM keyword is used to identify which piece of information?

Answer

Correct Answer: table name

Note: This Question is unanswered, help us to find answer for this one

213. The 'JOIN' keyword is used to:

Answer

Correct Answer: Join two tables in a query operation.

Note: This Question is unanswered, help us to find answer for this one

214. What is another name for a table row?

Answer

Correct Answer: record

Note: This Question is unanswered, help us to find answer for this one

215. What is the definition of a foreign key?

Answer

Correct Answer: A field in a relational table that matches the primary key column of another table.

Note: This Question is unanswered, help us to find answer for this one

216. When accessing data from a table which keyword is used immediately before the table name? (Example: SELECT column_name _______ table_name;)

Answer

Correct Answer: FROM

Note: This Question is unanswered, help us to find answer for this one

217. What does the acronym SQL stand for?

Answer

Correct Answer: Structured Query Language

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: INSERT

Note: This Question is unanswered, help us to find answer for this one

219. Which aggregate function returns the total of the values in a column?

Answer

Correct Answer: SUM()

Note: This Question is unanswered, help us to find answer for this one

220. What function is used to remove padded spaces?

Answer

Correct Answer: TRIM()

Note: This Question is unanswered, help us to find answer for this one

221. What is the difference between DROP and DELETE.

Answer

Correct Answer: DELETE removes a row in the table and DROP removes the entire table.

Note: This Question is unanswered, help us to find answer for this one

222. Which of the following statements can be used to undo a transaction?

Answer

Correct Answer: ROLLBACK

Note: This Question is unanswered, help us to find answer for this one

223. What is one objective of database normalization?

Answer

Correct Answer: reducing redundancy

Note: This Question is unanswered, help us to find answer for this one

224. =, <>, >, <, >=, <=, BETWEEN, LIKE, and IN are referred to as _____

Answer

Correct Answer: operators

Note: This Question is unanswered, help us to find answer for this one

225. What does RDBMS mean?

Answer

Correct Answer: Relational Database Management System

Note: This Question is unanswered, help us to find answer for this one

226. Which SQL function or feature returns a single value, calculated from values in a column?

Answer

Correct Answer: aggregate function

Note: This Question is unanswered, help us to find answer for this one

227. What is the difference with using IN or equal(=) operator to filter records?

Answer

Correct Answer: Equal(=) operator filters based on a single value whereas the IN operator may filter on multiple values

Note: This Question is unanswered, help us to find answer for this one

228. Which keyword is used to sort retrieved data in reverse order?

Answer

Correct Answer: DESC

Note: This Question is unanswered, help us to find answer for this one

229. A primary key made up of more than one column is referred to as what kind of key?

Answer

Correct Answer: composite key

Note: This Question is unanswered, help us to find answer for this one

230. Which of the following is the correct syntax to update a table?

Answer

Correct Answer: UPDATE "table name" SET "column name" = <value> WHERE <constraint>;

Note: This Question is unanswered, help us to find answer for this one

231. If tableA is CROSS JOINED to tableB, tableA has 10 rows and tableB has 5 rows, what is the greatest possible size of the result set?

Answer

Correct Answer: 50

Note: This Question is unanswered, help us to find answer for this one

232. What is one of the purposes of normalization?

Answer

Correct Answer: Eliminate redundancy

Note: This Question is unanswered, help us to find answer for this one

233. Which of the following is NOT a language element of SQL?

Answer

Correct Answer: Data mining

Note: This Question is unanswered, help us to find answer for this one

234. In SQL what is the meaning of NULL?

Answer

Correct Answer: no value

Note: This Question is unanswered, help us to find answer for this one

235. What function calculates a column's average value?

Answer

Correct Answer: AVG()

Note: This Question is unanswered, help us to find answer for this one

236. What term is used to describe the "layout" of a database or the blueprint that outlines the way data is organized into tables?

Answer

Correct Answer: schema

Note: This Question is unanswered, help us to find answer for this one

237. What keyword is used in conjunction with the WHERE clause when creating a subquery?

Answer

Correct Answer: IN

Note: This Question is unanswered, help us to find answer for this one

238. How many primary keys can a table have?

Answer

Correct Answer: one

Note: This Question is unanswered, help us to find answer for this one

239. What is the name for a query embedded inside another query?

Answer

Correct Answer: subquery

Note: This Question is unanswered, help us to find answer for this one

240. What is the name of a mechanism used to associate tables within a SELECT statement?

Answer

Correct Answer: join

Note: This Question is unanswered, help us to find answer for this one

241. What keyword is used with aggregate functions to include only unique values in the calculation?

Answer

Correct Answer: DISTINCT

Note: This Question is unanswered, help us to find answer for this one

242. An asterisk after SELECT can be used to return all ________ of a table.

Answer

Correct Answer: columns

Note: This Question is unanswered, help us to find answer for this one

243. Which keyword is used more than once in a SQL statement that contains a subquery?

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

244. Which of the following names is NOT a SQL based RDBMS?

Answer

Correct Answer: MongoDB

Note: This Question is unanswered, help us to find answer for this one

245. What is the correct syntax to concatenate the contents of one column (col1) to the contents of another column (col2) in a query?

Answer

Correct Answer: concat(col1, col2)

Note: This Question is unanswered, help us to find answer for this one

246. What keyword is used to create a table alias?

Answer

Correct Answer: AS

Note: This Question is unanswered, help us to find answer for this one

247. The HAVING clause is used in conjunction with (and immediately after) what other clause?

Answer

Correct Answer: GROUP BY

Note: This Question is unanswered, help us to find answer for this one

248. Which of the following are type(s) of DML Triggers?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

249. Which symbol can be used to indicate a "wild card" to substitute for one or more characters when searching for string in a database?

Answer

Correct Answer: %

Note: This Question is unanswered, help us to find answer for this one

250. What happens if you omit the WHERE clause in a SQL DELETE query?

Answer

Correct Answer: All records will be deleted.

Note: This Question is unanswered, help us to find answer for this one

251. What keyword is used to check for a range of values?

Answer

Correct Answer: BETWEEN

Note: This Question is unanswered, help us to find answer for this one

252. What clause is used to sort data and group it?

Answer

Correct Answer: GROUP BY

Note: This Question is unanswered, help us to find answer for this one

253. True or False? This query is valid the way it is structured. SELECT * FROM Prospects WHERE assignment_type <> 'Team' AND criteria is not null

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

254. The HAVING clause can be used for what purpose?

Answer

Correct Answer: To be used for filtering based on the outcome of aggregate functions.

Note: This Question is unanswered, help us to find answer for this one

255. What is the term for a set of data elements (values) organized using rows and columns?

Answer

Correct Answer: table

Note: This Question is unanswered, help us to find answer for this one

256. What is the term for a column (or set of columns) whose values uniquely identify every row in a table?

Answer

Correct Answer: primary key

Note: This Question is unanswered, help us to find answer for this one

257. What character is used to connect a table name with a column name to create a fully qualified column name?

Answer

Correct Answer: dot (.)

Note: This Question is unanswered, help us to find answer for this one

258. The DDL term "DROP" does what?

Answer

Correct Answer: Deletes a database, table, index or column.

Note: This Question is unanswered, help us to find answer for this one

259. SELECT * FROM tablea, tableb WHERE tablea.DepartmentID = tableb.DepartmentID; Which of these keywords will have the same effect as the above query?

Answer

Correct Answer: Inner Join

Note: This Question is unanswered, help us to find answer for this one

260. Which statement can be used to repeat the execution of a code block as long as a specified condition returns TRUE?

Answer

Correct Answer: WHILE statement

Note: This Question is unanswered, help us to find answer for this one

261. How do you select a column named "FirstName" from a table named "Persons"?

Answer

Correct Answer: SELECT FirstName FROM Persons;

Note: This Question is unanswered, help us to find answer for this one

262. Which will select the `name` of 'John' from the 'Person' table where `num_friends` is greater than 1?

Answer

Correct Answer: SELECT name FROM Person WHERE num_friends > 1 AND name = 'John'

Note: This Question is unanswered, help us to find answer for this one

263. Which of the following is NOT true about a primary key constraints?

Answer

Correct Answer: For every primary key there must be a foreign key.

Note: This Question is unanswered, help us to find answer for this one

264. What data is this statement trying to query from the Customers Table? SELECT * FROM Customers WHERE City LIKE '[!bsp]%'

Answer

Correct Answer: Customers in cities NOT starting with "b" or "s" or "p."

Note: This Question is unanswered, help us to find answer for this one

265. Which clause indicates the table(s) from which data is to be retrieved?

Answer

Correct Answer: FROM

Note: This Question is unanswered, help us to find answer for this one

266. Suppose table A has 5 rows and table B has 6 rows. You perform a cross join on these two tables. How many rows will it have?

Answer

Correct Answer: 30

Note: This Question is unanswered, help us to find answer for this one

267. What is the function that combines two strings and returns the combined string?

Answer

Correct Answer: CONCAT()

Note: This Question is unanswered, help us to find answer for this one

268. Which of these is NOT a valid data type for a character string?

Answer

Correct Answer: TEXTCHAR

Note: This Question is unanswered, help us to find answer for this one

269. What KEYWORD is used to filter groups?

Answer

Correct Answer: HAVING

Note: This Question is unanswered, help us to find answer for this one

270. What is the default join type if omitted?

Answer

Correct Answer: INNER

Note: This Question is unanswered, help us to find answer for this one

271. Which statement removes all rows from the "orders" table without removing the table structure?

Answer

Correct Answer: TRUNCATE orders

Note: This Question is unanswered, help us to find answer for this one

272. Which of the following query will return PERSON first_name from table PERSON with last_name field null?

Answer

Correct Answer: SELECT first_name FROM PERSON WHERE last_name IS NULL

Note: This Question is unanswered, help us to find answer for this one

273. What is PL/SQL?

Answer

Correct Answer: It is a proprietary version of SQL used by Oracle

Note: This Question is unanswered, help us to find answer for this one

274. This example illustrates use of the FULL JOIN action. Which clauses must fill the three blanks for the query to be valid? _______ e1."Event_Name", v2."Venue" FROM "events" e1 _______ "venues" v2 ON (e1."VenueNo" = v2."VenueNo") _______ e1."Event_Name" ASC, v2."Venue" ASC

Answer

Correct Answer: SELECT, FULL OUTER JOIN, ORDER BY

Note: This Question is unanswered, help us to find answer for this one

275. What is the result of "select * from table where 1"

Answer

Correct Answer: Return all the rows from table

Note: This Question is unanswered, help us to find answer for this one

276. Which does not describe a database element?

Answer

Correct Answer: organic list

Note: This Question is unanswered, help us to find answer for this one

277. Indexes can be created on existing tables so that information can be retrieved more quickly. Specifically, what are indexes created on?

Answer

Correct Answer: columns

Note: This Question is unanswered, help us to find answer for this one

278. What keyword is used with aggregate functions to include every value in the calculation?

Answer

Correct Answer: ALL

Note: This Question is unanswered, help us to find answer for this one

279. The UNION ALL operator performs which of the following actions?

Answer

Correct Answer: Returns the output from the query before and the query after the operator including duplicates.

Note: This Question is unanswered, help us to find answer for this one

280. Which of the following is NOT an explicit data type reference?

Answer

Correct Answer: null

Note: This Question is unanswered, help us to find answer for this one

281. UNION ALL is different from a UNION command in that...

Answer

Correct Answer: UNION ALL will not eliminate duplicate rows

Note: This Question is unanswered, help us to find answer for this one

282. What is the name of a result that returns all the rows in all the tables listed in the query?

Answer

Correct Answer: Cartesian product

Note: This Question is unanswered, help us to find answer for this one

283. Which wildcard character means "match any number of occurrences of any character"?

Answer

Correct Answer: percent (%)

Note: This Question is unanswered, help us to find answer for this one

284. What records would the result set of this query include? SELECT * FROM tableA LEFT OUTER JOIN tableB ON tableA.key = tableB.key

Answer

Correct Answer: All records from tableA; 0 or more records from tableB

Note: This Question is unanswered, help us to find answer for this one

285. What is the correct procedure to create and use a cursor?

Answer

Correct Answer: Declare cursor > Open cursor > Fetch row from the cursor > Process fetched row > Close cursor > Deallocate cursor

Note: This Question is unanswered, help us to find answer for this one

286. What is the proper syntax of the keyword LIMIT to display 5 results after starting at record 4?

Answer

Correct Answer: LIMIT 4, 5

Note: This Question is unanswered, help us to find answer for this one

287. Which is the correct order for a proper SQL query?

Answer

Correct Answer: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY

Note: This Question is unanswered, help us to find answer for this one

288. What is the first query to run in a statement that contains subqueries?

Answer

Correct Answer: innermost

Note: This Question is unanswered, help us to find answer for this one

289. If a foreign key constraint is violated, the default action taken by the DBMS is what?

Answer

Correct Answer: It is not possible to violate a foreign key constraint. The modification is rejected

Note: This Question is unanswered, help us to find answer for this one

290. Where is the GROUP BY clause placed in the sequence of statements?

Answer

Correct Answer: before ORDER BY

Note: This Question is unanswered, help us to find answer for this one

291. What is the name of the category of functions used to summarize data?

Answer

Correct Answer: aggregate

Note: This Question is unanswered, help us to find answer for this one

292. What is the typical filename extension of a SQL file?

Answer

Correct Answer: .sql

Note: This Question is unanswered, help us to find answer for this one