adplus-dvertising
frame-decoration

Question

Which of the SQL statements is correct?

a.

SELECT Username AND Password FROM Users

b.

SELECT Username, Password FROM Users

c.

SELECT Username, Password WHERE Username = 'user1'

d.

None of these

Posted under DBMS

Answer: (b).SELECT Username, Password FROM Users

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the SQL statements is correct?

Similar Questions

Discover Related MCQs

Q. The FROM SQL clause is used to...

Q. Which SQL keyword is used to retrieve only unique values?

Q. Which SQL keyword is used to retrieve a maximum value?

Q. What is a view?

Q. Which of the following SQL commands is used to retrieve data?

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

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

Q. Which SQL statement is used to delete data FROM a database?

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

Q. The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;

Q. Which of the following group functions ignore NULL values?

Q. Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM Employee WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
prints

Q. The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints

Q. The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;

Q. Which of the following must be enclosed in double quotes?

Q. Which of the following command makes the updates performed by the transaction permanent in the database?

Q. Which command undo all the updates performed by the SQL in the transaction?

Q. Find all the cities whose humidity is 89

Q. Find the temperature in increasing order of all cities

Q. What is the meaning of LIKE '%0%0%'