Question
Intern_id = {1, 2, 3, 4, 5, 6}
Subject = {sql, oop, sql, oop, c, c++}
Subject_value = {0, 0, 1, 1, 2, 2, 3, 3}
If these are one to one relation then what will be the output of the following MySQL statement?
SELECT intern_id
FROM Internship
WHERE subject IN (SELECT subject FROM Internship WHERE subject_value IN (3, 2));
a.
{5, 6}
b.
{1, 2, 3}
c.
{3, 4}
d.
{1, 2, 3, 4, 5, 6}
Posted under MySQL Database
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Consider a database name “Internship” whose attributes are intern_id (primary key), subject, subject_value. Intern_id = {1, 2, 3, 4, 5, 6} Subject = {sql, oop, sql, oop, c,...
Similar Questions
Discover Related MCQs
Q. What is the meaning of “NULL” in Mysql?
View solution
Q. Is the following statement is true/false?
“An expression can be NULL, but can never equal to NULL”
View solution
Q. Is the following statement is true/false?
“Two NULL values are equal to each other”
View solution
Q. Which operator is used to check whether the expression is “NULL”?
View solution
Q. Which operator is used to check the expression is not “NULL”?
View solution
Q. The program that copies the databases from one server to another is ____________
View solution
Q. Which privileges are required on the source server to use mysqldbcopy?
View solution
Q. Which option is used in mysqldump to make all tables in the destination databases to use a different storage engine?
View solution
Q. The function that returns reference to hash of row values is ____________
View solution
Q. The best datatype for a column that is expected to store values up to 2 million is _________
View solution
Q. Which type stores the longest length of strings?
View solution
Q. The number of files that each end of a client/server connection including SSL support use to set up secure communications is __________
View solution
Q. What is the TLS protocol?
View solution
Q. Which grant table scope columns are case insensitive?
View solution
Q. The variable that checks for availability of SSL support is ____________
View solution
Q. MySQL does provides a date type that has an optional time part.
View solution
Q. The function that returns a reference to an array of row values is ______________
View solution
Q. The MySQL server is configurable.
View solution
Q. The log in which data changes received from a replication master server are written is _____________
View solution
Suggested Topics
Are you eager to expand your knowledge beyond MySQL Database? 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!