Step-by-Step Textbook Solutions for Class 12 Computer Application Chapter 09 Structured Query Language
Access comprehensive textbook solutions for Chapter 09 Structured Query Language using the official curriculum guides for Class 12 Computer Application. Designed to align with the 2026-27 Kerala Board standards, these detailed answers help students reinforce core academic concepts.
Download Chapter 09 Structured Query Language Textbook Solutions PDF
Navigate directly to the solved Computer Application textbook exercises using the digital viewer below. Each solution includes detailed step-by-step explanations, allowing students to instantly cross-check their work and identify areas requiring further revision.
One Mark Questions and Answers
Question 1: ______ keyword is used in the SELECT query to eliminate duplicate values in a column. (March 2016)
a) UNIQUE
b) DISTINCT
c) NOT NULL
d) PRIMARY
Answer:
b) DISTINCT
Exam Tips:
a) Remember that DISTINCT is written right after SELECT, for example SELECT DISTINCT branch FROM accounts;.
Question 2: ______ clause of the SELECT query is used to apply conditions to form groups of records. (May 2016)
a) ORDER BY
b) GROUP BY
c) HAVING
d) WHERE
Answer:
c) HAVING
Exam Tips:
a) WHERE filters individual rows before grouping, but HAVING filters the groups formed by GROUP BY.
b) Do not confuse the two: GROUP BY makes the groups, HAVING puts a condition on them.
Question 3: ______ command in SQL is used to display the structure of a table. (May 2017)
a) LIST
b) STRUCT
c) DESCRIBE
d) SHOW
Answer:
c) DESCRIBE
Exam Tips:
a) The usual form is DESCRIBE table_name; (or DESC table_name;), which lists the column names, data types and constraints.
Two Mark Questions and Answers
Question 4: How will you add a new column to an existing table using an SQL statement? (March 2016)
Answer:
The ALTER TABLE command with the ADD keyword is used to add a new column to an existing table.
Syntax: ALTER TABLE <table name> ADD <column name> <datatype> [<size>] [<constraint>] [FIRST / AFTER <column name>];
Example: ALTER TABLE ACCOUNTS ADD Type varchar(10) AFTER Name;
Exam Tips:
a) Write the general syntax first and then a working example; both carry marks.
b) ALTER TABLE changes the structure of the table, so it is a DDL command.
Question 5: What is a view? How can we create a view using an SQL statement? (May 2016)
Answer:
A view is a virtual table. It does not really exist, but is derived from one or more tables. It is used to see only a small part of the entire database.
The CREATE VIEW command is used to create a view.
Syntax: CREATE VIEW <view name> AS SELECT * FROM <table name> [WHERE <condition>];
Example: CREATE VIEW studentView AS SELECT * FROM student;
Exam Tips:
a) Say clearly that a view is a virtual table, and that no separate copy of the data is stored.
b) Give the syntax and one example to earn full marks for the second part.
Question 6: Explain the primary key constraint with an example. (May 2017)
Answer:
A primary key is one of the candidate keys. It is a set of one or more attributes that can uniquely identify the tuples (rows) in a relation. A primary key cannot be NULL and cannot contain duplicate values.
Examples of primary keys are Rollno, AdmNo and EmpCode.
Example in SQL: CREATE TABLE student (Rno int PRIMARY KEY, name varchar(20));
Exam Tips:
a) Mention both properties: unique values and no NULL.
b) Give an example attribute such as Rollno or AdmNo.
Three Mark Questions and Answers
Question 7: Answer the following questions. (March 2016)
| Acc. No. | Name | Branch | Amount |
|---|---|---|---|
| 1001 | Anil | Trivandrum | 30000 |
| 1002 | Sanjay | Ernakulam | 130000 |
| 1003 | Meera | Kottayam | 275000 |
| 1004 | Sneha | Kottayam | 50000 |
| 1005 | Rajan | Thrissur | 75000 |
a) Write SQL statements to do the following:
i) Display all the details of accounts with an amount greater than 50000 in the Ernakulam branch.
ii) Display Acc. No., Branch and Amount in the descending order of amount.
iii) Display the number of accounts in each branch.
b) Write SQL statements to do the following:
i) Add a new record to the table.
ii) Update the amount of Sanjay to 100000.
iii) Delete the details of Anil.
Answer:
a)
i) SELECT * FROM ACCOUNTS WHERE Amount > 50000 AND Branch = "Ernakulam";
ii) SELECT Acc_No, Branch, Amount FROM ACCOUNTS ORDER BY Amount DESC;
iii) SELECT Branch, COUNT(*) FROM ACCOUNTS GROUP BY Branch;
b)
i) INSERT INTO ACCOUNTS VALUES (1006, 'Alvis', 'Thrissur', 50000);
ii) UPDATE ACCOUNTS SET Amount = 100000 WHERE Name = 'Sanjay';
iii) DELETE FROM ACCOUNTS WHERE Name = 'Anil';
Exam Tips:
a) Use AND when both conditions must be true, and put text values inside quotes.
b) Use ORDER BY ... DESC for descending order and GROUP BY with COUNT(*) for counting in each group.
c) In UPDATE and DELETE, never forget the WHERE clause, otherwise all rows are changed or deleted.
Question 8: a) Explain the SQL statements used to insert and delete data from a table. (May 2016)
b) Explain any two DDL commands.
Answer:
a) The INSERT command is used to insert new records into a table. The keyword used with it is INTO.
Syntax: INSERT INTO <table name> [(column1, column2, ..., columnN)] VALUES (value1, value2, ..., valueN);
Example: INSERT INTO student (Regno, name) VALUES (101, 'Jose');
The DELETE command is used to delete one or all records from a table.
Syntax: DELETE FROM <table name> [WHERE <condition>];
Example: DELETE FROM student; (this deletes all the records of the table).
b) DDL commands:
1) CREATE TABLE: used to create a table.
Syntax: CREATE TABLE <table name> (<column name> <data type> [<constraint>], <column name> <data type>, ...);
Example: CREATE TABLE student (Rno int PRIMARY KEY, name varchar(20));
2) ALTER TABLE: used to change the structure of a table or to add a new column to an existing table. The keywords MODIFY and ADD are used.
Syntax: ALTER TABLE <table name> MODIFY <column name> <data type> [<size>] [<constraint>];
Example: ALTER TABLE student MODIFY name varchar(30);
Syntax: ALTER TABLE <table name> ADD <new column name> <data type> [<size>] [<constraint>] [FIRST | AFTER <column name>];
Example: ALTER TABLE student ADD grade varchar(2);
3) DROP TABLE: used to delete the structure of the table along with its data.
Syntax: DROP TABLE <table name>;
Example: DROP TABLE student;
Exam Tips:
a) For each command give its purpose, syntax and one example.
b) INSERT and DELETE are DML commands, while CREATE, ALTER and DROP are DDL commands; do not mix them up.
c) Since only two DDL commands are asked in part (b), write two fully rather than three in a hurry.
Question 9: Write SQL for the following. (May 2017)
a) Create a table student with the data [name char(20), rollno number(3), marks number(3)].
b) List the name and rollno of all students.
c) List the name and rollno of students having marks > 600.
Answer:
a) CREATE TABLE student (name varchar(20), rollno int(3), marks int(3));
b) SELECT name, rollno FROM student;
c) SELECT name, rollno FROM student WHERE marks > 600;
Exam Tips:
a) Separate column names with commas in the SELECT list, not full stops.
b) The condition on marks goes in the WHERE clause after the table name.
Question 10: An employee table contains name, empno, basicpay and desig. Write SQL for the following. (May 2017)
a) Display name, empno and basicpay of all managers (desig = "manager").
b) Display empno and salary of all employees (salary = basicpay + da, da = basicpay * 1.15).
c) Display name and empno of all the employees whose basicpay < 10000.
Answer:
a) SELECT name, empno, basicpay FROM employee WHERE desig = "manager";
b) SELECT empno, basicpay + basicpay * 1.15 FROM employee;
c) SELECT name, empno FROM employee WHERE basicpay < 10000;
Exam Tips:
a) Use the exact column names given in the question (desig, not design).
b) For a calculated column, write the expression in the SELECT list, and optionally give it a name with AS salary.
Free study material for Computer Application
Step-by-Step Textbook Answers: Class 12 Computer Application Chapter 09 Structured Query Language
Chapter Exercise Answers for Class 12 Computer Application
Explore reliable textbook solutions for Chapter 09 Structured Query Language tailored for Class 12 learners. Utilizing these complete exercise answers ensures your preparation aligns exactly with official Kerala Board standards for Computer Application.
Detailed Answer Guides for Chapter 09 Structured Query Language
Clear, methodical explanations accompany every challenging problem within the Class 12 Computer Application text. Engaging with these detailed answers lays a solid foundation for advanced learning and improves foundational clarity for upcoming assessments.
Complete Preparation Kit for Class 12 Exams
These resources act as an effective roadmap for daily homework tasks and independent study. Supplement your review of Chapter 09 Structured Query Language with official sample papers and interactive practice tests available on our platform free of charge.
FAQs
The complete and updated Kerala Plus Two Computer Application Previous Questions Chapter 9 Structured Query Language is available for free on StudiesToday.com. These solutions for Class 12 Computer Application are as per latest Kerala Board curriculum.
Yes, our experts have revised the Kerala Plus Two Computer Application Previous Questions Chapter 9 Structured Query Language as per 2026 exam pattern. All textbook exercises have been solved and have added explanation about how the Computer Application concepts are applied in case-study and assertion-reasoning questions.
Toppers recommend using Kerala Board language because Kerala Board marking schemes are strictly based on textbook definitions. Our Kerala Plus Two Computer Application Previous Questions Chapter 9 Structured Query Language will help students to get full marks in the theory paper.
Yes, we provide bilingual support for Class 12 Computer Application. You can access Kerala Plus Two Computer Application Previous Questions Chapter 9 Structured Query Language in both English and Hindi medium.
Yes, you can download the entire Kerala Plus Two Computer Application Previous Questions Chapter 9 Structured Query Language in printable PDF format for offline study on any device.