

InterviewSolution
Saved Bookmarks
1. |
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 the MentionedThis question was posed to me during an online interview.This key question is from Structured Query Language in section SQL Basics of Oracle |
Answer» <html><body><p>Right answer is (<a href="https://interviewquestions.tuteehub.com/tag/b-387190" style="font-weight:bold;" target="_blank" title="Click to know more about B">B</a>) SELECT Username, Password FROM Users<br/><br/>The best explanation: <a href="https://interviewquestions.tuteehub.com/tag/correct-409949" style="font-weight:bold;" target="_blank" title="Click to know more about CORRECT">CORRECT</a> order of SELECT, FROM and WHERE <a href="https://interviewquestions.tuteehub.com/tag/clause-918411" style="font-weight:bold;" target="_blank" title="Click to know more about CLAUSE">CLAUSE</a> is as <a href="https://interviewquestions.tuteehub.com/tag/follow-994211" style="font-weight:bold;" target="_blank" title="Click to know more about FOLLOW">FOLLOW</a>:<br/><br/>SELECT column_name1, column_name2 FROM table_name WHERE condition So, only SELECT Username, Password FROM Users follows the above syntax.</p></body></html> | |