Read and download free pdf of CBSE Class 11 Computer Table Joins And Indexes In Sql Worksheet. Students and teachers of Class 11 Computer Science can get free printable Worksheets for Class 11 Computer Science Table Joins And Indexes In Sql in PDF format prepared as per the latest syllabus and examination pattern in your schools. Class 11 students should practice questions and answers given here for Computer Science in Class 11 which will help them to improve your knowledge of all important chapters and its topics. Students should also download free pdf of Class 11 Computer Science Worksheets prepared by teachers as per the latest Computer Science books and syllabus issued this academic year and solve important problems with solutions on daily basis to get more score in school exams and tests
Worksheet for Class 11 Computer Science Table Joins And Indexes In Sql
Class 11 Computer Science students should download to the following Table Joins And Indexes In Sql Class 11 worksheet in PDF. This test paper with questions and answers for Class 11 will be very useful for exams and help you to score good marks
Class 11 Computer Science Worksheet for Table Joins And Indexes In Sql
Short Answer Type Questions
Consider the following tables and give the commands based on the asked queries from Q1. To Q.4.
Question: What will be the equijoin of the Orders and Parts?
Answer: SELECT ord.orderdon,ord.name,ord.partnum,pr.partnum,description FROM orders ord, parts pr WHERE ord.partnum=pr.partnum;
Question: Find out the order details of parts having description like „Road. . . . . .‟
Answer: SELECT * FROM orders WHERE prtnum = (SELECT partnum FROM parts WHERE description LIKE ‗Road%‘;
Question: Determine the total order amount for part1 „Road Bike‟.
Answer: SELECT SUM(ord.quantity*pr.price) ‗Total Amount‘ FROM orders ord, parts prWHERE ord.partnum=pr.partnum AND pr.description=‘Road Bike‘;
Question: Given two tables –
Employee Pay Table
employee_id employee_id
last_name salary
first_name department
middle_name supervisor
marital_status
Question: Find out the salary taken by all KUMAR, i.e. all those who have their last_name as
„KUMAR‟
Answer: SELECT e.employee_id, e.last_name, ep.salary FROM employee e, Pay Table ep WHERE e.employee_id=ep.employee_id AND e.last_name=‘KUMAR‘;
Question: Table Employee has 4 records ad Table Dept has 3 records in it. Mr. Jain wants to display all information stored in both of these related tables. He forgot to specify equi-join condition in the query. How many rows will get displayed on execution ofthis query?
Answer: 12 Rows (4 X 3)
Question: What are table joins?
Answer: An SQL join clause – corresponding to a join operation in relational algebra – combines columns from one or more tables in a relational database. It creates a set that can be saved as a table or used as it is. A JOIN is a means for combining columns from one (self-join) or more tables by using values common to each. ANSI-standard SQL specifies five types of JOIN: INNER, LEFT OUTER, RIGHT OUTER, FULL OUTER and CROSS. As a special case, a table (base table, view, or joined table) can JOIN to itself in a self-join.
Question: A table FLIGHT has 4 rows and 2 columns and another table AIR HOSTESS has 3 rows and 4 columns. How many rows and columns will be there if we obtain the Cartesian product of these two tables?
Answer: 12 rows and 6 rows
Question: Name some types of joins that you can create on tables.
Answer: (i) Equi Join
(iii) Non-Equi-Join
(iii) Natural Join
(iv) Cross Join
(v) Left, Right Joins
Question: What are the advantages and disadvantages of table-indexes?
Answer: Advantages:
(i) Indexes are used to make the search fast.
(ii) Queries work with indexes very efficiently
(iii) Indexes are very much helpful in sorting
(iv) Index guaranties in uniquely identifying the records in the databases.
Disadvantages:
(i) The capability of insert, update and delete command reduces. As the index table‘s
updating is an overburden.
(ii) It consumes more memory.
Question: What is database index? Is it a table?
Answer: Table index is a kind of data structure which is used to fetch the data from database very fast.
An index keeps the location in index field in actual table, in ordered form. This is also a table
which stores the location of records within it.
Question: How many ways can you create index in?
Answer: There are two ways to create index –
(i) At the time of table creation.
(ii) Creating an index on already existing table.
Question: What are table Indexes? How are they useful?
Answer: Table index is a kind of data structure which is used to fetch the data from database very fast.An index keeps the location in index field in actual table, in ordered form. This is also a tablewhich stores the location of records within it.
Indexes are used to make the search fast. Queries work with indexes very efficiently. Indexes are very much helpful in sorting. Index guaranties in uniquely identifying the records in the databases.
Question: How is a cross join different from natural join? Give example.
Answer: A NATURAL JOIN is a JOIN operation that creates an implicit join clause for you based on the common columns in the two tables being joined. Common columns are columns that have the same name in both tables. A NATURAL JOIN can be an INNERjoin, a LEFT OUTER join, or a RIGHT OUTER join. The default is INNER join.
The SQL CROSS JOIN produces a result set which is the number of rows in the first table multiplied by the number of rows in the second table if no WHERE clause is used along Ensure the following specification in cre with CROSS JOIN.This kind of result is called as Cartesian Product. If WHERE clause is used with CROSS JOIN, it functions like an INNERJOIN
Question: How is a left join different from natural join? Give example.
Answer: A NATURAL JOIN is a JOIN operation that creates an implicit join clause for you based on thecommon columns in the two tables being joined. Common columns are columns that have thesame name in both tables. A NATURAL JOIN can be an INNERjoin, a LEFT OUTER join, or a RIGHT OUTER join.
The default is INNER join. And the LEFT JOIN keyword returns all records from the left table (table1), and the matched records from the right table (table2). The result is NULL from the right side, if there is no match.
Question: Why is it said that indexes should be created when needed?
Answer: (i) The capability of insert, update and delete command reduces. As the index table‘s updating is an overburden.
(ii) It consumes more memory. That‘s why it is said that when there is a need then create thendex.
Question:
Answer: (i) mysql>SELECT * FROM Product WHERE Price between 40 and 120;
(ii) mysql> SELECT c.ClietnName, c.City, p.ProductName, p.Price FROM Product p, Client c
WHERE p.P_ID=c.P_ID;
(iii) mysql> UPDATE Product set Price=Price+20;
CBSE Class 11 Computer Functions Worksheet |
Worksheet for CBSE Computer Science Class 11 Table Joins And Indexes In Sql
We hope students liked the above worksheet for Table Joins And Indexes In Sql designed as per the latest syllabus for Class 11 Computer Science released by CBSE. Students of Class 11 should download in Pdf format and practice the questions and solutions given in the above worksheet for Class 11 Computer Science on a daily basis. All the latest worksheets with answers have been developed for Computer Science by referring to the most important and regularly asked topics that the students should learn and practice to get better scores in their class tests and examinations. Expert teachers of studiestoday have referred to the NCERT book for Class 11 Computer Science to develop the Computer Science Class 11 worksheet. After solving the questions given in the worksheet which have been developed as per the latest course books also refer to the NCERT solutions for Class 11 Computer Science designed by our teachers. We have also provided a lot of MCQ questions for Class 11 Computer Science in the worksheet so that you can solve questions relating to all topics given in each chapter.
You can download the CBSE Printable worksheets for Class 11 Computer Science Table Joins And Indexes In Sql for latest session from StudiesToday.com
There is no charge for the Printable worksheets for Class 11 CBSE Computer Science Table Joins And Indexes In Sql you can download everything free
Yes, studiestoday.com provides all latest NCERT Table Joins And Indexes In Sql Class 11 Computer Science test sheets with answers based on the latest books for the current academic session
CBSE Class 11 Computer Science Table Joins And Indexes In Sql worksheets cover all topics as per the latest syllabus for current academic year.
Regular practice with Class 11 Computer Science worksheets can help you understand all concepts better, you can identify weak areas, and improve your speed and accuracy.