adplus-dvertising
frame-decoration

Question

select distinct dept_name
from institute;

What does the above query do?

a.

It gives all the tuples having a distinct dept_name

b.

It gives the dept_name attribute values of all tuples without repetition

c.

It gives all the dept_name attribute of all the tuples

d.

It gives all the tuples having a null value under the dept_name attribute

Posted under DBMS

Answer: (b).It gives the dept_name attribute values of all tuples without repetition

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. select distinct dept_name from institute; What does the above query do?

Similar Questions

Discover Related MCQs

Q. What does the following query do?
select name, ID, branch

from student, department

where student.branch = department.branch;

Q. The ________ clause is used to list the attributes desired in the result of a query

Q. If we specify multiple relations in the from clause and do not specify any conditions in the where clause, what will the result be?

Q. State true or false: Multiple conditions in the where clause are separated by a “,”

Q. What does the natural join operation do?

Q. Observe the following query and choose the correct option.
select name, ID

from student natural join department natural join section

Q. Which keyword is used to rename a relation in a query?

Q. While operating with strings, what does “_ _ _%” match with?

Q. What is the function of the union operation?

Q. What is the function of the intersect operation?

Q. What is the function of the except operation?

Q. When does the predicate is null succeed?

Q. Using the _______ clause retains only one copy of identical tuples

Q. Which of the following correctly describes the between predicate in the where clause?

Q. Which of the following is not a built in aggregate function in SQL?

Q. State true or false: SQL does not permit distinct with count(*)

Q. We apply the aggregate function to a group of sets of tuples using the _______ clause.

Q. The _____ aggregation operation adds up all the values of the attribute

Q. State true or false: Any attribute which is present in the having clause without being aggregated must not be present in the group by clause.

Q. State true or false: We can rename the resulting attribute after the aggregation function has been applied