1.

In SQL, which command is used to SELECT only one copy of each set of duplicable rows(a) SELECT DISTINCT(b) SELECT UNIQUE(c) SELECT DIFFERENT(d) All of the MentionedThe question was posed to me in final exam.My doubt is from Structured Query Language topic in portion SQL Basics of Oracle

Answer» <html><body><p>Correct <a href="https://interviewquestions.tuteehub.com/tag/option-25810" style="font-weight:bold;" target="_blank" title="Click to know more about OPTION">OPTION</a> is (a) <a href="https://interviewquestions.tuteehub.com/tag/select-630282" style="font-weight:bold;" target="_blank" title="Click to know more about SELECT">SELECT</a> DISTINCT<br/><br/>The best explanation: The keyword allows us to grab all information from a column (or columns) on a table. This, of <a href="https://interviewquestions.tuteehub.com/tag/course-937885" style="font-weight:bold;" target="_blank" title="Click to know more about COURSE">COURSE</a>, necessarily means that there will be <a href="https://interviewquestions.tuteehub.com/tag/redundancies-1181474" style="font-weight:bold;" target="_blank" title="Click to know more about REDUNDANCIES">REDUNDANCIES</a>. What if we only want to select each distinct element? This is easy way to accomplish in SQL. All we need to do is that to addafterThe syntax is:SELECT DISTINCT column_name FROM table_name;.</p></body></html>


Discussion

No Comment Found

Related InterviewSolutions