INFORMATION TECHONOLOGY (402) UNIT 7 DATABASE DEVELOPMENT PRACTICAL QUESTIONS

Similar documents
KENDRIYA VIDYALAYA SANGATHAN CLASS XII EXAMINATION INFORMATICS PRACTICES (065)

SUB:- INFORMATION TECHNOLOGY PRACTICE QUESTIONS. Section A. 3. It was who wanted to go to mountains instead of the beach.

Table : Purchase. Field DataType Size Constraints CustID CHAR 5 Primary key CustName Varchar 30 ItemName Varchar 30 PurchaseDate Date

Q1. (SQL) Consider the following table HOSPITAL. Write SQL commands for the statements (i) to (v)

Q5 Question Based on SQL & Database Concept Total Marks 8. Theory Question 2 Marks / SQL Commands 6 Marks / Output of commands 2 Marks

COMPUTER SCIENCE 1998 (Delhi Board)

INFORMATICS PRACTICES (065)

KENDRIYA VIDYALAYA SANGATHAN BLUE PRINT INFORMATICS PRACTICES CLASS XII

SESSION ENDING EXAMINATION Set-3 INFORMATICS PRACTICES CLASS XI BLUE PRINT Long Short Very Short

Downloaded from Set :B SECTION A


CHAPTER 10 SQL 6 MARKS QUESTIONS

THE INDIAN COMMUNITY SCHOOL, KUWAIT

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST COMMON PRE BOARD EXAMINATION CLASS:XII - (COMPUTER SCIENCE )

PRE BOARD EXAM Sub:Informatics Practices (065) Class:XII

Visit For All NCERT solutions, CBSE sample papers, Question papers, Notes for Class 6 to 12

(d) Rewrite the following program after removing all the syntax error(s), if any. [2] include <iostream.h> void main ( )

ajpatelit.wordpress.com

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION COMPUTER SCIENCE (083)

1. Answer the following questions: a. Explain Real Time OS.

SECOND TERMINAL EXAMINATION, 2017 INFORMATICS PRACTICES

UNIT - 3 Relational Database Management System

Index for C++ Programming

FIRST PRE BOARD CLASS-XII INFORMATICS PRACTICES

Downloaded from

Assignment No. 1 DBMS CONCEPTS

QUESTION BANK CLASS- XI ( INFORMATICS PRACTICES)

Time Allowed :3 hours Maximum Marks : 70

Maharaja Agrasen Model School Sample Paper Subject: Informatics Practices

5 Years Integrated M.Sc.(IT) Semester 1 Practical LIST CC2 Database Management Systems

Downloaded from

INDIAN SCHOOL MUSCAT FINAL TERM EXAMINATION INFORMATICS PRACTICES

Sample Question Paper

Marking Scheme Class X INFORMATION TECHNOLOGY(402)

SQL-Structured Query Language BY : SHIVENDER KUMAR BHARDWAJ PGT-TAFS

2016 COMPUTER SCIENCE

SESSION ENDING EXAMINATION CLASS XI SUBJECT : INFORMATICS PRACTICES (065) Time Allowed : 3 Hrs. Max Marks : 70

Downloaded from

Question Bank IT(402) Unit Database 1. What is database? Ans: A database is a collection of information that is organized so that it can be easily

SAMPLE PAPER Class XII Subject INFORMATICS PRACTICES. TIME: 3Hrs. M.M. 70

Guru Gobind Singh Public School. Assignment

Database Management Systems

Commission NUMBER(7,2) 15. Create a table with the undermentioned structure (Table name is DEPT)

Revised Guidelines for B.A. Programme Semester II Paper: Database Management System (Meeting held on 15 th Jan 2015)

CLASS XII SAMPLE PAPER-065 INFORMATICS PRACTICES

KENDRIYA VIDYALAYA SANGATHAN CLASS XII BOARD EXAMINATION INFORMATICS PREACITES (065)

KENDRIYA VIDYALAYA NO 1 AFS JALAHALLI (WEST) PRE BOARD INFORMATICS PRACTICE Class XII

Database Management Systems,

Downloaded from

[6] [6] [6] [5] [5] [6] [5] [5]

INFOTECH Computer Education, Kishangarh (Raj) Visit : Page 1

SQL. Char (30) can store ram, ramji007 or 80- b

2 SEMESTER EXAM CLASS : 12 DECEMBER 2016 TIME : 3 Hrs MAX MARKS : 70

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST PRE-BOARD EXAMINATION

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION CLASS XII COMMON PRE-BOARD EXAMINATION

ES II Set 1 Date: 20 th July 2018 Class XII Sec. Time: 1 1/2 Hrs. Informatics Practices answer key M.M.: 35

Kendriya Vidyalaya Sangathan (Chandigarh Region) Blue Print of Question Paper Class: XI Subject: Informatics Practices Session

ES I INFORMATICS PRACTICES Set I Class XII Sec- A,B,C Date: April 2017 Time: 1 hr 10 min M.M.: 30

KENDRIYA VIDYALAYA ONGC PANVELSESSION ENDING EXAM

MARKING SCHEME INFORMATICS PRACTICES (065) Time allowed : 3 Hours M. M.: 70. (a) Ans: Team Viewer( 1 mark for correct answer)

into student(rollno,name, batch,mark1, mark2,mark3) values(..details of second record);


SQL Structured Query Language Introduction

Deepak Bhinde PGT Comp. Sc.

Unit 7: Database Development (Basic)

List of Practical for Class XII Computer Science

KENDRIYA VIDYALAYA SANGATHAN REGION KOLKATA XII 3 RD -PreBoard SUBJECT-IP (065)

M.Com IT (Information Tech.) -Scheme with Practical List Colleges BHARATHIAR UNIVERSITY,COIMBATORE

Select Avg (Commission) for Sales; Select Count(Sales) from Sales;

SAMPLE PAPER-2015 CLASS-XII Subject: Informatics Practices. Time: 3 hours Max. Marks: 70

Sample Paper 2015 Class XII Subject INFORMATICS PRACTICES

INFORMATICS PRACTICES

[Time allowed: 3hours] [Maximum Marks: 70] Instructions (i) All questions are compulsory

Informatics Practices, Class XII ( ) (Summer Vacation-2015) (Holiday H.W) Java Concepts & Programming, MySQL

INDIAN SCHOOL MUSCAT FIRST PRELIMINARY EXAMINATION 2017 INFORMATICS PRACTICES

Visit for more.

1 (i) do (ii) Float (iii) salary12 (iv) Product

Downloaded from

Database Management Systems

Practice for Test 1 (not counted for credit, but to help you prepare) Time allowed: 1 hour 15 minutes

SAMPLE PAPER. Class: XII SUBJECT COMPUTER SCIENCE. Time: 3 Hours MM: 70

Structure Query Language (SQL)

Relational Databases

Sample Paper 2014 Class - XII Subject Informatics Practices (065)

SUBJECT CHEMISTRY. SUBJECT MATHEMATICS Solve the assignments given in the class. SUBJECT PSYCHOLOGY

Downloaded from

Marwadi University Bachelor of Computer Application Semester II (w.e.f. July, 2016)

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment

Sample Paper 2012 Class XII Subject Informatics Practices

Programming in OOP/C++

Create the following tables ( primary keys are underlined.).

CS348: INTRODUCTION TO DATABASE MANAGEMENT (Winter, 2011) FINAL EXAMINATION

Practice questions recommended before the final examination

ASSIGNMENT NO Computer System with Open Source Operating System. 2. Mysql

PRACTICAL ASSIGNMENTS [LAB WORK] CLASS XII IP

Babu Madhav Institute of Information Technology 2015

Practical File Answer key Class X (402)

12. MS Access Tables, Relationships, and Queries

Note: Select one full question from each unit

Transcription:

INFORMATION TECHONOLOGY (402) UNIT 7 DATABASE DEVELOPMENT PRACTICAL QUESTIONS Q1. Write the SQL commands on the basis of the given table: Table: HOSPITAL NO NAME AGE DEPARTMENT DATEOFADMIN CHARGES GENDER 1 Arpit 62 Surgery 12/1/2018 300 M 2 Zarina 22 ENT 12/12/2017 250 F 3 Kareem 32 Orthopaedic 2/19/2018 200 M 4 Arun 12 Surgery 5/1/2018 300 M 5 Zubin 30 ENT 6/18/2018 250 M 6 Ketaki 16 ENT 9/6/2018 250 F 7 Ankita 29 Cardiology 2/20/2018 800 F 8 Zareen 45 Gynaecology 2/22/2018 300 F 9 Kush 19 Cardiology 1/13/2018 800 M 10 Shilpa 23 Nuclear Medicine 1/20/2018 400 F a. Write the command to create hospital table. b. Write the command to insert the first row. c. Write the command to show the records of the table. d. Write the command to show Name, Age, and Department from the table. e. To select all the information of patients of cardiology department. f. To list the names of female patients. g. To list names of the all patients with their date of admission in ascending order. h. Change the charges of ENT department to 300. i. Delete the entry of Patient Kush from the Table. j. Add one more record into the table (11, Suman, 54, Surgery, 1/15/2018, 300, F ) Q2. Write an SQL query for the following structure. Table: EMPLOYEE Field Type a. Identify the Primary Key in the Table. Emp_no char(4) b. Create a table Employee. Name varchar(25) c. Insert any 5 records into the table. Salary Integer(6) d. Arrange the table according to the Emp_no in ascending order. Department varchar(15) e. Add one record ( Z567, Rajiv Gupta, 35000, HR ) f. Update the Name to Rajeev Gupta of Emp_No. Z567. Q3. Write the SQL commands to answer the queries based on Fabric Table: FabricID Fname Type Disc F001 Shirt Wollen 10 F002 Suit Cotton 20 F003 Tunic Cotton 10 F004 Jeans Denim 5 F006 Shorts Cotton 7 a. To insert the following record ( F005, Kurta, wollen,5 ). b. To display only those fabrics whose disc is more than 10. c. To display only those records whose type is wollen. Page 1 of 5

d. To modify the fabric shirt by increasing discount of 10. e. To delete the record of fabric F003 from table. Q4. Write the SQL commands on the basis of the given table: Table: STUDENT Roll_No Name DOB Class Phone H_Colour Email Location 23 Ravi Kaul 8/13/1999 X 1234567890 Blue ravikaul@gmail.com Delhi 13 Bijendar 1/1/1999 X 9874563215 Green dalal@gmail.com Mumbai Dalal 7 Radha Swami 1/2/2000 X 9698521470 Orange radha@gmail.com Gujarat 32 Vikas Maheswari 11/17/1998 X 9023698574 Blue Vikasm@gmail.com Maharashtra 14 Vimla Rani 9/23/1999 X 9487456321 Yellow Rani@gmail.com Orissa 26 Sandhya Reddy 12/19/1998 X 9630125478 Blue Sr@gmail.com Delhi a. Write the command to create Student Table. b. Write the command to insert all the records. c. Write the command to show the student table. d. Write the command to show details of the students whose House Colour is Blue from the table. e. To view records in ascending order of Roll_No from the table. e. To select all the information of all the students who belongs to Delhi City. f. To list the names of students, Phone and Location from the table. g. To view records in descending order of Roll_No from the table. h. Add one more record into the table (8, Ranjith Singh, 12/03/1999, X,9856321470, ranjith@gmail.com, White, Bihar ) i. To delete the record of student Roll_No 8. j. To update the record Location to Bhubaneswar of Roll_No 14. k. Change the class of student Ravi Kaul to XII. Q5. Write the SQL commands to answer the queries based on TABLE : BOOKS Book_id Book_name Author_name Publishers Price Type Qty F001 The tears William Hopkins First Publ. 750 Fiction 10 F002 Thunderbolts Anna Roberts First Publ. 700 Fiction 5 T003 My first C++ Brian & Brooke EPB 250 Text 10 T004 Info Practices Sumita Arora BPB Publ. 275 Text 5 C001 Fast Cook Lata Kapoor EPB 350 Cookery 8 a. Create a table : Books b. Identify the primary key in the table. c. List the names of books of type fiction. d. List the books in descending order of qty. e. Change the qty of F001 To 15 f. Delete the record of book T004 g. List the books whose price is more than 500. Page 2 of 5

Q6. Write the answers based on the following table: Table: Manger Deptno Deptname Name City S101 Sales Pranjal Sharma Delhi HR404 HR Preeti Arora Chennai P204 Purchase Sukhmeen Singh Bangalore AD990 Admin Sukanya Kumar Mumbai a. Identify the Primary key in the Table. b. Create the Table Manager. c. Suggest a suitable data type for the Deptname field. d. Write a query to display all the records of the table. e. Add a new record with the following details: ( S106, Sales, KritikaTuteja, Delhi ). f. Display the only the details of Name and City. g. Change the Department name of S106 to HR. h. Display the details of Manager who belongs to Delhi City. i. Arrange the table according to Department Number in ascending order. j. Update the name of the manager Preeti Arora to Preeti Sharma. k. Add one more record ( I459, Admin, Aman Gupta, Chennai ). l. Delete the record of I459 from the table. Q7. Write the SQL commands to answer the queries based on TABLE: TOY Sno Toy_name Category Price Qty 1 Popeye Stuff toy 150 12 2 Rapid Fire Two Players 600 25 3 Teddy Stuff Toy 300 40 4 Creative Building Block 800 18 5 Ping Pong Two Players 500 53 a. Write the command to create a table. b. Write the command to insert the first row. c. Write the command to display the table. d. To display the toys of category Stuff Toys. e. To display toys in ascending order of toy. f. To display all the toys whose quantity is more than 20. g. To display all the toys whose price is less than 500. h. Delete the record of toy Ping Pong. i. Change the quantity of Ping Pong to 60. j. Display the table according to the price in descending order. Page 3 of 5

Q8. Write the SQL commands to answer the queries based on Teacher table: Table: TEACHER NO NAME AGE DEPT DATEOFJOIN SALARY GENDER 1 Jugal 34 Computer 10/1/2017 20000 M 2 Sharmila 31 History 12/8/2016 20000 F 3 Sandeep 32 Maths 6/15/2014 30000 M 4 Sangeeta 35 History 8/19/2017 40000 F 5 Rakesh 42 Maths 4/11/2018 25000 M a. Create the table TEACHER. b. To show information about the teachers of history department c. To list the names of teachers earning salary between 12000 and 25000 d. To list name and age of teachers in ascending order of date of join e. To change the salary of jugal to 25000. f. To list the names of teachers earning salary more than 30000. g. Display the full table Teacher. h. Display the table according to the age in descending order. i. Display only Male teachers. j. To show information about the teachers of maths department. k. To list the names of teachers earning salary less than 30000. l. To list name and salary of teachers in descending order of date of join. m. To change the dept of sangeeta to computer. n. To display only name, age and salary of the teachers. o. To delete the record of teacher rakesh. Q9. Write the SQL commands to answer the queries based on Hospital table TABLE: HOSPITAL NO NAME AGE DEPARTMENT CHARGES SEX 1 Sandeep 65 Surgery 300 M 2 Karan 24 Orthopedic 200 F 3 Zubin 36 ENT 250 M 4 Ankita 29 ENT 350 F 5 Kush 19 Surgery 800 M a. Create a table hospital. b. Name the primary key of the table. c. Display all the information of the table HOSPITAL. d. To show all the information about the patients of surgery department. e. To list the names of female patients who are in orthopedic department. f. To list names of all patients with their charges in descending order. g. Increase the charges of sandeep to 500. h. To display the list of doctors whose age >30. i. Delete the record of Zubin. j. Change the department of ankita to Surgery. Page 4 of 5

Q10. Write the SQL commands on the basis of the given table: Table: SUPPLIER SNo Pname SName Qty Price City S1 Bread Britannia 150 8 Delhi S2 Cake Britannia 250 20 Mumbai S3 Coffee Nescafe 170 45 Mumbai S4 Chocolate Amul 380 10 Delhi S5 Sauce Kissan 470 36 Jaipur a. Identify the primary key in the table. b. Create table Supplier. c. To insert first record in the table. d. To select all the columns of the above table. e. To select the Pname and SName from the above table. f. Display data for all products sorted by their price. g. Update the price of the Product Kissan to Rs. 40 of Jaipur City. h. Display only Delhi city Suppliers. i. Display only Product name and price from the table. j. Delete the record from the table whose SNo is S10. k. To insert a new record in the table: (S6, Milk, Amul, 100, 42, Delhi) l. Display only the details of Amul Supplier. m. Update the quantity to 200 of S6. n. Display the entire supplier name in ascending order. o. Remove the record whose supplier is Godrej. Page 5 of 5