SlideShare a Scribd company logo
Introduction to SQL
Ram Kedem
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Objectives
• Defining SQL
• Why do we need to use it ?
• Pronouncing SQL: S-Q-L or Sequel?
• Standard SQL and language adjustments
• Types of SQL Statements
• Basic column data types in MSSQL
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Defining SQL
• Structured Query Language
• Allows users to communicate with Relational Databases and
retrieve data from their tables.
SQL
RDBMS
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Pronouncing : S-Q-L or Sequel?
• SQL was developed at IBM and it was initially called
“Structured English Query Language” (SEQUEL) and
pronounced “sequel”
• Later it was shortened to SQL - “Structured Query Language”
• Both pronunciations are correct
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Standard SQL and
Language Extensions
• The RDBMS model was implemented by many vendors –
• Microsoft (SQL Server), Oracle, IBM (DB2), MySQL, Postgres, etc.
• SQL is the language each of those vendors use in order to
access and manipulate their databases
• In most cases all vendors use the same SQL command in order
to achieve the same goal. In some cases vendors will use
specific SQL extention that will only work under their
platform.
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Standard SQL and
Language Extensions
• Same statement to retrieve data of one column
• SELECT lastName FROM employees
• Different statement to concatencate strings
• SELECT 'hello' + 'world' (SQL Server)
• SELECT 'hello' || 'world' (Oracle)
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Types of SQL Statements
• Data Manipulation Language (DML) statements are used for
managing data within schema objects. For example :
• SELECT - retrieve data from the a database
• INSERT - insert data into a table
• UPDATE - updates existing data within a table
• DELETE – delete existing rows
• Data Definition Language (DDL) statements are used to define the
database structure or schema. For example :
• CREATE - to create objects in the database
• DROP - delete objects from the database
• Data Control Language (DCL) statements. For example :
• GRANT - gives user's access privileges to database
• REVOKE - withdraw access privileges given with the GRANT
command
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Basic column data types
• Numeric columns
• INT - Integer (whole number) data value
• Money - Numeric data types with fixed precision and scale
Product id
(int)
Product price
(numeric)
Product name
(varchar(25))
Experation
(date)
1 53.3 Product1 2014/03/22
2 23.1 Product2 2014/02/21
3 32.3 Product3 2014/03/02
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Basic column data types
• Numeric columns
• INT - Integer (whole number) data value
• Money - Monetary or currency values String columns
• VARCHAR(N) – String data
• Date columns
• DATE – date data
Product id
(int)
Product price
(money)
Product name
(varchar(25))
Experation
(date)
1 53.3 Product1 2014/03/22
2 23.1 Product2 2014/02/21
3 32.3 Product3 2014/03/02
Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent
Essential Points
• SQL is the language we use in order to communicate with the
RDBMS
• Although in most cases vendors use the same SQL command,
in some cases the SQL command might be different
• There are different categories to the SQL language, and each is
responsible on different aspect
• There are many different available data types is MSSQL Server,
most basic columns are Int, Money, Varchar and Date.
Ad

More Related Content

What's hot (20)

SQL Overview
SQL OverviewSQL Overview
SQL Overview
Stewart Rogers
 
Introduction to Databases
Introduction to DatabasesIntroduction to Databases
Introduction to Databases
Ram Kedem
 
5. stored procedure and functions
5. stored procedure and functions5. stored procedure and functions
5. stored procedure and functions
Amrit Kaur
 
Chapter 4 Structured Query Language
Chapter 4 Structured Query LanguageChapter 4 Structured Query Language
Chapter 4 Structured Query Language
Eddyzulham Mahluzydde
 
SQL
SQLSQL
SQL
Shunya Ram
 
Introduction to sql
Introduction to sqlIntroduction to sql
Introduction to sql
VARSHAKUMARI49
 
Structured query language(sql)ppt
Structured query language(sql)pptStructured query language(sql)ppt
Structured query language(sql)ppt
Gowarthini
 
SQL
SQL SQL
SQL
Bhandari Nawaraj
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
Rumman Ansari
 
MySQL and its basic commands
MySQL and its basic commandsMySQL and its basic commands
MySQL and its basic commands
Bwsrang Basumatary
 
Basic sql Commands
Basic sql CommandsBasic sql Commands
Basic sql Commands
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
SQL for interview
SQL for interviewSQL for interview
SQL for interview
Aditya Kumar Tripathy
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
Sql server T-sql basics ppt-3
Sql server T-sql basics  ppt-3Sql server T-sql basics  ppt-3
Sql server T-sql basics ppt-3
Vibrant Technologies & Computers
 
Difference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleDifference Between Sql - MySql and Oracle
Difference Between Sql - MySql and Oracle
Steve Johnson
 
Structured Query Language (SQL)
Structured Query Language (SQL)Structured Query Language (SQL)
Structured Query Language (SQL)
Syed Hassan Ali
 
DDL And DML
DDL And DMLDDL And DML
DDL And DML
pnp @in
 
Mysql
MysqlMysql
Mysql
TSUBHASHRI
 
SQL Queries
SQL QueriesSQL Queries
SQL Queries
Nilt1234
 
Introduction to structured query language (sql)
Introduction to structured query language (sql)Introduction to structured query language (sql)
Introduction to structured query language (sql)
Sabana Maharjan
 

Similar to Introduction to SQL (20)

Data Warehouse Design Considerations
Data Warehouse Design ConsiderationsData Warehouse Design Considerations
Data Warehouse Design Considerations
Ram Kedem
 
Using Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptxUsing Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
2 designing tables
2 designing tables2 designing tables
2 designing tables
Ram Kedem
 
3 sql overview
3 sql overview3 sql overview
3 sql overview
Randy Riness @ South Puget Sound Community College
 
U-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for DevelopersU-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for Developers
Michael Rys
 
SQL-Server Database.pdf
SQL-Server Database.pdfSQL-Server Database.pdf
SQL-Server Database.pdf
ShehryarSH1
 
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
Andrew Brust
 
SQl-1.pptx
SQl-1.pptxSQl-1.pptx
SQl-1.pptx
kingVox
 
Querying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptxQuerying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptx
QuyVo27
 
SQL - RDBMS Concepts
SQL - RDBMS ConceptsSQL - RDBMS Concepts
SQL - RDBMS Concepts
WebStackAcademy
 
SQL Server 2008 For Developers
SQL Server 2008 For DevelopersSQL Server 2008 For Developers
SQL Server 2008 For Developers
John Sterrett
 
The SQL Query Language: Simple SELECT Commands
The SQL Query Language: Simple SELECT CommandsThe SQL Query Language: Simple SELECT Commands
The SQL Query Language: Simple SELECT Commands
teamspeer05
 
Database part2-
Database part2-Database part2-
Database part2-
Taymoor Nazmy
 
Jason Olson - IBM i DB2 Modernization to SQL
Jason Olson - IBM i DB2 Modernization to SQLJason Olson - IBM i DB2 Modernization to SQL
Jason Olson - IBM i DB2 Modernization to SQL
John Zozzaro
 
SQL 3.pptx
SQL 3.pptxSQL 3.pptx
SQL 3.pptx
Rishab Saini
 
Query editor for multi databases
Query editor for multi databasesQuery editor for multi databases
Query editor for multi databases
Aarthi Raghavendra
 
U-SQL Intro (SQLBits 2016)
U-SQL Intro (SQLBits 2016)U-SQL Intro (SQLBits 2016)
U-SQL Intro (SQLBits 2016)
Michael Rys
 
Chapter 2: Ms SQL Server
Chapter 2: Ms SQL ServerChapter 2: Ms SQL Server
Chapter 2: Ms SQL Server
Ngeam Soly
 
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptxCSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
noshinnawar31
 
SQL Intro
SQL IntroSQL Intro
SQL Intro
koppenolski
 
Data Warehouse Design Considerations
Data Warehouse Design ConsiderationsData Warehouse Design Considerations
Data Warehouse Design Considerations
Ram Kedem
 
Using Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptxUsing Basic Structured Query Language lo1.pptx
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
2 designing tables
2 designing tables2 designing tables
2 designing tables
Ram Kedem
 
U-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for DevelopersU-SQL - Azure Data Lake Analytics for Developers
U-SQL - Azure Data Lake Analytics for Developers
Michael Rys
 
SQL-Server Database.pdf
SQL-Server Database.pdfSQL-Server Database.pdf
SQL-Server Database.pdf
ShehryarSH1
 
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012SQL Server Workshop for Developers - Visual Studio Live! NY 2012
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
Andrew Brust
 
SQl-1.pptx
SQl-1.pptxSQl-1.pptx
SQl-1.pptx
kingVox
 
Querying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptxQuerying_with_T-SQL_-_01.pptx
Querying_with_T-SQL_-_01.pptx
QuyVo27
 
SQL Server 2008 For Developers
SQL Server 2008 For DevelopersSQL Server 2008 For Developers
SQL Server 2008 For Developers
John Sterrett
 
The SQL Query Language: Simple SELECT Commands
The SQL Query Language: Simple SELECT CommandsThe SQL Query Language: Simple SELECT Commands
The SQL Query Language: Simple SELECT Commands
teamspeer05
 
Jason Olson - IBM i DB2 Modernization to SQL
Jason Olson - IBM i DB2 Modernization to SQLJason Olson - IBM i DB2 Modernization to SQL
Jason Olson - IBM i DB2 Modernization to SQL
John Zozzaro
 
Query editor for multi databases
Query editor for multi databasesQuery editor for multi databases
Query editor for multi databases
Aarthi Raghavendra
 
U-SQL Intro (SQLBits 2016)
U-SQL Intro (SQLBits 2016)U-SQL Intro (SQLBits 2016)
U-SQL Intro (SQLBits 2016)
Michael Rys
 
Chapter 2: Ms SQL Server
Chapter 2: Ms SQL ServerChapter 2: Ms SQL Server
Chapter 2: Ms SQL Server
Ngeam Soly
 
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptxCSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
noshinnawar31
 
Ad

More from Ram Kedem (20)

Impala use case @ edge
Impala use case @ edgeImpala use case @ edge
Impala use case @ edge
Ram Kedem
 
Advanced SQL Webinar
Advanced SQL WebinarAdvanced SQL Webinar
Advanced SQL Webinar
Ram Kedem
 
Managing oracle Database Instance
Managing oracle Database InstanceManaging oracle Database Instance
Managing oracle Database Instance
Ram Kedem
 
Power Pivot and Power View
Power Pivot and Power ViewPower Pivot and Power View
Power Pivot and Power View
Ram Kedem
 
Data Mining in SSAS
Data Mining in SSASData Mining in SSAS
Data Mining in SSAS
Ram Kedem
 
Data mining In SSAS
Data mining In SSASData mining In SSAS
Data mining In SSAS
Ram Kedem
 
SQL Injections - Oracle
SQL Injections - OracleSQL Injections - Oracle
SQL Injections - Oracle
Ram Kedem
 
SSAS Attributes
SSAS AttributesSSAS Attributes
SSAS Attributes
Ram Kedem
 
SSRS Matrix
SSRS MatrixSSRS Matrix
SSRS Matrix
Ram Kedem
 
DDL Practice (Hebrew)
DDL Practice (Hebrew)DDL Practice (Hebrew)
DDL Practice (Hebrew)
Ram Kedem
 
DML Practice (Hebrew)
DML Practice (Hebrew)DML Practice (Hebrew)
DML Practice (Hebrew)
Ram Kedem
 
Exploring Oracle Database Architecture (Hebrew)
Exploring Oracle Database Architecture (Hebrew)Exploring Oracle Database Architecture (Hebrew)
Exploring Oracle Database Architecture (Hebrew)
Ram Kedem
 
Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014
Ram Kedem
 
Pig - Processing XML data
Pig - Processing XML dataPig - Processing XML data
Pig - Processing XML data
Ram Kedem
 
SSAS Cubes & Hierarchies
SSAS Cubes & HierarchiesSSAS Cubes & Hierarchies
SSAS Cubes & Hierarchies
Ram Kedem
 
SSRS Basic Parameters
SSRS Basic ParametersSSRS Basic Parameters
SSRS Basic Parameters
Ram Kedem
 
SSRS Gauges
SSRS GaugesSSRS Gauges
SSRS Gauges
Ram Kedem
 
SSRS Conditional Formatting
SSRS Conditional FormattingSSRS Conditional Formatting
SSRS Conditional Formatting
Ram Kedem
 
SSRS Calculated Fields
SSRS Calculated FieldsSSRS Calculated Fields
SSRS Calculated Fields
Ram Kedem
 
SSRS Groups
SSRS GroupsSSRS Groups
SSRS Groups
Ram Kedem
 
Impala use case @ edge
Impala use case @ edgeImpala use case @ edge
Impala use case @ edge
Ram Kedem
 
Advanced SQL Webinar
Advanced SQL WebinarAdvanced SQL Webinar
Advanced SQL Webinar
Ram Kedem
 
Managing oracle Database Instance
Managing oracle Database InstanceManaging oracle Database Instance
Managing oracle Database Instance
Ram Kedem
 
Power Pivot and Power View
Power Pivot and Power ViewPower Pivot and Power View
Power Pivot and Power View
Ram Kedem
 
Data Mining in SSAS
Data Mining in SSASData Mining in SSAS
Data Mining in SSAS
Ram Kedem
 
Data mining In SSAS
Data mining In SSASData mining In SSAS
Data mining In SSAS
Ram Kedem
 
SQL Injections - Oracle
SQL Injections - OracleSQL Injections - Oracle
SQL Injections - Oracle
Ram Kedem
 
SSAS Attributes
SSAS AttributesSSAS Attributes
SSAS Attributes
Ram Kedem
 
DDL Practice (Hebrew)
DDL Practice (Hebrew)DDL Practice (Hebrew)
DDL Practice (Hebrew)
Ram Kedem
 
DML Practice (Hebrew)
DML Practice (Hebrew)DML Practice (Hebrew)
DML Practice (Hebrew)
Ram Kedem
 
Exploring Oracle Database Architecture (Hebrew)
Exploring Oracle Database Architecture (Hebrew)Exploring Oracle Database Architecture (Hebrew)
Exploring Oracle Database Architecture (Hebrew)
Ram Kedem
 
Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014Deploy SSRS Project - SQL Server 2014
Deploy SSRS Project - SQL Server 2014
Ram Kedem
 
Pig - Processing XML data
Pig - Processing XML dataPig - Processing XML data
Pig - Processing XML data
Ram Kedem
 
SSAS Cubes & Hierarchies
SSAS Cubes & HierarchiesSSAS Cubes & Hierarchies
SSAS Cubes & Hierarchies
Ram Kedem
 
SSRS Basic Parameters
SSRS Basic ParametersSSRS Basic Parameters
SSRS Basic Parameters
Ram Kedem
 
SSRS Conditional Formatting
SSRS Conditional FormattingSSRS Conditional Formatting
SSRS Conditional Formatting
Ram Kedem
 
SSRS Calculated Fields
SSRS Calculated FieldsSSRS Calculated Fields
SSRS Calculated Fields
Ram Kedem
 
Ad

Recently uploaded (20)

AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 

Introduction to SQL

  • 2. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Objectives • Defining SQL • Why do we need to use it ? • Pronouncing SQL: S-Q-L or Sequel? • Standard SQL and language adjustments • Types of SQL Statements • Basic column data types in MSSQL
  • 3. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Defining SQL • Structured Query Language • Allows users to communicate with Relational Databases and retrieve data from their tables. SQL RDBMS
  • 4. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Pronouncing : S-Q-L or Sequel? • SQL was developed at IBM and it was initially called “Structured English Query Language” (SEQUEL) and pronounced “sequel” • Later it was shortened to SQL - “Structured Query Language” • Both pronunciations are correct
  • 5. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Standard SQL and Language Extensions • The RDBMS model was implemented by many vendors – • Microsoft (SQL Server), Oracle, IBM (DB2), MySQL, Postgres, etc. • SQL is the language each of those vendors use in order to access and manipulate their databases • In most cases all vendors use the same SQL command in order to achieve the same goal. In some cases vendors will use specific SQL extention that will only work under their platform.
  • 6. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Standard SQL and Language Extensions • Same statement to retrieve data of one column • SELECT lastName FROM employees • Different statement to concatencate strings • SELECT 'hello' + 'world' (SQL Server) • SELECT 'hello' || 'world' (Oracle)
  • 7. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Types of SQL Statements • Data Manipulation Language (DML) statements are used for managing data within schema objects. For example : • SELECT - retrieve data from the a database • INSERT - insert data into a table • UPDATE - updates existing data within a table • DELETE – delete existing rows • Data Definition Language (DDL) statements are used to define the database structure or schema. For example : • CREATE - to create objects in the database • DROP - delete objects from the database • Data Control Language (DCL) statements. For example : • GRANT - gives user's access privileges to database • REVOKE - withdraw access privileges given with the GRANT command
  • 8. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Basic column data types • Numeric columns • INT - Integer (whole number) data value • Money - Numeric data types with fixed precision and scale Product id (int) Product price (numeric) Product name (varchar(25)) Experation (date) 1 53.3 Product1 2014/03/22 2 23.1 Product2 2014/02/21 3 32.3 Product3 2014/03/02
  • 9. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Basic column data types • Numeric columns • INT - Integer (whole number) data value • Money - Monetary or currency values String columns • VARCHAR(N) – String data • Date columns • DATE – date data Product id (int) Product price (money) Product name (varchar(25)) Experation (date) 1 53.3 Product1 2014/03/22 2 23.1 Product2 2014/02/21 3 32.3 Product3 2014/03/02
  • 10. Copyright 2014 © Ram Kedem. All rights reserved. Not to be reproduced without written consent Essential Points • SQL is the language we use in order to communicate with the RDBMS • Although in most cases vendors use the same SQL command, in some cases the SQL command might be different • There are different categories to the SQL language, and each is responsible on different aspect • There are many different available data types is MSSQL Server, most basic columns are Int, Money, Varchar and Date.