0% found this document useful (0 votes)
6 views20 pages

Internship Report

The internship report by Surya Dev Gupta details his learning experience with MySQL, covering its significance, key concepts, core SQL statements, and advanced features. It highlights MySQL's applications in various industries such as web development, e-commerce, and data analytics. The report concludes with personal insights gained from the course, emphasizing MySQL's role as a vital tool for data management.

Uploaded by

isuryaguptaa
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)
6 views20 pages

Internship Report

The internship report by Surya Dev Gupta details his learning experience with MySQL, covering its significance, key concepts, core SQL statements, and advanced features. It highlights MySQL's applications in various industries such as web development, e-commerce, and data analytics. The report concludes with personal insights gained from the course, emphasizing MySQL's role as a vital tool for data management.

Uploaded by

isuryaguptaa
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/ 20

Internship Report File

Submitted to

RAJIV GANDHI PROUDYOGIKI


VISHWAVIDYALAYA BHOPAL(M.P.)

Submitted by
NAME : SURYA DEV GUPTA
BRANCH : CSE
SECTION : C
COLLEGE : LNCTE
ENROLL NO. : 0176CS231204

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING, LAKSHMI NARAIN


COLLEGE OF TECHNOLOGY EXCELLENCE,BHOPAL (M.P.)
Mastering MySQL:Database
Creation,Management & SQL Queries
A Report on Evolution Of Internship
Submitted in Partial Fulfillment of the Requirement for the Award
of the Degree of BACHELOR OF TECHNOLOGY in
Computer Science.

Submitted to

RAJIV GANDHI PROUDYOGIKI


VISHWAVIDYALAYA BHOPAL(M.P.)

Submitted by
NAME : SURYA DEV GUPTA
BRANCH : CSE
SECTION : C
COLLEGE : LNCTE
ENROLL NO. : 0176CS231204

UNDER THE SUPERVISION OF


Prof. Satish Choudhary Sir

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING, LAKSHMI NARAIN


COLLEGE OF TECHNOLOGY EXCELLENCE,BHOPAL (M.P.)

LAKSHMI NARAIN COLLEGE OF TECHNOLOGY EXCELLENCE, BHOPAL (M.P.)

December 2024
Report on MySQL
PAGE NO.

Introduction 1
Overview of SQL and MySQL.
Difference between SQL and MySQL.

Key Concepts of MySQL 4


Relational Databases.
Tables, Rows, and Columns.
Data Types

SQL Statements in MySQL 6


Categories (DDL, DML, DQL, DCL, TCL).
Brief explanation of each category.

Core MySQL Statements 8


SELECT Statement
INSERT Statement
UPDATE Statement
DELETE Statement

Advanced Features of MySQL 11


Joins (INNER, LEFT, RIGHT, FULL).
Aggregate Functions (SUM, AVG, COUNT).
Indexing.
Subqueries.
Practical Applications of MySQL 13
Web Development.
Data Analysis.
E-Commerce Platforms.

Course Certificate 15

Conclusion 16
Importance of MySQL in modern
applications.
Personal learning outcomes.
1
Introduction
Databases play a crucial role in today’s data-driven
world, serving as the backbone for storing,
organizing, and managing data. Among the tools
designed to handle such tasks, MySQL stands out as
one of the most popular and widely used database
management systems. Before diving into MySQL, it is
essential to understand its foundation—SQL.

Understanding SQL
SQL (Structured Query Language) is a standardized
programming language used to interact with
relational databases. It provides the tools needed to
manage data effectively, including creating,
modifying, retrieving, and deleting data. SQL is used
by developers, analysts, and database administrators
to handle operations on structured data.

Key characteristics of SQL:

It allows users to write queries to fetch specific


data.
It can perform complex operations, such as
aggregations and joins, to analyze data.
Name: Surya Dev Gupta
Enrollment No. 0176CS231204
2
It is universal and works with various relational
database systems, including MySQL, PostgreSQL,
and Oracle.

What is MySQL?

MySQL is an open-source relational database


management system (RDBMS) that uses SQL as its
language for database operations. Developed by
Oracle Corporation, MySQL is known for its
reliability, speed, and ease of use. It is highly favored
in the industry due to its ability to handle large-scale
data efficiently and its support for integration with
various programming languages.

Key features of MySQL:


Open Source: Freely available, with options for
commercial licenses.
Cross-Platform Compatibility: Runs on multiple
operating systems, including Windows, Linux, and
macOS.
Scalability: Handles small to large datasets with
ease.
High Performance: Optimized for fast query
execution and efficient data retrieval. Name: Surya Dev Gupta
Enrollment No. 0176CS231204
3
Difference Between SQL and MySQL

While SQL and MySQL are closely related, they serve


different purposes. SQL is a programming language
used to manage and interact with relational
databases, whereas MySQL is a software
application that uses SQL to perform database
operations.

SQL: A language to query and manipulate data


in databases.
MySQL: A relational database management
system (RDBMS) that provides the framework to
store and retrieve data using SQL.

Significance of MySQL
MySQL is widely used in various industries for
building robust applications. From small-scale
personal projects to large enterprise systems,
MySQL’s scalability, performance, and ease of
integration make it an ideal choice. It is especially
prevalent in web development, e-commerce, and
data analytics.

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
4
Key Concepts of MySQL
1. Relational Databases
MySQL is based on relational databases, where data
is organized into tables with rows representing
records and columns as attributes.
Example: A students table might have columns like
ID, Name, Age, and Class.

2. Tables, Rows, and Columns


Tables: Structures for storing data.
Rows: Individual records in a table.
Columns: Attributes of data, each with a
defined data type.
3.Data Types
Defines the type of data stored in each column, such
as:
Numeric (e.g., INT, FLOAT).
String (e.g., VARCHAR, TEXT).
Date/Time (e.g., DATE, DATETIME).
4.Keys
Primary Key: Unique identifier for table records.
Foreign Key: Links tables and maintains
relationships. Name: Surya Dev Gupta
Enrollment No. 0176CS231204
5
5.Normalization
Organizing data to reduce redundancy and improve
integrity by splitting tables and defining
relationships.

6.Joins
Combine data from multiple tables, with common
types being INNER JOIN and LEFT JOIN.

7.Indexes
Improve query performance by enabling faster data
retrieval.

8.Transactions
Ensure reliable execution of multiple database
operations, maintaining consistency and durability.

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
6
SQL Statements in MySQL
MySQL is based on relational databases, where data
is organized into tables with rows representing
records and columns as attributes.

Data Query Language (DQL)


Focuses on retrieving data using the SELECT
statement, which allows querying and filtering data
from tables.

Data Definition Language (DDL)


Used to define and manage database structures:
CREATE: To create databases, tables, or indexes.
ALTER: To modify database structures.
DROP: To delete tables or databases.

Data Manipulation Language (DML)


Handles data operations:
INSERT: Adds new records to a table.
UPDATE: Modifies existing records.
DELETE: Removes specific records from a table.

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
7
Data Control Language (DCL)
Manages database access and permissions:
GRANT: Provides permissions to users.
REVOKE: Removes permissions from users.

Transaction Control Language (TCL)


Ensures consistency during database transactions:
COMMIT: Saves changes permanently.
ROLLBACK: Reverts changes in case of errors.
SAVEPOINT: Creates intermediate checkpoints
within a transaction.

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
8
Core MySQL Statements
MySQL provides a set of core SQL statements to
manage and manipulate data efficiently. These
statements are integral to performing everyday
database operations and are categorized into four
main types: SELECT, INSERT, UPDATE, and DELETE.
1. SELECT Statement
The SELECT statement is used to retrieve data from
one or more tables. It allows filtering, sorting, and
aggregating data based on specific requirements.
Syntax:

Example:
Fetch all students with grades above 80:

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
9
2. INSERT Statement
The INSERT statement is used to add new records to
a table.
Syntax:

Example:
Add a new student to the students table:

3. UPDATE Statement
The UPDATE statement modifies existing records in a
table based on a condition.
Syntax:

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
Example:
10
Update the grade of a specific student:

4. DELETE Statement
The DELETE statement removes records from a table
based on a condition.
Syntax:

Example:
Remove a student with a grade below 40:

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
11
5.Advanced Features of MySQL
Remove a student with a grade below 40:
1.Joins
Combine data from multiple tables using:
INNER JOIN: Matches records in both tables.
LEFT JOIN: Includes unmatched rows from the left
table.
Example:

2.Aggregate Functions

Perform calculations on data, such as:


SUM, AVG, COUNT for totals, averages, and row
counts.

Example:

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
12
3.Indexing
Speeds up data retrieval by indexing columns.
Example:

4.Subqueries
Use nested queries for advanced filtering.
Example:

5.Stored Procedures
Reusable SQL code for repetitive tasks.
6.Transactions
Group multiple operations for consistent changes.
7.Views
Create virtual tables for simplified queries and
restricted access.
Name: Surya Dev Gupta
Enrollment No. 0176CS231204
Practical Applications of MySQL
13
MySQL is widely used across industries due to its
scalability, reliability, and ease of use. Some of its
practical applications include:
1. Web Development
MySQL is a cornerstone of dynamic web applications,
often used with PHP or other server-side languages to
power websites, manage user data, and handle
transactions.
Example: Social media platforms store and retrieve
user profiles, posts, and interactions using MySQL.
2. E-commerce Platforms
Online stores utilize MySQL to manage product
catalogs, customer data, inventory, and transactions.
Example: Shopping cart systems rely on MySQL to
track user selections and process orders.
3. Data Warehousing and Analytics
Organizations use MySQL to store and analyze large
datasets, supporting business intelligence and
reporting tools.
Example: Sales and marketing teams analyze trends
and customer behaviors using MySQL databases.
Name: Surya Dev Gupta
Enrollment No. 0176CS231204
14
4. Content Management Systems (CMS)
CMS platforms like WordPress and Drupal use MySQL
to store and retrieve content such as blog posts, user
comments, and media files.

5. Banking and Finance


Financial institutions rely on MySQL for secure and
reliable management of customer accounts,
transactions, and loan data.
Example: MySQL ensures data consistency for
banking operations like fund transfers.
6. Education and Research
Universities and research institutions use MySQL for
managing student records, library systems, and
research data.
7. Mobile Applications
Mobile apps use MySQL as a backend to store user
data, preferences, and app-specific content.

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
15
Course Certificate

Name: Surya Dev Gupta


Enrollment No. 0176CS231204
16
Conclusion
MySQL is a powerful and reliable database
management system used by many industries to
handle data efficiently. Its open-source nature,
speed, and flexibility make it a popular choice for
applications like websites, mobile apps, and data
analytics.
Through this course on MySQL by Maria Educare on
Udemy, I gained valuable insights into one of the
most widely used database management systems.
MySQL is a reliable, flexible, and efficient tool for
managing and analyzing data, making it an essential
skill for developers and businesses alike.
This report covered key aspects of MySQL, including
its basic concepts, core SQL statements, advanced
features, and practical applications. With tools like
transactions, joins, and indexing, MySQL proves to be
capable of handling everything from small-scale data
tasks to large enterprise solutions.

While I may not have mastered every concept in


detail, I have developed a solid understanding of key
topics.
Name: Surya Dev Gupta
Enrollment No. 0176CS231204

You might also like