adplus-dvertising
frame-decoration

Question

If in Table “account”, a column “cust_id” consists of {1,2,2,3,3,5,6,7,8,8} then what will be the output on executing the following MySQL statement?
SELECT DISTINICT cust_id
FROM account;

a.

{1, 2, 2, 3, 3, 5, 6, 7, 8, 8}

b.

{1, 2, 3, 5, 6, 7, 8}

c.

{ }

d.

None of the mentioned

Posted under MySQL Database

Answer: (b).{1, 2, 3, 5, 6, 7, 8}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If in Table “account”, a column “cust_id” consists of {1,2,2,3,3,5,6,7,8,8} then what will be the output on executing the following MySQL statement?

Similar Questions

Discover Related MCQs

Q. Which among the following is an optional Keyword?

Q. How can we define the clause “FROM” in Mysql?

Q. Which of the following table exist in Mysql?

Q. “CREATE TABLE …” command is used to create which type of table in Mysql?

Q. “CREATE VIEW …” command is used to create which type of table in Mysql?

Q. What is the meaning of “Temporary Tables” in Mysql?

Q. “SELECT” clause cannot be used without which clause in Mysql?

Q. Which of the following statements is/are correct with respect to “VIEW”?

Q. Which command is used to create “Temporary tables” in MySQL?

Q. What is the use of “VIEW” in Mysql?

Q. What will be the output of the following MySQL statement?

“true AND Null”

Q. What will be the output of the following MySQL statement ?

“false AND Null”?

Q. What will be the output of the following MySQL statement?

“Null AND Null”?

Q. What will be the output of the following MySQL statement?

“true OR Null”

Q. What will be the output of the following MySQL statement?

“false OR Null”

Q. What will be the output of the following MySQL statement?

“Null OR Null”

Q. What will be the output of the following MySQL statement?

“NOT (Null)”

Q. What is the meaning of the “WHERE” clause in Mysql?

Q. What is the meaning of “GROUP BY” clause in Mysql?

Q. Which clause is similar to “HAVING” clause in Mysql?