91 solutions available
Question 1Assertion. Cartesian product and joins are related.Reason. Cartesian product is a join without any condition.Both A and R are true and R is...
Question 2Assertion. The cardinality of a cartesian product can be predetermined, unlike joins.Reason. The cardinality of a cartesian product is...
Question 3Assertion. There must be some identical columns in tables in order to get cartesian product.Reason. The cartesian product returns all...
Question 4Assertion. The join in which columns are compared for equality, is called an Equi-join.Reason. The join condition can only compare columns...
Question 5Assertion. The join, in which columns are compared for equality, is called an Equi-join.Reason. In non-equi joins, the columns are compared...
Question 6Assertion. There can be joins where all records from one of tables appear irrespective of their matching rows in the other table.Reason. In...
Question 7Assertion. The UNION clause combines the rows of the participating tables, removing the duplicate rows.Reason. To retain the duplicate rows...
Question 8Assertion. The MINUS and INTERSECT operators are similar.Reason. The MINUS operator returns only the rows from the first result set while...
Question 1What is unrestricted join ?
Question 2What is join ?
Question 3How is equi-join different from non-equi-join?
Question 4What set operations can you perform through SQL ?
Question 5How is UNION different from UNION ALL ?
Question 6How is INTERSECT different from MINUS operation ?
Question 1An SQL join clause combines records from two or more tables in a database.
Question 2An equi-join is a specific type of join that uses only equality comparisons in the join-condition.
Question 3Left join selects all data starting from the left table and matching rows in the right table.
Question 4Right join is a reversed version of the left join.
Question 5Inner join produces a data set that includes only those rows from the left table which have matching rows from the right table.
Question 6An INTERSECT query returns the intersection of 2 or more tables.
Question 7UNION ALL returns all rows from both the SELECT queries and it does not remove duplicate rows between the various SELECT statements.
Question 8UNION returns all rows from both the SELECT queries after removing duplicate rows between the two SELECT statements.
Question 9The MINUS operation combines results of two SELECT statements and returns only those rows in the final result, which belong to the first...
Question 10The INTERSECT operation can be simulated in MySQL using INNER JOIN.
Question 1A ............... is a query that retrieves rows from more than one table or view :StartEndJoinAll of these
Question 2A condition given in a Join query is referred to as ............... .Join in SQLJoin conditionJoin in SQL & ConditionNone of these
Question 3Which of the following is not a join type ?Empty joinNatural joinEqui-joinRight join
Question 4Which product is returned in a join query having no join condition ?Equi-joinCartesianBoth Equijoins and CartesianNatural
Question 5The Cartesian product is also called ............... join.Equi-joinNaturalUnrestricted JoinRestricted Join
Question 6In which type of join, the join condition contains an equality operator ?Equi-joinNaturalLeft JoinRight Join
Question 7In which type of join, duplicate columns are there ?Equi-joinNaturalLeft JoinRight Join
Question 8In which type of join, no duplicate columns are there ?Equi-joinNaturalLeft JoinRight Join
Question 9With SELECT statement used for joins, the USING subclause produces ............... join.Equi-joinNaturalLeft JoinRight Join
Question 10With SELECT statement used for joins, the ON subclause produces ............... join.Equi-joinNaturalLeft JoinRight Join
Question 11What is the correct statement for describing the UNION operation ?It combines the rows of any two different queriesIt combines the unique...
Question 12What is the correct statement for describing the INTERSECT operation?It returns the common values from the results of any two different...
Question 13What is the correct statement for describing the EXCEPT operation ?It excludes all the rows present in both the queriesIt includes the...
Question 14What is the other name of MINUS operator?UNIONUNION ALLEXCEPTINTERSECT
Question 15Examine the structure of the EMPL and DEPT tables:Table : EMPLColumn nameData typeRemarksEMPLOYEE_IDNUMBERNOT NULL, Primary...
Question 1Non-equi-join is the name of Natural join.
Question 2Natural join contains the duplicate columns.
Question 3Equi-join contains the duplicate columns.
Question 4Inner Join combines only the matching rows from the two tables.
Question 5A join condition can only use equality for comparison.
Question 6Left join has all the rows from the Left table.
Question 7Outer join has all the rows from both the tables.
Question 8MINUS operator is also called EXCEPT operator.
Question 9UNION returns unique rows.
Question 10UNION and UNION ALL produce similar results.
Question 1What is Cartesian product ? How is it related to join ?
Question 2What is a join ? How is natural join different from an equi-join ?
Question 3What is a table alias ? What is the purpose of table alias ?
Question 4Define an equi-join. What is non-equi-join ?
Question 5What is join ? How many different types of joins can you create in MySQL ?
Question 6There are multiple ways to create cartesian product of two tables in MySQL. Describe them.
Question 7How is a left join different from a natural join ?
Question 8How is a cross join different from natural join ?
Question 9Can you join two tables without using the keyword JOIN ?
Question 10What is the difference between ON and USING join-clauses ?
Question 11A table STUDENT has 4 rows and 2 columns and another table TEACHER has 3 rows and 4 columns. How many rows and columns will be there if we...
Question 12What does UNION do ?
Question 13Are UNION and UNION ALL the same ? Why ?
Question 14What does INTERSECT do ?
Question 15What does MINUS operation do ?
Question 1In a Database, there are two tables given below :Table : EMPLOYEEEMPLOYEEIDNAMESALESJOBIDE1SUMIT SINHA1100000102E2VIJAY SINGH...
Question 2Show the average salary for all departments with more than 3 people for a job.Table:...
Question 3Display only the jobs with maximum salary greater than or equal to 3000.Table:...
Question 4Schemas of tables EMPL, Dept, SalaryGrade are being shown below :EMPL (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO) SALARYGRADE...
Question 5Schemas of tables EMPL, Dept, SalaryGrade are being shown below :EMPL (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO) SALARYGRADE...
Question 6What is join ? How many different types of joins can you create in MySQL ?
Question 7In a Database Karnataka_Sangam there are two tables with the instances given below :Table :...
Question 8In a Database BANK there are two tables with a sample data given below :Table :...
Question 9There are multiple ways to create cartesian product of two tables in MySQL. Describe them.
Question 10How is a left join different from a natural join ? Give example.
Question 11How is a cross join different from natural join ? Give example.
Question 12A table "TRAINS" in a database has degree 3 and cardinality 8. What is the number of rows and columns in it ?
Question 13In a database there are two tables "Product" and "Client" as shown below :Table :...
Question 14In a Database School there are two tables Member and Division as shown below.Table :...
Question 15Consider following tables to answer below question :Salesman (salesman_id, name, city, commission ) and Customer (customer_id, cust_name,...
Question 16Consider following tables to answer below question :Salesman (salesman_id, name, city, commission ) and Customer (customer_id, cust_name,...
Question 17Consider following tables to answer below question :Salesman (salesman_id, name, city, commission ) and Customer (customer_id, cust_name,...
Question 18Consider following tables to answer below question :Salesman (salesman_id, name, city, commission ) and Customer (customer_id, cust_name,...
Question 19Consider following tables to answer below question :Salesman (salesman_id, name, city, commission ) and Customer (customer_id, cust_name,...
Question 20Consider following tables to answer questions 15-20 :Salesman (salesman_id, name, city, commission ) and Customer (customer_id,...
Question 21Write a SQL query to display all the divnos from both the tables.Table :...
Question 22Write a SQL query to display all the distinct divnos from both the tables.Table :...
Question 23Write a SQL query to display all the divnos in Member table but not in the Division table.Table :...
Question 24Write a SQL query to display all the divnos in Division table but not in the Member table.Table :...
Question 25Write a SQL query to display common divnos from both the tables.Table :...
Question 26(a)Consider the following tables TRANSPORTER and DRIVER and answer the questions that follow :Table :...
Question 26(b)With reference to the below given tables, write commands in SQL for (i) to (iii) :Table :...