Question
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
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...
View solution
Q. Which SQL keyword is used to retrieve only unique values?
View solution
Q. Which SQL keyword is used to retrieve a maximum value?
View solution
Q. What is a view?
View solution
Q. Which of the following SQL commands is used to retrieve data?
View solution
Q. Which of the following is a SQL aggregate function?
View solution
Q. Which SQL statement is used to update data in a database?
View solution
Q. Which SQL statement is used to delete data FROM a database?
View solution
Q. Which SQL keyword is used to sort the result-set?
View solution
Q. The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;
View solution
Q. Which of the following group functions ignore NULL values?
View solution
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
View solution
Q. The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints
View solution
Q. The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;
View solution
Q. Which of the following must be enclosed in double quotes?
View solution
Q. Which of the following command makes the updates performed by the transaction permanent in the database?
View solution
Q. Which command undo all the updates performed by the SQL in the transaction?
View solution
Q. Find all the cities whose humidity is 89
View solution
Q. Find the temperature in increasing order of all cities
View solution
Q. What is the meaning of LIKE '%0%0%'
View solution
Suggested Topics
Are you eager to expand your knowledge beyond DBMS? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!