adplus-dvertising
frame-decoration

Question

To display the salary from greater to smaller and name in ascending order which of the following options should be used ?
SELECT *
FROM instructor
ORDER BY salary ____, name ___;

a.

Ascending, Descending

b.

Asc, Desc

c.

Desc, Asc

d.

Descending, Ascending

Posted under DBMS

Answer: (c).Desc, Asc

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To display the salary from greater to smaller and name in ascending order which of the following options should be used ?

Similar Questions

Discover Related MCQs

Q. In SQL the spaces at the end of the string are removed by _______ function .

Q. _____ operator is used for appending two strings.

Q. The union operation is represented by

Q. The intersection operator is used to get the _____ tuples.

Q. The union operation automatically __________, unlike the select clause.

Q. If we want to retain all duplicates, we must write ________ in place of union.

Q. For like predicate which of the following is true.

i) % matches zero OF more characters.
ii) _ matches exactly one CHARACTER.

Q. The number of attributes in relation is called as its

Q. _____ clause is an additional filter that is applied to the result.

Q. _________ joins are SQL server default

Q. The _____________ is essentially used to search for patterns in target string.

Q. A _____ indicates an absent value that may exist but be unknown or that may not exist at all.

Q. If the attribute phone number is included in the relation all the values need not be entered into the phone number column . This type of entry is given as

Q. The predicate in a where clause can involve Boolean operations such as and.The result of true and unknown is_______ false and unknown is _____ while unknown and unknown is _____

Q. In a employee table to include the attributes whose value always have some value which of the following constraint must be used ?

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

Q. You attempt to query the database with this command:

SELECT nvl (100 / quantity, NONE)
FROM inventory;

Why does this statement cause an error when QUANTITY values are null?

Q. The result of _____unknown is unknown.

Q. Aggregate functions are functions that take a ___________ as input and return a single value.

Q. A Boolean data type that can take values true, false, and________