THE INDIAN COMMUNITY SCHOOL, KUWAIT

Similar documents
Assignment No. 1 DBMS CONCEPTS

INFORMATICS PRACTICES (065)

Question Bank. Class : XII( ) Subject : Informatics Practices(065)

INDIAN SCHOOL MUSCAT FINAL TERM EXAMINATION INFORMATICS PRACTICES


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

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement

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

INDIAN SCHOOL SOHAR FINAL EXAMINATION ( ) INFORMATICS PRACTICES (065)

SQL Structured Query Language Introduction

SQL. - single row functions - Database Design ( 데이터베이스설계 ) JUNG, Ki-Hyun ( 정기현 )

KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK CLASS-XII INFORMATICS PRACTICES

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

Chapter 14: MySQL Revision Tour. Informatics Practices Class XII. By- Rajesh Kumar Mishra. KV No.1, AFS, Suratgarh (Raj.)

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

KENDRIYA VIDYALAYA ONGC PANVELSESSION ENDING EXAM

CS2 Current Technologies Lecture 2: SQL Programming Basics

Downloaded from

Visit for more.


Visit for more.

SAMPLE PAPER CLASS XII SUBJECT Informatics Practices

Index for C++ Programming

Objectives. After completing this lesson, you should be able to do the following:

CS2 Current Technologies Lecture 3: SQL - Joins and Subqueries

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION FIRST PRE-BOARD EXAMINATION

INTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION. Subject- Informatics Practices

Chapter 12 DBMS Concepts

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

GIFT Department of Computing Science. [Spring 2016] CS-217: Database Systems. Lab-3 Manual. Single Row Functions in SQL

Chapter 9: Working with MySQL

Downloaded from

Databases. Relational Model, Algebra and operations. How do we model and manipulate complex data structures inside a computer system? Until

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

King Fahd University of Petroleum and Minerals

Subodh Public School

QUESTION BANK CLASS- XI ( INFORMATICS PRACTICES)

INDIAN SCHOOL MUSCAT FIRST PRELIMINARY EXAMINATION 2017 INFORMATICS PRACTICES

1 SQL Structured Query Language

CS2 Current Technologies Note 1 CS2Bh

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

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

INTERNATIONAL INDIAN SCHOOL, RIYADH XI XII BOYS SECTION

RDBMS Using Oracle. BIT-4 Lecture Week 3. Lecture Overview

Sample Paper for class XII IP with Answers Prepared by Successbook Group Sub: - Informatics Practices Total Marks :70 Time:3hr

Database implementation Further SQL

UNIT-3 RELATIONAL DATABASE MANAGEMENT SYSTEM

P.G.D.C.M. (Semester I) Examination, : ELEMENTS OF INFORMATION TECHNOLOGY AND OFFICE AUTOMATION (2008 Pattern)

Visit for more.

SYSTEM CODE COURSE NAME DESCRIPTION SEM

15. INFORMATICS PRACTICES (CODE: 065)

1 SQL Structured Query Language

Unit 1 - Chapter 4,5

Deepak Bhinde PGT Comp. Sc.

KENDRIYA VIDYALAYA SANGATHAN CLASS XII EXAMINATION INFORMATICS PRACTICES (065)

Downloaded from

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

Introduction. Introduction to Oracle: SQL and PL/SQL

Databases - 4. Other relational operations and DDL. How to write RA expressions for dummies

Database Management System. * First install Mysql Database or Wamp Server which contains Mysql Databse.

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

CLASS XII INFORMATICS PRACTICES ACADEMIC SESSION FORTNIGHTLY BREAKUP OF SYLLABUS. Main Topic Sub Topics Pds Total Pds

GIFT Department of Computing Science. CS-217: Database Systems. Lab-4 Manual. Reporting Aggregated Data using Group Functions

THE INDIAN COMMUNITY SCHOOL, KUWAIT

PRACTICAL ASSIGNMENTS [LAB WORK] CLASS XII IP

UNIT III-DATA MANAGEMENT-1 COMPLETE NOTES

Create Rank Transformation in Informatica with example

Q.1 Short Questions Marks 1. New fields can be added to the created table by using command. a) ALTER b) SELECT c) CREATE. D. UPDATE.

INFORMATION TECHONOLOGY (402) UNIT 7 DATABASE DEVELOPMENT PRACTICAL QUESTIONS

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

@vmahawar. Agenda Topics Quiz Useful Links

Chapter 17: Table & Integrity Contraints. Informatics Practices Class XII. By- Rajesh Kumar Mishra. KV No.1, AFS, Suratgarh

ASSIGNMENT NO 2. Objectives: To understand and demonstrate DDL statements on various SQL objects

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

Pivot Tables Motivation (1)

Sample Question Paper

SECOND TERMINAL EXAMINATION, 2017 INFORMATICS PRACTICES

Programming Languages

Creating and Managing Tables Schedule: Timing Topic

Maharaja Agrasen Model School Sample Paper Subject: Informatics Practices

I MID SEMESTER. The Indian Community School Kuwait Informatics Practices Year Plan for Class XI

ajpatelit.wordpress.com

Real-World Performance Training SQL Introduction

IBM A Assessment: DB2 9 Fundamentals-Assessment. Download Full Version :

Based on the following Table(s), Write down the queries as indicated: 1. Write an SQL query to insert a new row in table Dept with values: 4, Prog, MO

Downloaded from Set :B SECTION A

Downloaded from

IBM DB2 9 Family Fundamentals. Download Full Version :

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement

CHAPTER 11 INTRODUCTION TO MySQL

Trigger is a stored procedure which is called implicitly by oracle engine whenever a insert, update or delete statement is fired.

Part III. Data Modelling. Marc H. Scholl (DBIS, Uni KN) Information Management Winter 2007/08 1

Tables From Existing Tables

SILVER OAK COLLEGE OF ENGINEERING & TECHNOLOGY ADITYA SILVER OAK INSTITUTE OF TECHNOLOGY

Informatics Practices (065) Sample Question Paper 1 Section A

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables

RESTRICTING AND SORTING DATA

MySQL DML Commands - Joins and subqueries

Database Foundations. 6-3 Data Definition Language (DDL) Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Information Systems. Database System Architecture. Relational Databases. Nikolaj Popov

Transcription:

THE INDIAN COMMUNITY SCHOOL, KUWAIT SERIES : II MID TERM /FN/ 18-19 CODE : M 065 TIME ALLOWED : 2 HOURS NAME OF STUDENT : MAX. MARKS : 50 ROLL NO. :.. CLASS/SEC :.. NO. OF PAGES : 3 INFORMATICS PRACTICES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1) Answer the following questions: 10x2= a) What is Mysql? What are its Characteristics? b) Classify Mysql according to its Category. Explain each. c) What is the difference between char() and varchar(). d) Differentiate between primary key and unique key. e) Differentiate between drop table and delete with example. f) How the Alternate Key different from Candidate key. g) What are Constraints?. What are the different types of Constraints. Explain. h) What is a MySQL function? What are the different types of functions Explain with example. i) Write the syntax for the following: I. To Extract the name of the weekday for the date passed II. To return the Numerical value of a Character j) Write the syntax for the following: i. To Search the first occurrence of a character in the string ii. To check the given number is positive or negative 2) Write an SQL query to create a table Employee with proper Syntax and constraints. 2 Attribute Data type Size Constraint Ecode Integer 10 Not Null, Primary key Ename Varchar Not Null Sex Char 1 Not Null Grade Char 2 Default grade = E1 Gross Decimal 10 Check Gross should be morethan 00. Deptno Integer 6 Default can be 10 3) Write SQL commands for the table Club given below: 3x1=3 Table: CLUB Cid Coachname Age Sports DateofApp Pay Sex 1 Ravina 34 Karate 1998-01- 10 F 2 Kukreja 35 Karate 1996-03-27 1000 M 3 Karan 34 Squash 1999-02-19 Null M 4 Tarun 33 BasketBall 1999-01-01 1500 M 5 Ketaki 36 Swimming 00-01-12 750 F

a) Display all the female coaches in alphabetical order who joined after 1998 with salary more than 1000. b) Add a new column address into the table CLUB. c) To Delete the table club including its structure. 4) Write SQL commands for the table Teacher given below. 12x1=12 Table: TEACHER No. Name Age Department Dateofjoin Salary Sex 1 Zainab 34 Computer 07-01-10 199.75 M 2 Sharmila 31 History 08-03-24 0.00 F 3 Sandeep 32 Maths 06-12-12 0.00 M 4 Aswini 35 Computer 09-01-17 480.75 F 5 Rakesh 42 Maths 07-05-09 254.00 M 6 Shyam 50 History 08-06-27 5.00 M 7 Shiva 44 Computer 07-02-25 999.50 M 8 Shalakha 33 Maths 07-07-31 240.85 F a) To list the names of all teachers in uppercase with their date of join in descending order. b) Increase the salary of all male teacher by 10% whose age is not in the range of to 40. c) To insert a new row in the table with the following data without using null : 10, Rajesh, Computer, M d) Display the name starts with S,ends with a only from Computer and Maths department. e) Delete all the teachers who joined in the month of June 1998. Display all the teachers in the following format: <name> were working in <department> drawing <salary> f) To list all teachers whose annual salary is more than 200. g) Remove the column called age from the table teacher. h) Display different departments from teacher table. Write the Output for the following: i) Select dayofmonth (dateofjoin), name from teacher where salary between 0 and 0; j) Select substr (name,2,3) from teacher where department = computer order by name; k) Select year (dateofjoin) + Month(dateofjoin) from teacher where age > 35 ; l) Select round (salary, -1) + truncate (salary, -2) from teacher where sex = M ; 5) Find the output for the following : 13x1=13 Table : emp Empno Ename Job Mgr Hiredate Sal Comm Deptno 8369 SMITHA CLERK 8902 1992-12-18 5800 8499 8521 8566 8654 ANYA SETH DEVAN MOMIN BINA MANAGER PRESIDENT ANALYST 1991-02- 1992-02-22 1991-04-02 1993-09-28 1993-05-01 1600 4985 4850 10 1500 1400 00 10 a) Select ename,comm from emp where length( ename ) < 5 and comm Is not null. b) Select substr( ename,-3 ), left (job,3) from emp where deptno= ; c) Select * from emp order by deptno desc ; d) Select year ( hiredate ) + month( hiredate) from emp where ename like %n ;

e) Select ename from emp where Sal >= 00 and year( hiredate ) between 1991 and 1992; f) SELECT RIGHT ( LEFT ( software, 5), 2); g) SELECT INSTR ( SUBSTR ( PROGRAMMING IS FUN,8,9 ), U ) ; h) SELECT DAYOFYEAR (CURDATE()) + DAYOFMONTH ( 14-03-01 ); i) SELECT ROUND (76.987, -2) + TRUNCATE (999.99,-1); j) SELECT MOD (-27,4) + POW (2,6) ; k) SELECT CHAR(50,70,100) + ASCII( BAD ); l) SELECT LEFT(RIGHT( MATHEMATICS,8),5); m) SELECT SUBSTR(LEFT( MATHEMATICS,8),-5); #####################

The Indian Community School,Kuwait II mid semester Examination Class XI Informatics Practices Answer key Time 2 hrs Marks : 50 2) Answer the following questions: k) Definition Mysql (1) Characteristics (1) l) Classify Mysql according to its Category. Explain each. m) Difference between char() and varchar(). n) Difference between primary key and unique key. o) Difference between drop table and delete with example. p) Difference between Alternate Key different from Candidate key. q) Definition of Constraints. types. r) MySQL function. types. s) Write the syntax for the following: III. Dayname() IV. ASCII() t) Write the syntax for the following: iii. INSTR() iv. SIGN() 6) Create table Employee 7) Write SQL commands for the table Club given below: Table: CLUB Cid Coachname Age Sports DateofApp Pay Sex 1 Ravina 34 Karate 1998-01- 10 F 2 Kukreja 35 Karate 1996-03-27 1000 M 3 Karan 34 Squash 1999-02-19 Null M 4 Tarun 33 BasketBall 1999-01-01 1500 M 5 Ketaki 36 Swimming 00-01-12 750 F d) Select command syntax (1) e) Alter table syntax.(1) f) Drop table club. (1) 8) SQL commands for the table Teacher given below. 12x1=12 Table: TEACHER No. Name Age Department Dateofjoin Salary Sex 1 Zainab 34 Computer 07-01-10 199.75 M 2 Sharmila 31 History 08-03-24 0.00 F 3 Sandeep 32 Maths 06-12-12 0.00 M 4 Aswini 35 Computer 09-01-17 480.75 F 5 Rakesh 42 Maths 07-05-09 254.00 M 6 Shyam 50 History 08-06-27 5.00 M 7 Shiva 44 Computer 07-02-25 999.50 M 8 Shalakha 33 Maths 07-07-31 240.85 F m) Select syntax with ucase / order by. n) Update syntax / between. o) Insert into teacher (col name) values(10, Rajesh, Computer, M ) p) Select syntax with in clause. q) Delete command with month / year function. r) Select syntax with <name> were working in <department> drawing <salary> s) Select syntax with salary*12 >200. t) Alter table teacher drop age. u) Select distinct (departments) from teacher.

Write the Output for the following: v) Select dayofmonth (dateofjoin), name from teacher where salary between 0 and 0; w) Select substr (name,2,3) from teacher where department = computer order by name; x) Select year (dateofjoin) + Month(dateofjoin) from teacher where age > 35 ; y) Select round (salary, -1) + truncate (salary, -2) from teacher where sex = M ; 9) Find the output for the following : 13x1=13 Table : emp Empno Ename Job Mgr Hiredate Sal Comm Deptno 8369 8499 8521 8566 8654 SMITHA ANYA SETH DEVAN MOMIN BINA CLERK MANAGER PRESIDENT ANALYST 8902 1992-12-18 1991-02- 1992-02-22 1991-04-02 1993-09-28 1993-05-01 5800 1600 4985 4850 10 1500 1400 00 10 n) Select ename,comm from emp where length( ename ) < 5 and comm Is not null. o) Select substr( ename,-3 ), left (job,3) from emp where deptno= ; p) Select * from emp order by deptno desc ; q) Select year ( hiredate ) + month( hiredate) from emp where ename like %n ; r) Select ename from emp where Sal >= 00 and year( hiredate ) between 1991 and 1992; s) tw; t) 0; u) DAYOFYEAR (CURDATE()) + DAYOFMONTH ( 14-03-01 ); v) 100+990; w) -3 + 64 ; x) 2E66; y) HEMAT; z) HEMATICS; #####################