0% found this document useful (0 votes)
362 views2 pages

Assignment 1 Study of DDL and DML Operations On Tables.

This document outlines a database management systems (DBMS) lab assignment. It instructs students to study and perform data definition language (DDL) and data manipulation language (DML) operations on database tables using SQL. It lists 20 operations for students to execute, including creating and dropping databases and tables, inserting, selecting, updating, deleting from tables, and altering table structures. It asks students to paste their output code and include screenshots as evidence of completing the assignment.

Uploaded by

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

Assignment 1 Study of DDL and DML Operations On Tables.

This document outlines a database management systems (DBMS) lab assignment. It instructs students to study and perform data definition language (DDL) and data manipulation language (DML) operations on database tables using SQL. It lists 20 operations for students to execute, including creating and dropping databases and tables, inserting, selecting, updating, deleting from tables, and altering table structures. It asks students to paste their output code and include screenshots as evidence of completing the assignment.

Uploaded by

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

LAB ASSIGNMENT 1 (SUBJECT: DBMS)

(Please use this format for doing assignments)


SUBMISSION DATE:
NAME OF STUDENT:
BRANCH:
ID:

AIM: Study of DDL and DML operations on database Tables using SQL.
TOOL: MariaDB (If any other tool, please mention the name)
PROGRAMMING LANGUAGE: Structured Query language (SQL)

THEORY:
1. SQL: (Add a short description of SQL)
2. DDL and DML Commands (Add a short description)

OPERATIONS EXECUTED: (MENTION THE LIST AS IT)


1. Create Database: create database database_name;
2. Use Database: use database_name;
3. Show Databases: show databases;
4. Drop database: create database database_name;
5. Create Table
6. Describe Table
7. Show create table table_name
8. Insert into Table (2 formats)
9. Insert Null values in table
10. Select queries (with and without * )
11. Select Null values from table
12. Alter table (Add Column): alter table table_name add column_name datatype;
13. Alter table (Drop Column): alter table table_name drop column_name
14. Alter table (Change Column’s data type): alter table table_name modify column_name
new_datatype;
15. Alter table (Change Column’s name): alter table table_name change
old_column_name new_column_name datatype_to_be_assigned;
16. Update: update table_name set column_name = value where column_name = value
17. Delete: delete from table_name where column_name = value

1
18. Truncate: truncate table table_name / truncate table_name
19. Drop: drop table table_name
(Use of upward arrow key)
20. Rename table name: alter table old table_name rename new_table_name OR rename
table old_table_name to new_table_name
OUTPUT: (Copy Paste your output code here from your Mariadb Command Prompt, remove
error lines form code)

SNAPSHOTS OF YOUR CODE:


(Please Note: A viva will be taken in October based on your individual assignments. Please
do not copy paste the contents from others writeups.)
*******End of the Assignment*******

You might also like