Database Programming With
Database Programming With
SQL
About Me
linkedin.com/in/dr-rituahluwalia
… …
Relational Databases
To understand how important databases have become
in today's world, consider the following statistics:
−Currently 20% of the world's data resides in RDBMSs
−In the next two years, databases are expected to grow
larger than 100 terabytes
−A database this big would be able to store 100,000
copies of the Encyclopedia Britannica or 200,000
hours of music or about 10 billion web pages
Relating Multiple Tables
• Each row of data in a table is uniquely identified
by a primary key (PK).
• You can logically relate data from multiple tables
using foreign keys (FK).
Table Name: DEPARTMENTS
Table Name: EMPLOYEES
…
Primary key Foreign key Primary key
Relational Database Terminology
3 4
2
6
1
Relational Database Properties
A relational database:
• Can be accessed and modified by executing
structured query language (SQL) statements
• Contains a collection of tables with no
physical pointers
• Uses a set of operators
Relational Database Management System
Oracle
server
Oracle
server
Examples of Databases
Can you think of more uses of Databases ?
System Development Life Cycle
Strategy
and
analysis
Design
Build
and
document
Transition
Production
Data Models
Model of
system
in client’s Entity model of
mind client’s model
Table model
of entity model Oracle
server
Tables on disk
Data Storage on Different Media
Database
Electronic
Filing cabinet
spreadsheet
SELECT Data retrieval
INSERT
UPDATE Data manipulation language (DML)
DELETE
MERGE
CREATE
ALTER
DROP
RENAME Data definition language (DDL)
TRUNCATE
COMMIT
ROLLBACK
SAVEPOINT Transaction control
GRANT
REVOKE
Data control language (DCL)
DEPARTMENTS JOB_GRADES
Structured Query Language
• Pronounced as “sequel” or “S-Q-L” .
• SQL is an acronym for Structured Query
Language
• A standard and widely accepted language
used for database maintenance by
performing operations such as retrieval and
manipulation of data stored in a database.
• SQL has been in existence since the 1970s.
Capabilities of SQL SELECT Statements
Projection Selection
Table 1 Table 1
Join
Table 1 Table 2
Why SQL ?
• After completing this session, you should be
able to understand the following questions:
– what made SQL stay in trend for so long in this
technological age which is always dynamic and
evolving in nature?
– will the demand and significance of SQL
continue in 2022 as well?
1. A Programming Language Not Only
Limited To Programming Tasks
• SQL breaks the stereotype of just being
used for Programming purposes.
• SQL in forecasting sales.
• SQL for financial analysis
2. Almost Every Data Technology Supports
SQL or a Flavour of It
• Most of the data-oriented technologies use
SQL interface.
• Be it any aspect of technology, all possess data
and therefore, they would have to support SQL
in some form or the other.
• Having said that, learning SQL is a win-win
situation as it is highly probable to come in
handy while working on any data or data-driven
technology.
3. Helpful in Handling Huge Amounts of
Structured Data
Can you guess which is the most valuable thing in the technological era? Hint: It’s not
money, or gold or diamond.
• The useful information extracted while data mining can be used to make an
organization more proactive and knowledge-based will then have logical
aspects and studies along with it to go through the recent market
trends and future trend predictions.
6. Helpful in Pursuing Data Science as a Career
• Data Science is the most demanding job of the
21st century.
• Big data platforms use SQL as their primary
API to manage the relational databases. Joins,
null value, indexes, primary and foreign keys,
and sub query are some of the concepts which
are beneficial to work with SQL in data
science.
SQL for Data Science
• A Data Scientist needs SQL to handle
structured data. As the structured data is
stored in relational databases. Therefore, to
query these databases, a data scientist must
have a good knowledge of SQL commands
7. In-Demand Skill
• Be it a developer, a product manager, or a
business analyst, SQL helps in upskilling the
career.
• According to the job portals, SQL is the most
in-demand skill as it is robust and easy to learn
programming language. Many top technical, as
well as top financial giants, ask for SQL as it
goes hand in hand with technologies.
learning SQL is a big yes for 2022
• With the unpredictable times that the world has
faced during COVID-19, one predictable thing is
that SQL is a powerful tool for various sectors of
industry.
• SQL has been there for more than three to four
decades. It is still in demand and will not go away
soon as It makes management of structured data
easier, eases the client-server operations, and is not
only restricted to development roles but is also an
efficient choice for the analyst and financial roles.
Conclusion
• Want to prepare for Placements? In this
course, you will learn about Structured Query
Language from the very scratch.
Thank You