You are on page 1of 2

9 16 13 14 11 5 10 7 2 4 7 10 1 2 1 2 3 Home Chapters Chapter 13 CHAPTER 13 SUMITA ARORA

SOLUTIONS | CLASS 12 COMPUTER SCIENCE Here is class 12 computer science Unit 13 solutions for
Sumita Arora back exercise assignment. Below includes both textual and video solutions wherever
required. View all the answers in assignment for chapter 13 and for all chapters here. SQL
(Structured Query Language) is a relational database oriented language. It derives the whole table
data as single unit to operate on. It is mainly classified as Three sub-language: 1. DDL (Data
Definition Language) defining the structure of the database structure. 2. DML (Data Manipulation
Language) enables the user to manipulate the database. 3. DCL (Data Control Language) provide
control access to the database. Search.. PRIP File Solutions Practical Report File Chapter 1 Chapter 2
Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11
Chapter 12 Chapter 13 Chapter 13 Sumita Arora Solutions | Class 12 Computer Science Chapter 14
Chapter 15 Q1: How are SQL commands classified? Q2: Differentiate between DDL and DML
commands. Q3: (a) What is the use of UPDATE statement in SQL?  How is it different from ALTER
statement? (b) Mr. Shankar created a table VEHICLE with 3 rows and 4 columns.  He added 1 more
row to it and deleted one column.  What is the Cardinality and Degree of the Table VEHICLE? (c)
Consider the following table named “GYM” with details about fitness items being sold in the store. 
Write command of SQL for (i) to (iv). (i) To display the names of all the items whose name starts with
“A”. (ii) To display ICODEs and INAMEs of all the items, whose Brandname is Reliable or Coscore. (iii)
To change the Brandname to “Fit Trend India” of the item, whose ICODE or “G101” (iv) Add a new
row for new item in GYM with the details : “G107”, “Vibro exerciser”, 21000 “GTC Fitness” Q4: (a)
Mr. James created a table CLIENT with 2 rows and 4 columns.  He added 2 more rows to it and
deleted one column.  What is the Cardinality and Degree of the Table CLIENT? I want to help you 4 1
1 Chapter 15 Chapter 16 Chapter 17 Important Questions CLIENT? (b) Consider the following table
FITNESS with details about fitness products being sold in the store.  Write command of SQL for (i) to
(iv). (i) To display the names of all the products with price more than 20000. (ii) To display the names
of all the products by the manufacturer  “Aone”. (iii) To change the price data of all the products by
applying 25% discount reduction. (iv) To add a new row for product with the details : “P7”, “Vibro
Exerciser”, 28000,”Aone” Q5: Write SQL commands for the following on the basis of given table
CLUB. (a) To show all information about the swimming coaches in the club. (b) To list names of all
coaches with their date of appointment (DATOFAPP) in descending order. ( c) To display a report,
showing coachname, pay, age and bonus (15% of pay) for all the coaches. Q6: Write SQL commands
for the following on the basis of given table STUDENT1. (a) Select all the Nonmedical stream
students from STUDENT1. (b) List the names of those students who are in class 12 sorted by Stipend.
( c) List all students sorted by AvgMark in descending order. Q7: What is foreign Key?  How do you
define a foreign key in your table? Q8: How is FOREIGN KEY commands different from PRIMARY KEY
command? Q9: How is FOREIGN KEY commands related to the PRIMARY KEY? Q10: What are table
constraints?  What are column constraints?  How are these two different? Q11: Insert all those
records of table Accounts into table Pending where amt_outstanding is more than 10000. Q12:
Increase salary of employee records by 10% (table employee). Q13: Add a constraint (NN-Grade) in
table Empl (given before assignment) that declares column Grade not null. Q14: Drop the table
Empl. Q15: Differentiate between : (i) DROP TABLE, DROP DATABASE (ii)DROP TABLE, DROP clause of
ALTER TABLE. I want to help you What are your Feelings Share This Article : Still stuck? How can we
help? Updated on June 6, 2020 Q16: Mr. Mittal is using a table with following columns: Name, Class,
Stream_Id, Stream_name He needs to display names of students who have not been assigned any
stream or      have been assigned stream_name that ends with “computers”. He wrote the following
command, which did not give the desired result. SELECT Name, Class FROM Students WHERE
Stream_name = NULL OR Stream_name =”%computers” Help Mr. Mittal to run the query by
removing the error and write correct query. Q17: The Doc_name Column of a table Hospital is given
below: Based on the information, find the output of the following queries: (i) SELECT doc_name
FROM HOSPITAL WHERE Doc_name like “%x”: (ii)SELECT doc_name FROM HOSPITAL WHERE
doc_name like “%e%”: Q18: Sarthak, a student of class XII, created a table “Class”.  Grade is one of
the columns of this table.  To find the details of students whose Grades have not been entered, he
wrote the following MySql query, which did not give the desired result: SELECT *FROM Class WHERE
Grade = “Null”; Help Sarthak to run the query by removing the errors from the query and write the
correct query. Q19: What is the purpose of DROP TABLE command in MySql?  How is it different
from DELETE command? Clear Doubts with Computer Tutor In case you’re facing problems in
understanding concepts, writing programs, solving questions, want to learn fun facts | tips | tricks or
absolutely anything around computer science, feel free to join CTs learner-teacher community:
students.computertutor.in I want to help you Copyright © 2022 Computer Tutor | Developed &
Marketed by Brisk Marketer I want to help you

You might also like