SlideShare a Scribd company logo
1 of 13
5 SQL SERVER: FEEDINGDATA INTO THE DATABASE
ETL is everything What is ETL? ETL Stands for: Extract – Transform – Load ETL is the set of processes which are done in-order to generate the data what is to be stored in a database/used for analysis
ETL is everything ETL Explained Let us consider Tom who wishes to create a database of famous pop albums. The Process that he undertakes under an ETL model will be as follows: Extract Data TransformData Information from Album DVDs Data Warehouse Load Data A Data warehouse is defines as a data repository from which retrieval is very quick  Internet Books Info from friends
Migrating a Database An Important feature in Database systems is the migration of a database It is defined as the process of porting data from one platform/application in one format to another of a same/different format The Process of migration is quite simple: Understand a database and its properties Understand the differences between the source and the destination system Make the pre-migration changes in the source data Migrate from source to destination via automation/manual entry Make the post-migration changes in the destination data
Migrating a Database Illustration: Consider  that a school ‘Hermione Internationals’  upgrades its management system from a Foxpro DBMS to SQL Server 2008 system. The Database contain the same data(student information) but the format and organization of stored-data will differ. Extract values from DB Feed data into DB Integrate DB into Application Isolate DB
Inserting into a Database After creating the structure of a database, the next step is to insert values into it. The Insertion of values must be done with care. The Important things which are to had in mind are: The Data type of value that is inserted should match with the data type of the field The Size of the value inserted must fall within the size which is designated for a particular field while designing of the table.
Inserting into Database The SQL command to insert into the database is the insert into command Syntax: insert into <table_name> values (<values>,..) For example, consider a database  maintained by a kid named ‘Jessy’. The database contains information about the cartoons that she watches on Tv. Table name: cartoon
Inserting into Database Now suppose Jessy starts watching a new show ‘Laughs and Gags’ on Pogo Channel, she needs to insert this into her database SQL Command: insert into cartoon values(‘Laughs and Gags’,’Pogo’,’4PM: Weekends’, null); Jessy has just started watching the series and can decide on the rating after some-time only. Hence, the field is left as NULL  The Order in which the values are given is the order in which they were designed
Updating a Database Now, suppose Jessy has become a fan of ‘Laughs and Gags’ show and wants to give it a rating of 100, she musupdate her database. The SQL syntax for updation is: Syntax: update <table_Name> set <field_Name>=<new_Value>  where <condition> For example, consider the database  maintained by ‘Jessy’.  Null
Updating a Database SQL Command: Update cartoon set rating=100  	where cartoonName = ‘Laughs and Gags’ The Where clause: ,[object Object]
 For string matching, use the ‘like’ keyword. Here, wild card characters(% and _)% -character represents a group(or single) of characters  _ -character represents a single character Illustration: To Update cartoons whose names start with the letter ‘a’ must be given as  Update cartoon set rating=100  	where cartoonName = ‘a%’
Updating a Database Illustration: To Update cartoons whose names start with the letter ‘a’ and the name must of 3 characters in length: Update cartoon set rating=100  	where cartoonName = ‘a__’
Summary 5. Feeding data into a database ,[object Object]

More Related Content

What's hot

What's hot (20)

SQL Constraints
SQL ConstraintsSQL Constraints
SQL Constraints
 
Database testing
Database testingDatabase testing
Database testing
 
Oracle Forms Tutorial
Oracle Forms TutorialOracle Forms Tutorial
Oracle Forms Tutorial
 
Database Triggers
Database TriggersDatabase Triggers
Database Triggers
 
Joins in SQL
Joins in SQLJoins in SQL
Joins in SQL
 
SQL Joins.pptx
SQL Joins.pptxSQL Joins.pptx
SQL Joins.pptx
 
Introduction to triggers
Introduction to triggersIntroduction to triggers
Introduction to triggers
 
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
 
Trigger
TriggerTrigger
Trigger
 
SQL commands
SQL commandsSQL commands
SQL commands
 
MS Sql Server: Creating Views
MS Sql Server: Creating ViewsMS Sql Server: Creating Views
MS Sql Server: Creating Views
 
İleri Seviye T-SQL Programlama - Chapter 19
İleri Seviye T-SQL Programlama - Chapter 19İleri Seviye T-SQL Programlama - Chapter 19
İleri Seviye T-SQL Programlama - Chapter 19
 
Types Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql ServerTypes Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql Server
 
ETL Testing Overview
ETL Testing OverviewETL Testing Overview
ETL Testing Overview
 
Oracle Apps - Forms
Oracle Apps - FormsOracle Apps - Forms
Oracle Apps - Forms
 
Sql select
Sql select Sql select
Sql select
 
İleri Seviye T-SQL Programlama - Chapter 16
İleri Seviye T-SQL Programlama - Chapter 16İleri Seviye T-SQL Programlama - Chapter 16
İleri Seviye T-SQL Programlama - Chapter 16
 
Oracle Database View
Oracle Database ViewOracle Database View
Oracle Database View
 
SQL
SQLSQL
SQL
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 

Viewers also liked

Oratoria E RetóRica Latinas
Oratoria E RetóRica LatinasOratoria E RetóRica Latinas
Oratoria E RetóRica Latinas
lara
 

Viewers also liked (20)

Perintah bahasa Query (SQL)
Perintah bahasa Query (SQL)Perintah bahasa Query (SQL)
Perintah bahasa Query (SQL)
 
Bind How To
Bind How ToBind How To
Bind How To
 
Welcome
WelcomeWelcome
Welcome
 
Graph Plots in Matlab
Graph Plots in MatlabGraph Plots in Matlab
Graph Plots in Matlab
 
SPSS: File Managment
SPSS: File ManagmentSPSS: File Managment
SPSS: File Managment
 
Procedures And Functions in Matlab
Procedures And Functions in MatlabProcedures And Functions in Matlab
Procedures And Functions in Matlab
 
MS SQL SERVER: Programming sql server data mining
MS SQL SERVER: Programming sql server data miningMS SQL SERVER: Programming sql server data mining
MS SQL SERVER: Programming sql server data mining
 
Mphone
MphoneMphone
Mphone
 
Paramount Search Partners
Paramount Search PartnersParamount Search Partners
Paramount Search Partners
 
Matlab Importing Data
Matlab Importing DataMatlab Importing Data
Matlab Importing Data
 
RapidMiner: Advanced Processes And Operators
RapidMiner:  Advanced Processes And OperatorsRapidMiner:  Advanced Processes And Operators
RapidMiner: Advanced Processes And Operators
 
Introduction To R
Introduction To RIntroduction To R
Introduction To R
 
LISP:Loops In Lisp
LISP:Loops In LispLISP:Loops In Lisp
LISP:Loops In Lisp
 
Txomin Hartz Txikia
Txomin Hartz TxikiaTxomin Hartz Txikia
Txomin Hartz Txikia
 
Oratoria E RetóRica Latinas
Oratoria E RetóRica LatinasOratoria E RetóRica Latinas
Oratoria E RetóRica Latinas
 
Txomin Hartz Txikia
Txomin Hartz TxikiaTxomin Hartz Txikia
Txomin Hartz Txikia
 
Webmining Overview
Webmining OverviewWebmining Overview
Webmining Overview
 
BI: Open Source
BI: Open SourceBI: Open Source
BI: Open Source
 
Probability And Its Axioms
Probability And Its AxiomsProbability And Its Axioms
Probability And Its Axioms
 
R Environment
R EnvironmentR Environment
R Environment
 

Similar to MS Sql Server: Feeding Data Into Database

introductionofssis-130418034853-phpapp01.pptx
introductionofssis-130418034853-phpapp01.pptxintroductionofssis-130418034853-phpapp01.pptx
introductionofssis-130418034853-phpapp01.pptx
YashaswiniSrinivasan1
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
deepakk073
 
Php Data Objects
Php Data ObjectsPhp Data Objects
Php Data Objects
hiren.joshi
 
Database presentation
Database presentationDatabase presentation
Database presentation
webhostingguy
 

Similar to MS Sql Server: Feeding Data Into Database (20)

introductionofssis-130418034853-phpapp01.pptx
introductionofssis-130418034853-phpapp01.pptxintroductionofssis-130418034853-phpapp01.pptx
introductionofssis-130418034853-phpapp01.pptx
 
BI Tutorial (Copying Data from Oracle to Microsoft SQLServer)
BI Tutorial (Copying Data from Oracle to Microsoft SQLServer)BI Tutorial (Copying Data from Oracle to Microsoft SQLServer)
BI Tutorial (Copying Data from Oracle to Microsoft SQLServer)
 
Scripted Data Loads with Salesforce DataLoader and ANT
Scripted Data Loads with Salesforce DataLoader and ANTScripted Data Loads with Salesforce DataLoader and ANT
Scripted Data Loads with Salesforce DataLoader and ANT
 
Creating Database 2010
Creating Database 2010Creating Database 2010
Creating Database 2010
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
 
Managing Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid ControlManaging Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid Control
 
Lecture13
Lecture13Lecture13
Lecture13
 
SQL Create Database.pptx
SQL Create Database.pptxSQL Create Database.pptx
SQL Create Database.pptx
 
Eo gaddis java_chapter_16_5e
Eo gaddis java_chapter_16_5eEo gaddis java_chapter_16_5e
Eo gaddis java_chapter_16_5e
 
Php Data Objects
Php Data ObjectsPhp Data Objects
Php Data Objects
 
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
 
Database presentation
Database presentationDatabase presentation
Database presentation
 
SQL Prepared Statements Tutorial
SQL Prepared Statements TutorialSQL Prepared Statements Tutorial
SQL Prepared Statements Tutorial
 
JDBC Java Database Connectivity
JDBC Java Database ConnectivityJDBC Java Database Connectivity
JDBC Java Database Connectivity
 
Android database tutorial
Android database tutorialAndroid database tutorial
Android database tutorial
 
Intake 37 ef2
Intake 37 ef2Intake 37 ef2
Intake 37 ef2
 
DBMS LAB FILE1 task 1 , task 2, task3 and many more.pdf
DBMS LAB FILE1 task 1 , task 2, task3 and many more.pdfDBMS LAB FILE1 task 1 , task 2, task3 and many more.pdf
DBMS LAB FILE1 task 1 , task 2, task3 and many more.pdf
 
Aws schema conversion tool
Aws schema conversion toolAws schema conversion tool
Aws schema conversion tool
 
Simple ETL Solution - Marco Kiesewetter
Simple ETL Solution - Marco KiesewetterSimple ETL Solution - Marco Kiesewetter
Simple ETL Solution - Marco Kiesewetter
 
PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#
 

More from DataminingTools Inc

More from DataminingTools Inc (20)

Terminology Machine Learning
Terminology Machine LearningTerminology Machine Learning
Terminology Machine Learning
 
Techniques Machine Learning
Techniques Machine LearningTechniques Machine Learning
Techniques Machine Learning
 
Machine learning Introduction
Machine learning IntroductionMachine learning Introduction
Machine learning Introduction
 
Areas of machine leanring
Areas of machine leanringAreas of machine leanring
Areas of machine leanring
 
AI: Planning and AI
AI: Planning and AIAI: Planning and AI
AI: Planning and AI
 
AI: Logic in AI 2
AI: Logic in AI 2AI: Logic in AI 2
AI: Logic in AI 2
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
AI: Learning in AI 2
AI: Learning in AI 2AI: Learning in AI 2
AI: Learning in AI 2
 
AI: Learning in AI
AI: Learning in AI AI: Learning in AI
AI: Learning in AI
 
AI: Introduction to artificial intelligence
AI: Introduction to artificial intelligenceAI: Introduction to artificial intelligence
AI: Introduction to artificial intelligence
 
AI: Belief Networks
AI: Belief NetworksAI: Belief Networks
AI: Belief Networks
 
AI: AI & Searching
AI: AI & SearchingAI: AI & Searching
AI: AI & Searching
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Data Mining: Text and web mining
Data Mining: Text and web miningData Mining: Text and web mining
Data Mining: Text and web mining
 
Data Mining: Outlier analysis
Data Mining: Outlier analysisData Mining: Outlier analysis
Data Mining: Outlier analysis
 
Data Mining: Mining stream time series and sequence data
Data Mining: Mining stream time series and sequence dataData Mining: Mining stream time series and sequence data
Data Mining: Mining stream time series and sequence data
 
Data Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlationsData Mining: Mining ,associations, and correlations
Data Mining: Mining ,associations, and correlations
 
Data Mining: Graph mining and social network analysis
Data Mining: Graph mining and social network analysisData Mining: Graph mining and social network analysis
Data Mining: Graph mining and social network analysis
 
Data warehouse and olap technology
Data warehouse and olap technologyData warehouse and olap technology
Data warehouse and olap technology
 
Data Mining: Data processing
Data Mining: Data processingData Mining: Data processing
Data Mining: Data processing
 

Recently uploaded

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

MS Sql Server: Feeding Data Into Database

  • 1. 5 SQL SERVER: FEEDINGDATA INTO THE DATABASE
  • 2. ETL is everything What is ETL? ETL Stands for: Extract – Transform – Load ETL is the set of processes which are done in-order to generate the data what is to be stored in a database/used for analysis
  • 3. ETL is everything ETL Explained Let us consider Tom who wishes to create a database of famous pop albums. The Process that he undertakes under an ETL model will be as follows: Extract Data TransformData Information from Album DVDs Data Warehouse Load Data A Data warehouse is defines as a data repository from which retrieval is very quick Internet Books Info from friends
  • 4. Migrating a Database An Important feature in Database systems is the migration of a database It is defined as the process of porting data from one platform/application in one format to another of a same/different format The Process of migration is quite simple: Understand a database and its properties Understand the differences between the source and the destination system Make the pre-migration changes in the source data Migrate from source to destination via automation/manual entry Make the post-migration changes in the destination data
  • 5. Migrating a Database Illustration: Consider that a school ‘Hermione Internationals’ upgrades its management system from a Foxpro DBMS to SQL Server 2008 system. The Database contain the same data(student information) but the format and organization of stored-data will differ. Extract values from DB Feed data into DB Integrate DB into Application Isolate DB
  • 6. Inserting into a Database After creating the structure of a database, the next step is to insert values into it. The Insertion of values must be done with care. The Important things which are to had in mind are: The Data type of value that is inserted should match with the data type of the field The Size of the value inserted must fall within the size which is designated for a particular field while designing of the table.
  • 7. Inserting into Database The SQL command to insert into the database is the insert into command Syntax: insert into <table_name> values (<values>,..) For example, consider a database maintained by a kid named ‘Jessy’. The database contains information about the cartoons that she watches on Tv. Table name: cartoon
  • 8. Inserting into Database Now suppose Jessy starts watching a new show ‘Laughs and Gags’ on Pogo Channel, she needs to insert this into her database SQL Command: insert into cartoon values(‘Laughs and Gags’,’Pogo’,’4PM: Weekends’, null); Jessy has just started watching the series and can decide on the rating after some-time only. Hence, the field is left as NULL The Order in which the values are given is the order in which they were designed
  • 9. Updating a Database Now, suppose Jessy has become a fan of ‘Laughs and Gags’ show and wants to give it a rating of 100, she musupdate her database. The SQL syntax for updation is: Syntax: update <table_Name> set <field_Name>=<new_Value> where <condition> For example, consider the database maintained by ‘Jessy’. Null
  • 10.
  • 11. For string matching, use the ‘like’ keyword. Here, wild card characters(% and _)% -character represents a group(or single) of characters _ -character represents a single character Illustration: To Update cartoons whose names start with the letter ‘a’ must be given as Update cartoon set rating=100 where cartoonName = ‘a%’
  • 12. Updating a Database Illustration: To Update cartoons whose names start with the letter ‘a’ and the name must of 3 characters in length: Update cartoon set rating=100 where cartoonName = ‘a__’
  • 13.
  • 14. Migrating a database
  • 15. Inserting values into a database table
  • 16.