Smart Learning

Digital Learning

Wednesday, November 4, 2026

SQL Commands (DDL, DML, DQL, DCL, TCL):


SQL Commands 

SQL Commands – Definition, Syntax and Examples

SQL (Structured Query Language) is a standard programming language used to create, manage, manipulate, and retrieve data from relational databases.

SQL commands are divided into five main categories:

1.      DDL – Data Definition Language

2.      DML – Data Manipulation Language

3.      DQL – Data Query Language

4.      DCL – Data Control Language

5.      TCL – Transaction Control Language

1. DDL – Data Definition Language

DDL commands are used to create, modify, and delete database structures such as tables and databases.

1. CREATE

Definition: CREATE command is used to create a new database or table.

Syntax:

CREATE TABLE table_name (

    column1 datatype,

    column2 datatype

);

Example:

CREATE TABLE Student (

    RollNo INT,

    Name VARCHAR(50),

    Age INT,

    City VARCHAR(30)

);

2. ALTER

Definition: ALTER command is used to modify the structure of an existing table.

Syntax:

ALTER TABLE table_name

ADD column_name datatype;

Example:

ALTER TABLE Student

ADD Marks INT;

3. DROP

Definition: DROP command is used to permanently delete a table or database.

Syntax:

DROP TABLE table_name;

Example:

DROP TABLE Student;

4. TRUNCATE

Definition: TRUNCATE command is used to delete all records from a table without deleting its structure.

Syntax:

TRUNCATE TABLE table_name;

Example:

TRUNCATE TABLE Student;

5. RENAME

Definition: RENAME command is used to change the name of an existing table.

Syntax:

RENAME TABLE old_name TO new_name;

Example:

RENAME TABLE Student TO Students;

Note: RENAME syntax varies among database systems.

2. DML – Data Manipulation Language

DML commands are used to insert, update, and delete records in a table.

6. INSERT

Definition: INSERT command is used to add new records to a table.

Syntax:

INSERT INTO table_name

VALUES (value1, value2, value3);

Example:

INSERT INTO Student

VALUES (1, 'Rahul', 15, 'Delhi');

7. UPDATE

Definition: UPDATE command is used to modify existing records in a table.

Syntax:

UPDATE table_name

SET column_name = value

WHERE condition;

Example:

UPDATE Student

SET Age = 16

WHERE RollNo = 1;

8. DELETE

Definition: DELETE command is used to remove records from a table.

Syntax:

DELETE FROM table_name

WHERE condition;

Example:

DELETE FROM Student

WHERE RollNo = 1;

3. DQL – Data Query Language

DQL commands are used to retrieve data from database tables.

9. SELECT

Definition: SELECT command is used to display or retrieve records from a table.

Syntax:

SELECT column_name

FROM table_name;

Example:

SELECT * FROM Student;

This displays all records and columns from the Student table.


Tuesday, November 3, 2026

Digital Documentation-CLASS-9-PART-B-Unit-III-ch-2(2026-27):



PART-B
UNIT-III Digital Documentation
Chapter 2- LibreOffice Writer

A. Multiple Choice Questions
1. LibreOffice Writer is
(a) Slideshow maker (b) Spreadsheet (c) Word processor (d) None of these
Answer: (c) Word processor
2. Which of the following is an extension of a Document created in Writer?
(a) .odf (b) .odd (c) .xls (d) .obj
Answer: (a) .odf
3. To change the font in a part of the text within writer you will use:
(a) The edit menu, find and replace command
(b) The menu format command change letter
(c) The format menu, character command
(d) None of these
Answer: (c) The format menu, character command
4. When we insert a table through the insert table option, a table is inserted:
(a) With a column
(b) With 2 rows and two columns
(c) We can select the number of rows and columns
(d) None of these
Answer: (c) We can select the number of rows and columns
5. The bar that appears immediately below the application’s title bar is called:
(a) Command Bar (b) Menu bar (c) Tools menu bar (d) None of these
Answer: (b) Menu bar
6. If after performing an action I want to undo it:
(a) Writer does not reverse the changes
(b) Tools menu, spell check command
(c) Edit undo command menu
(d) None of these
Answer: (c) Edit undo command menu
7. The .DOC extension tells me that the file was created in:
(a) Excel (b) Writer (c) Word (d) None of these
Answer: (c) Word
8. One of the elements that makes up the word processor is:
(a) Cell (b) Ruler (c) Slideshow (d) None of these
Answer: (b) Ruler
9. What combination of keys will you use to paste a previously copied text into Writer?
(a) Ctrl.+ V (b) Ctrl.+ C (c) Ctrl.+ E (d) Ctrl.+ X
Answer: (a) Ctrl.+ V

B. Fill in the blanks
1. Writer saves file in __________ format.
Answer: .odt
2. Predefined styles in Writer are saved as __________.
Answer: templates
3. Writer’s mail merge provides features to create and print multiple copies of __________ item.
Answer: same
4. Table are consisting of rows and __________.
Answer: columns
5. __________ Reference are used for easy traversing in the document.
Answer: Cross
6. English words can be corrected using the __________ option.
Answer: Spelling
7. You can paste contents using the __________ Option.
Answer: Paste

What is HTML-5? -CLASS-8-CH-6(2026-27):

CBSE SOLUTIONS-2026-27
CLASS-8
CHAPTER-6 HTML-Creating List and Table

A. Multiple Choice Questions:
1. This one is an empty tag:
(A) <OL> (B) <UL> (C) <LI> (D) <TABLE>
Answer: None of these
2. Unordered list is also known as:
(A) Bulleted list (B) Multilevel list (C) Numbered list (D) None of these
Answer: (A) Bulleted list
3. The default numbering style of an ordered list is:
(A) I (B) A (C) i (D) 1
Answer: (D) 1
4. A description list consists of:
(A) Two parts (B) Three parts (C) Four parts (D) None of these
Answer: (A) Two parts
5. This tag marks the definition terms in a description list:
(A) <DD> (B) <DT> (C) <DL> (D) None of these
Answer: (B) <DT>
6. You can specify the space between the border and content in a table by using:
(A) Padding property (B) Height property (C) Width property (D) Table-layout property
Answer: (A) Padding property

B.TRUE or FALSE
1. Each item in the list is marked using the <LI> tag.
Answer: TRUE
2. The list-style-position property is used to specify an image as the list item marker.
Answer: FALSE
3. A description list consists of two tags.
Answer: FALSE
4. Tables arrange data in rows and columns format.
Answer: TRUE
5. To specify a column heading, we use the <TH> tag.
Answer: TRUE
6. By default the horizontal alignment is set to middle for <TH> tag.
Answer: FALSE