Database Management System-and-SQL-Basics.pptx

MamoniBaruah 0 views 8 slides Oct 08, 2025
Slide 1
Slide 1 of 8
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8

About This Presentation

The ppt contains all the details of DBMS and SQL and how they are related to each other


Slide Content

DBMS and SQL Basics Manage and query data effectively.

What is DBMS? Data Storage Software for storing, organizing, and retrieving data efficiently. User Interface Acts as an intermediary between users/applications and the database. Examples MySQL, Oracle, Microsoft SQL Server, MongoDB.

DBMS Types Relational DBMS Structured tables (rows, columns). Focuses on data integrity. Examples: MySQL, PostgreSQL, SQL Server. Object-Oriented DBMS Stores data as objects. Ideal for complex data types.

What is SQL (Structured Query Language)? Standard Language SQL is the standard language for managing data in Relational Database Systems (RDBMS). CRUD Operations Used for fundamental data operations: C reate, R ead, U pdate, D elete. Command Types Includes Data Query (SELECT), Data Manipulation (INSERT, UPDATE, DELETE), and Data Definition (CREATE, ALTER).

SQL & DBMS: The Synergy SQL and DBMS work hand-in-hand, handling different data interaction layers. Data Storage DBMS SQL 1 DBMS: Data Management Manages file systems, indexing, security, concurrency, and physical data storage efficiently. 2 SQL: Data Access Provides a logical layer for users to define and retrieve data, abstracting physical storage details. 3 Data Flow SQL commands sent to DBMS for interpretation, optimization, execution, and results.

Core SQL Commands Mastering these commands enables essential database tasks. SELECT Retrieves data (rows, columns) from tables. INSERT Adds new rows/records to a table. UPDATE Modifies existing data in table rows. DELETE Removes rows/records from a table. CREATE TABLE Defines and builds new table structures.

SQL Query: Retrieve Data The SELECT statement is fundamental for retrieving information from your database. It allows you to specify exactly what data you want to see. SELECT column1, column2FROM table_nameWHERE condition; SELECT Clause Specifies the columns you want to retrieve. Use * to select all columns. FROM Clause Indicates the table or tables from which to fetch the data. WHERE Clause Filters the records based on a specified condition, returning only the rows that meet the criteria.

SQL Query: Retrieve Data Example: Retrieve data from an 'Employees' table. Goal: Find names and salaries for 'Marketing' department. SELECT Name, SalaryFROM EmployeesWHERE Department = 'Marketing'; SELECT : Columns to display. FROM : Table containing data. WHERE : Filters results by condition.
Tags