VPM s Joshi-Bedekar College of Arts and Commerce TYBCOM Practical Exam Practice Questions MYSQL

Similar documents
(Note: 1. Each Question Carries 5 marks. 2. Solve any two questions) SET-I

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

PRACTICAL LIST FOR ODD SEMESTERS Session (PGDCA/MCA/MSC (CS))

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

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

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

Subquery: There are basically three types of subqueries are:

Babu Madhav Institute of Information Technology 2015

PRACTICAL ASSIGNMENTS [LAB WORK] CLASS XII IP

Database implementation Further SQL

AssNo: 1 Use MySQL Create a table emp with following fields and constraints

Database Management Systems

Name: Sample Answers Q.2(c) 7 7

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

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

INDIAN SCHOOL MUSCAT FINAL TERM EXAMINATION INFORMATICS PRACTICES

SYSTEM CODE COURSE NAME DESCRIPTION SEM

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

The Excel worksheet contains 16,384 rows that extend down the worksheet, numbered 1 through

Maharaja Agrasen Model School Sample Paper Subject: Informatics Practices

CONCEPT ON STRUCTURED QUERY LANGUAGE (SQL) By: Rohan Byanjankar Sainik Awasiya Mahavidyalaya, Sallaghari, Bhaktapur

Downloaded from

DR B.R.AMBEDKAR UNIVERSITY B.Sc.(Computer Science): III Year THEORY PAPER IV (Elective 4) PHP, MySQL and Apache

Subject: Computer Science

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

Sample Question Paper

Sun Certified MySQL Associate

Finding and Adding Payees in Payment Entry - Best Practices

CS2 Current Technologies Lecture 2: SQL Programming Basics

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

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

UNIVERSITY OF MUMBAI T.Y.B.Sc.( INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER ASP.NET with C# Seat No. : Max.

MySQL DML Commands - Joins and subqueries

A. It executes successfully and displays rows in the descending order of PROMO_CATEGORY.

Finding and Adding Payees in Payment Entry - Best Practices

CS3DB3/SE4DB3/SE6M03 TUTORIAL

Computer Science & Engineering. Second Year

Course Title: Introduction to Database Management System Course Code: CSIT116 Course Level: UG Course Credits:04 L T P/ S SW/F W

Laboratory Manual. For. Database Management System (IT 502) B.Tech (IT) SEM V. June 2010

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

Objectives/Outcomes. Introduction: If we have a set "collection" of fruits : Banana, Apple and Grapes.

NURSING_STAFF NNbr NName Grade

Hire a Non Applicant (Employee)

1Z Oracle Database 11g - SQL Fundamentals I Exam Summary Syllabus Questions

ITCertMaster. Safe, simple and fast. 100% Pass guarantee! IT Certification Guaranteed, The Easy Way!

Microsoft MOS- Using Microsoft Office Access Download Full Version :

1Z0-007 ineroduction to oracle9l:sql

THE INDIAN COMMUNITY SCHOOL, KUWAIT

What Are Group Functions? Reporting Aggregated Data Using the Group Functions. Objectives. Types of Group Functions

Key Points. COSC 122 Computer Fluency. Databases. What is a database? Databases in the Real-World DBMS. Database System Approach

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

Lesson 2. Data Manipulation Language

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

Create a Hyperfind Query to Display Select Employees

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

Name :. Roll No. :... Invigilator s Signature : DATABASE MANAGEMENT SYSTEM

King Fahd University of Petroleum and Minerals

Darshan Institute of Engineering & Technology Relational Model

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

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

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

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

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

CS100 : Computer Programming

A subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select,

Normalization in DBMS

Chapter 8: Relational Algebra

Examination examples

In This Lecture. More SQL Select. SQL SELECT Overview. Aliases. Example. Example. More SQL Select. Database Systems Lecture 8 Natasha Alechina

Assignment No. 1 DBMS CONCEPTS

MySQL Introduction. By Prof. B.A.Khivsara

Object Oriented Programming Using C ++ Page No. : 1. ASSIGNMENT SHEET WITHOUT USING OBJECT AND CLASSES

Downloaded from

QUESTION BANK CLASS- XI ( INFORMATICS PRACTICES)

Why Relational Databases? Relational databases allow for the storage and analysis of large amounts of data.

Sample Paper 2012 Class XII Subject Informatics Practices

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

Wentworth Institute of Technology COMP2670 Databases Spring 2016 Derbinsky. Physical Tuning. Lecture 12. Physical Tuning

Exam: 1Z Title : Introduction to Oracle9i: SQL. Ver :

DB - Week 3 Lab1-2 Introduction to Databases. Dina A. Said

COSC 122 Computer Fluency. Databases. Dr. Ramon Lawrence University of British Columbia Okanagan

EPM Query Introduction HRMS Focus Course Number: HRP 100

CS 2451 Database Systems: More SQL

DBMS. Relational Model. Module Title?

CLASS XII SAMPLE PAPER-065 INFORMATICS PRACTICES

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

Relational Model Introduction

CS44800 Practice Project SQL Spring 2019

Chapter 16: Advanced MySQL- Grouping Records and Joining Tables. Informatics Practices Class XII. By- Rajesh Kumar Mishra

Data about data is database Select correct option: True False Partially True None of the Above

Suggestive List of C++ Programs

ajpatelit.wordpress.com

Week7: First Tutorial

Visit for more.

SQL Queries. COSC 304 Introduction to Database Systems SQL. Example Relations. SQL and Relational Algebra. Example Relation Instances

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

L130 - DATABASE MANAGEMENT SYSTEMS LAB CYCLE-1 1) Create a table STUDENT with appropriate data types and perform the following queries.

LOOPS. 1- Write a program that prompts user to enter an integer N and determines and prints the sum of cubes from 5 to N (i.e. sum of 5 3 to N 3 ).

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

Introduction to the Structured Query Language [ SQL ] (Significant Concepts)

Transcription:

STUDENT containing columns ROLLNO (roll number), NAME (Student s name), ADDR (Student s address) and PHONE (Phone number). Add five rows to this table. To Display roll number, name of all the students EMPLOYEE containing columns EMP_ID( employee id primary key) EMP_NAME( employee s name ) and DOJ( Date of joining ). Execute query for the following: (i) Insert a row into this table. (ii) Add a new column called EMAIL_ID to the table. Q.1 In MySQL, Create a database in your name and then create a a table called STUDENT containing columns ROLLNO (roll number), NAME (Student s name) and PHONE (Phone number). (i)display structure of the table STUDENT. (ii) Rename the table as STUDENT1.

EMPL containing columns EMP_ID (employee id primary key) E_NAME (employee s name) DEPT_ID (department id). (i)display rows in alphabetical order of name. (ii)delete the table EMPL. EMPL containing columns EMP_ID (employee id primary key) EMP_NAME (employee s name) and SALARY (salary). (i)increase salary of each employee by 2000. (ii)rename column SALARY as PAY. Q.1 In MySQL, Create a database in your name and then create a table EMPL containing columns EMP_ID (employee id primary key) EMP_NAME (employee s name) DEPT_ID (department id), DOJ (date of joining). (i) Display employee id, employee name of employees. (ii) Display employee id, employee name and date of joining of those employees whose name contains letter S.

Q.1 In MySQL, Create a database in your name and then create a table EMPL containing columns EMP_ID (employee id primary key) EMP_NAME (employee s name) and SALARY (salary). (i) Display employee id, employee name and salary of 2 highest paid employees. (ii) Display all the row where salary is more than 10000. STUDENT containing columns ROLLNO (roll number), NAME (Student s name), MAR1,MAR2( marks in 2 tests). (i)to Display roll number, name total marks of all the students. (ii) To display average marks in each test. EMPLOYEE containing columns EMP_ID( employee id primary key) EMP_NAME( employee s name ) and DOJ( Date of joining ). Execute query for the following: (i) Insert a new column PHONE to store phone numbers to this table. (ii) To change the column name of EMP_NAME to E_NAME.

STUDENT containing columns ROLLNO (roll number), NAME (Student s name) and PHONE (Phone number). (i)display structure of the table STUDENT. (ii) Rename the table as STUDENT1. EMPL containing columns EMP_ID (employee id primary key) E_NAME (employee s name) DEPT_ID (department id). (i)display rows in alphabetical order of name. (ii)delete the table EMPL. EMPL containing columns EMP_ID (employee id primary key) EMP_NAME (employee s name) and SALARY (salary). (i)increase salary of each employee by 2000. (ii)rename column SALARY as PAY.

Q.1 In MySQL, Create a database in your name and then create a table EMPL containing columns EMP_ID (employee id primary key) EMP_NAME (employee s name) DEPT_ID (department id), DOJ (date of joining). (iii) Display employee id, employee name of employees. (iv) Display employee id, employee name and date of joining of those employees whose name contains letter S. Q.1 In MySQL, Create a database in your name and then create a table EMPL containing columns EMP_ID (employee id primary key) EMP_NAME (employee s name) and SALARY (salary). (i) Display employee id, employee name and salary of 2 highest paid employees. (ii) Display all the row where salary is more than 10000. Q.1 In MySQL, Create a database in your name and then create a table BANK containing columns CUS_ID (Customer id primary key) C_NAME (Customer s name) depo (deposit amount) and DOD (date of deposit). i) Display Customer id, name where deposit amount is more than 5000. ii) Add a new column IRATE to store interest rate and update this field by storing rate as 12 in every row.

(i) Display salesman id, name and total sales for those whose total sales is between 15000 and 25000. (ii)show all the rows in descending order of sales. (i) Add one new column COMMI to the table to store commission. (ii) Update the column commission as 3% of total sales. (i) (ii) To show sum and average of total sales of all the employees. To display names of all salesmen whose names begin with the letter A

Q.1 In MySQL, Create a database in your name and then create a table PRICES containing columns prod_id (Product id primary key) PNAME (product name) and UPRICE (Unit Price). iii) Display only the first 3 rows. iv) Add a new column SPRICE to store selling price and update this field by storing selling price 15% more than the unit price. Q.1 In MySQL, Create a database in your name and then create a table WAGES containing columns WORKER_ID (Worker id primary key) W_NAME ( name) and HRS (Hours worked),rate (rate per hour). (i) Display worker id, name and wage of all workers. (ii)show all the rows in alphabetical order of Name. (ii) Add one new column COMMI to the table to store commission. (ii) Update the column commission as 3% of total sales.

(iii) (iv) To show sum and average of total sales of all the employees. To display names of all salesmen whose names begin with the letter A