{"id":3481,"date":"2017-12-10T13:25:10","date_gmt":"2017-12-10T13:25:10","guid":{"rendered":"http:\/\/www.inspirenignite.com\/jntuh\/?p=3481"},"modified":"2019-07-14T19:12:26","modified_gmt":"2019-07-14T19:12:26","slug":"jntuh-b-tech-2016-2017-r16-detailed-syllabus-database-management-systems-lab","status":"publish","type":"post","link":"https:\/\/www.inspirenignite.com\/jntuh\/jntuh-b-tech-2016-2017-r16-detailed-syllabus-database-management-systems-lab\/","title":{"rendered":"JNTUH B.Tech 2016-2017 (R16) Detailed Syllabus Database Management Systems Lab"},"content":{"rendered":"<p>Database Management Systems Lab Detailed Syllabus for B.Tech second year second sem is covered here. This gives the details about credits, number of hours and other details along with reference books for the course.<\/p>\n<p>The detailed syllabus for Database Management Systems Lab B.Tech 2016-2017 (R16) \u00a0second year second sem is as follows.<\/p>\n<p>B.Tech. II Year II Sem. \u00a0 \u00a0L\/T\/P\/C<br \/>\nCourse Code: CS407ES \u00a00\/0\/3\/2<\/p>\n<p><strong>Course Objectives:<\/strong> This lab enables the students to practice the concepts learnt in the subject\u00a0DBMS by developing a database for an example company named \u201cRoadway Travels\u201d whose\u00a0description is as follows. The student is expected to practice the designing, developing and\u00a0querying a database in the context of example database \u201cRoadway travels\u201d. Students are\u00a0expected to use \u201cMysql\u201d database.<\/p>\n<p><strong>Course Outcomes:<\/strong><\/p>\n<ul>\n<li>Ability to design and implement a database schema for given problem.<\/li>\n<li>Apply the normalization techniques for development of application software to\u00a0realistic problems.<\/li>\n<li>Ability to formulate queries using SQL DML\/DDL\/DCL commands.<\/li>\n<\/ul>\n<p><strong>Roadway Travels: &#8220;Roadway Travels&#8221;<\/strong> is in business since 1997 with several buses<br \/>\nconnecting different places in India. Its main office is located in Hyderabad.<br \/>\nThe company wants to computerize its operations in the following areas:<\/p>\n<ul>\n<li>Reservations and Ticketing<\/li>\n<li>Cancellations<\/li>\n<\/ul>\n<p><strong>Reservations &amp; Cancellation:<\/strong> Reservations are directly handled by booking office.\u00a0Reservations can be made 30 days in advance and tickets issued to passenger. One\u00a0Passenger\/person can book many tickets (to his\/her family).\u00a0Cancellations are also directly handed at the booking office.<\/p>\n<p>In the process of computerization of Roadway Travels you have to design and develop a\u00a0Database which consists the data of Buses, Passengers, Tickets, and Reservation and\u00a0cancellation details. You should also develop query\u2019s using SQL to retrieve the data from the\u00a0database.<\/p>\n<p>The above process involves many steps like 1. Analyzing the problem and identifying the\u00a0Entities and Relationships, 2. E-R Model 3. Relational Model 4. Normalization 5.\u00a0Creating the database 6. Querying. Students are supposed to work on these steps week wise\u00a0and finally create a complete \u201cDatabase System\u201d to Roadway Travels. Examples are given\u00a0at every experiment for guidance to students.<\/p>\n<p><strong>Experiment 1: E-R Model<\/strong><br \/>\nAnalyze the problem carefully and come up with the entities in it. Identify what data has to be<br \/>\npersisted in the database. This contains the entities, attributes etc.<br \/>\nIdentify the primary keys for all the entities. Identify the other keys like candidate keys,<br \/>\npartial keys, if any.<br \/>\nExample:<\/p>\n<p><strong>Entities: 1<\/strong>. BUS 2. Ticket 3. Passenger<br \/>\n<strong>Relationships:<\/strong> 1. Reservation 2. Cancellation<br \/>\nPrimary Key Attributes: 1. Ticket ID (Ticket Entity) 2. Passport ID (Passenger Entity)\u00a03. Bus_NO (Bus Entity)\u00a0Apart from the above mentioned entities you can identify more. The above mentioned are\u00a0few.<\/p>\n<p><strong>Note:<\/strong> The student is required to submit a document by writing the Entities and Keys to the\u00a0lab teacher.<\/p>\n<p><strong>Experiment<\/strong> 2: Concept design with E-R Model<br \/>\nRelate the entities appropriately. Apply cardinalities for each relationship. Identify strong\u00a0entities and weak entities (if any). Indicate the type of relationships (total \/ partial). Try to\u00a0incorporate generalization, aggregation, specialization etc wherever required.<\/p>\n<p><strong>Example:<\/strong> E-R diagram for bus<\/p>\n<p><strong>Note:<\/strong> The student is required to submit a document by drawing the E-R Diagram to the lab\u00a0teacher.<br \/>\n<strong>Experiment 3:<\/strong> Relational Model<br \/>\nRepresent all the entities (Strong, Weak) in tabular fashion. Represent relationships in a\u00a0tabular fashion. There are different ways of representing relationships as tables based on the\u00a0cardinality. Represent attributes as columns in tables or as tables based on the requirement.\u00a0Different types of attributes (Composite, Multi-valued, and Derived) have different way of<br \/>\nrepresentation.<\/p>\n<p><strong>Example<\/strong>: The passenger tables look as below. This is an example. You can add more\u00a0attributes based on your E-R model. This is not a normalized table.\u00a0Passenger<\/p>\n<p><strong>Note:<\/strong> The student is required to submit a document by Represent relationships in a tabular<br \/>\nfashion to the lab teacher.<\/p>\n<p><strong>Experiment 4:<\/strong> Normalization<br \/>\nDatabase normalization is a technique for designing relational database tables to minimize\u00a0duplication of information and, in so doing, to safeguard the database against certain types of\u00a0logical or structural problems, namely data anomalies. For example, when multiple instances\u00a0of a given piece of information occur in a table, the possibility exists that these instances will\u00a0not be kept consistent when the data within the table is updated, leading to a loss of data\u00a0integrity. A table that is sufficiently normalized is less vulnerable to problems of this kind,\u00a0because its structure reflects the basic assumptions for when multiple instances of the same\u00a0information should be represented by a single instance only.\u00a0For the above table in the First normalization we can remove the multi valued attribute\u00a0Ticket_id and place it in another table along with the primary key of passenger.<br \/>\n<strong>First Normal Form<\/strong>: The above table can be divided into two tables as shown below.\u00a0Passenger<br \/>\nYou can do the second and third normal forms if required. Any how Normalized tables are\u00a0given at the end.<br \/>\n<strong>Experiment 5<\/strong>: Installation of Mysql and practicing DDL commands\u00a0Installation of MySql. In this week you will learn Creating databases, How to create tables,\u00a0altering the database, dropping tables and databases if not required. You will also try\u00a0truncate, rename commands etc.<\/p>\n<p>Example for creation of a normalized \u201cPassenger\u201d table.<br \/>\nCREATE TABLE Passenger (<br \/>\nPassport_id INTEGER PRIMARY KEY,<br \/>\nName VARCHAR (50) Not NULL,<br \/>\nAge Integer Not NULL,<br \/>\nSex Char,<br \/>\nAddress VARCHAR (50) Not NULL);<\/p>\n<p>Similarly create all other tables.<\/p>\n<p><strong>Note:<\/strong> Detailed creation of tables is given at the end.<\/p>\n<p><strong>Experiment 6:<\/strong> Practicing DML commands<br \/>\nDML commands are used to for managing data within schema objects. Some examples:<\/p>\n<ul>\n<li>SELECT &#8211; retrieve data from the a database<\/li>\n<li>INSERT &#8211; insert data into a table<\/li>\n<li>UPDATE &#8211; updates existing data within a table<\/li>\n<li>DELETE &#8211; deletes all records from a table, the space for the records remain<\/li>\n<\/ul>\n<p>Inserting values into \u201cBus\u201d table:<br \/>\nInsert into Bus values (1234,\u2019hyderabad\u2019, \u2018tirupathi\u2019);<br \/>\nInsert into Bus values (2345,\u2019hyderabd\u2019,\u2019Banglore\u2019);<br \/>\nInsert into Bus values (23,\u2019hyderabd\u2019,\u2019Kolkata\u2019);<br \/>\nInsert into Bus values (45,\u2019Tirupathi,\u2019Banglore\u2019);<br \/>\nInsert into Bus values (34,\u2019hyderabd\u2019,\u2019Chennai\u2019);<br \/>\nInserting values into \u201cPassenger\u201d table:<br \/>\nInsert into Passenger values (1, 45,\u2019ramesh\u2019, 45,\u2019M\u2019,\u2019abc123\u2019);<br \/>\nInsert into Passenger values (2, 78,\u2019geetha\u2019, 36,\u2019F\u2019,\u2019abc124\u2019);<br \/>\nInsert into Passenger values (45, 90,\u2019ram\u2019, 30,\u2019M\u2019,\u2019abc12\u2019);<br \/>\nInsert into Passenger values (67, 89,\u2019ravi\u2019, 50,\u2019M\u2019,\u2019abc14\u2019);<br \/>\nInsert into Passenger values (56, 22,\u2019seetha\u2019, 32,\u2019F\u2019,\u2019abc55\u2019);<br \/>\nFew more Examples of DML commands:<br \/>\nSelect * from Bus; (selects all the attributes and display)<\/p>\n<p><strong>UPDATE BUS SET Bus No = 1 WHERE BUS NO=2;<\/strong><\/p>\n<p><strong>Experiment 7: Querying<\/strong><br \/>\nIn this week you are going to practice queries (along with sub queries) using ANY, ALL, IN,<br \/>\nExists, NOT EXISTS, UNION, INTERSECT, Constraints etc.<\/p>\n<p><strong>Practice the following Queries:<\/strong><\/p>\n<ul>\n<li>Display unique PNR_no of all passengers.<\/li>\n<li>Display all the names of male passengers.<\/li>\n<li>Display the ticket numbers and names of all the passengers.<\/li>\n<li>Find the ticket numbers of the passengers whose name start with \u2018r\u2019 and ends with \u2018h\u2019.<\/li>\n<li>Find the names of passengers whose age is between 30 and 45.<\/li>\n<li>Display all the passengers names beginning with \u2018A\u2019<\/li>\n<li>Display the sorted list of passengers names<\/li>\n<\/ul>\n<p><strong>Experiment 8 and Experiment 9: Querying (continued\u2026)<\/strong><\/p>\n<ul>\n<li>You are going to practice queries using Aggregate functions (COUNT, SUM, AVG, and\u00a0MAX and MIN), GROUP BY, HAVING and Creation and dropping of Views.<\/li>\n<li>Write a Query to display the Information present in the Passenger and cancellation\u00a0tables. Hint: Use UNION Operator.<\/li>\n<li>Display the number of days in a week on which the 9W01 bus is available.<\/li>\n<li>Find number of tickets booked for each PNR_no using GROUP BY CLAUSE. Hint:\u00a0Use GROUP BY on PNR_No.<\/li>\n<li>Find the distinct PNR numbers that are present.<\/li>\n<li>Find the number of tickets booked by a passenger where the number of seats is greater\u00a0than 1. Hint: Use GROUP BY, WHERE and HAVING CLAUSES.<\/li>\n<li>Find the total number of cancelled seats.<\/li>\n<\/ul>\n<p style=\"text-align: center\"><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=ini.istudy\" target=\"_blank\" rel=\"noopener\"><strong><span style=\"color: #ff0000\">Download iStudy Android App for complete JNTUH syllabus, results, timetables and all other updates. There are no ads and no pdfs and will make your life way easier<\/span>.<\/strong><\/a><\/p>\n<p><strong>REFERENCE BOOKS:<\/strong><\/p>\n<ul>\n<li>Introduction to SQL, Rick F. Vander Lans, Pearson education.<\/li>\n<li>Oracle PL\/SQL, B. Rosenzweig and E. Silvestrova, Pearson education.<\/li>\n<li>SQL &amp; PL\/SQL for Oracle 10 g, Black Book, Dr. P. S. Deshpande, Dream Tech.<\/li>\n<li>Oracle Database 11 g PL\/SQL Programming, M. Mc Laughlin, TMH<\/li>\n<\/ul>\n<p>For all other B.Tech 2nd\u00a0Year 2nd Sem syllabus go to <a href=\"https:\/\/www.inspirenignite.com\/jntuh\/jntuh-second-year-second-sem-information-technology-course-structure-2016-2017-r16-batch\/\">JNTUH B.Tech Information Technology 2nd\u00a0Year 2nd Sem Course Structure for (R16) Batch.<\/a><\/p>\n<p>All details and yearly new syllabus will be updated here time to time. Subscribe, like us on facebook and follow us on google plus for all updates.<\/p>\n<p>Do share with friends and in case of questions please feel free drop a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Database Management Systems Lab Detailed Syllabus for B.Tech second year second sem is covered here. This gives the details about credits, number of hours and other details along with reference [&hellip;]<\/p>\n","protected":false},"author":2259,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[62],"tags":[],"class_list":["post-3481","post","type-post","status-publish","format-standard","hentry","category-syllabus"],"_links":{"self":[{"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/posts\/3481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/users\/2259"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/comments?post=3481"}],"version-history":[{"count":3,"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/posts\/3481\/revisions"}],"predecessor-version":[{"id":18030,"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/posts\/3481\/revisions\/18030"}],"wp:attachment":[{"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/media?parent=3481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/categories?post=3481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inspirenignite.com\/jntuh\/wp-json\/wp\/v2\/tags?post=3481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}