0% found this document useful (0 votes)
16 views14 pages

CSFINAL

The document is a practical file for Class XI Computer Science, authored by Palak Juneja. It contains SQL query exercises based on various tables including orders, employees, coaches, companies, and products. Each section includes specific tasks such as displaying data, filtering records, and modifying entries.

Uploaded by

rajpoots13209
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views14 pages

CSFINAL

The document is a practical file for Class XI Computer Science, authored by Palak Juneja. It contains SQL query exercises based on various tables including orders, employees, coaches, companies, and products. Each section includes specific tasks such as displaying data, filtering records, and modifying entries.

Uploaded by

rajpoots13209
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

LOVELY PUBLIC SR. SEC.

SCHOOL
CLASS XI
COMPUTER SCIENCE PRACTICAL FILE

NAME: PALAK JUNEJA


CLASS: XI-C
Q1. Study the following table and write SQL queries for
questions (a) to (e).
Orderid Pname Quantity Rate Sale_date Discount
1001 Pen 10 20 2022-10-
05
1002 Pencil 20 10 2022-10-
21
1003 Book 10 100 2022-11- 50
02
1004 Eraser 100 5 2022-12- 25
05
1005 Copy 50 20 2022-12-
10

(a) Create and Display the given table.

(b)Display Pname, Quantity and Rate for all the orders that
are either pencil or pen.

(c) Display the orders which are not getting any discount.
(d) Display the details of all the orders whose total cost is
greater than 500.

(e) Display the orders whose rate is in the range 20 to 100.

Q2) Study the following table and write SQL queries for
questions (a) to (e).
Emp_id Emp_name Emp_no
101 ashish 21
102 raj 31
103 vivek 38
104 shantanu 67
105 khanak 88

Emp_id Emp_profile Emp_country Emp_join_date


101 Content germany 2021-04-20
writer
102 Data analyst india 2022-12-11
103 Software india 2022-01-03
engineer
104 executive europe 2023-02-15
105 manager mexico 2020-05-23

table: employee

table: employeement
(a) Display details whose emp_no is 21?

(b) Display details whose em-id no is more than 101?

(c) Display details by increasing order of join date?


(d) Display details whose emp-id between 101 and 103?

(e)Display emp_name and emp_profile whose em-id are


same:-
Q3) Study the following table and write SQL queries for
questions (a) to (e).
Table Name: COACH

Table Name: comp

(a) Arrange the table in descending order of no of candidates


(b) Change prize money of a sport.

(c) Show names of coach that are above 30

(d) Display total prize money

(e) Display Coach names and how many candidates he trained


for competition.
Q4) Study the following table and write SQL queries for
questions (a) to (e).
Table Name: company

Table Name: customer

(a) Arrange the customer in descending order of quantity


(b) Show the company set up in Delhi and manufactures
Mobile

(c) Display total price of each customer

(d) Enter new record in company having details CID = 666,


NAME=HP, CITY=MUMBAI AND PRODUCT NAME=
LAPTOP
(e)Show the product name its price and its quantity.
Q5) Study the following table and write SQL queries for
questions (a) to (e).

(a)Display product name and brand name from the tables


PRODUCT and BRAND.
(b) Display the structure of the table PRODUCT.

(c) Display the average rating of Medimix and Dove brand.

(d) Display the name, price, and rating of products in


descending order of rating.
(e)Display all the details of the products whose price is
between 65 to 250.

You might also like