SlideShare a Scribd company logo
5SQL SERVER: FEEDINGDATA INTO THE DATABASE
ETL is everythingWhat is ETL?ETL Stands for: Extract – Transform – LoadETL 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 everythingETL ExplainedLet 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 DataTransformDataInformation from Album DVDsData WarehouseLoad DataA Data warehouse is defines as a data repository from which retrieval is very quick InternetBooksInfo from friends
Migrating a DatabaseAn Important feature in Database systems is the migration of a databaseIt is defined as the process of porting data from one platform/application in one format to another of a same/different formatThe Process of migration is quite simple:Understand a database and its propertiesUnderstand the differences between the source and the destination systemMake the pre-migration changes in the source dataMigrate from source to destination via automation/manual entryMake the post-migration changes in the destination data
Migrating a DatabaseIllustration: 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 DBFeed data into DBIntegrate DB into ApplicationIsolate DB
Inserting into a DatabaseAfter 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 fieldThe Size of the value inserted must fall within the size which is designated for a particular field while designing of the table.
Inserting into DatabaseThe SQL command to insert into the database is the insert into commandSyntax: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 DatabaseNow suppose Jessy starts watching a new show ‘Laughs and Gags’ on Pogo Channel, she needs to insert this into her databaseSQL 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 DatabaseNow, 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 DatabaseSQL Command:Update cartoon set rating=100 	where cartoonName = ‘Laughs and Gags’The Where clause: Where is used to specify a condition for the Query
 For string matching, use the ‘like’ keyword. Here, wild card characters(% and _)% -character represents a group(or single) of characters _ -character represents a single characterIllustration:To Update cartoons whose names start with the letter ‘a’ must be given as Update cartoon set rating=100 	where cartoonName = ‘a%’
Updating a DatabaseIllustration: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__’
Summary5. Feeding data into a database  ETL Process

More Related Content

PDF
Identify SQL Tuning Opportunities
PPT
Unit 5-lecture4
PDF
Db2 performance tuning for dummies
PDF
Bigtable
PPTX
MS SQLSERVER:Manipulating Database
PPTX
MS SQL SERVER: Introduction To Database Concepts
PPTX
MS Sql Server: Business Intelligence
PPTX
MS SQL SERVER: Microsoft sequence clustering and association rules
Identify SQL Tuning Opportunities
Unit 5-lecture4
Db2 performance tuning for dummies
Bigtable
MS SQLSERVER:Manipulating Database
MS SQL SERVER: Introduction To Database Concepts
MS Sql Server: Business Intelligence
MS SQL SERVER: Microsoft sequence clustering and association rules

Viewers also liked (11)

PPTX
MS Sql Server: Datamining Introduction
PPTX
MS SQLSERVER:Retrieving Data From A Database
PPTX
MS Sql Server: Reporting introduction
PPTX
MS SQL SERVER: Using the data mining tools
PPTX
MS SQL SERVER: Neural network and logistic regression
PPTX
MS SQL SERVER: Creating A Database
PPTX
MS SQLSERVER:Doing Calculations With Functions
PPTX
MS Sql Server: Reporting basics
PPTX
MS SQL SERVER: SSIS and data mining
PPTX
MS SQLSERVER:Joining Databases
PPTX
MS SQL SERVER: Getting Started With Sql Server 2008
MS Sql Server: Datamining Introduction
MS SQLSERVER:Retrieving Data From A Database
MS Sql Server: Reporting introduction
MS SQL SERVER: Using the data mining tools
MS SQL SERVER: Neural network and logistic regression
MS SQL SERVER: Creating A Database
MS SQLSERVER:Doing Calculations With Functions
MS Sql Server: Reporting basics
MS SQL SERVER: SSIS and data mining
MS SQLSERVER:Joining Databases
MS SQL SERVER: Getting Started With Sql Server 2008
Ad

Similar to MS SQLSERVER:Feeding Data Into Database (20)

PPTX
MS Sql Server: Manipulating Database
PPTX
MS SQL SERVER: Manipulating Database
PDF
Sql a practical introduction
PDF
Sql a practical introduction
PDF
SQL Complete Tutorial. All Topics Covered
PPTX
SQL Assessment Command Statements
PDF
Sql a practical_introduction
PDF
full detailled SQL notesquestion bank (1).pdf
PPT
Sql tables
PPT
Sql tables
PPT
Fg d
PPT
PDF
SQL for data scientist And data analysist Advanced
PPTX
DATABASE MANAGMENT SYSTEM (DBMS) AND SQL
PDF
DBMS.pdf
PPT
Oracle Sql & PLSQL Complete guide
PPTX
Database management system by Neeraj Bhandari ( Surkhet.Nepal )
PDF
Databasell
PPTX
PPTX
Introduction.pptxyfdvkbvvxxmnvczsyjkmnbvhj
MS Sql Server: Manipulating Database
MS SQL SERVER: Manipulating Database
Sql a practical introduction
Sql a practical introduction
SQL Complete Tutorial. All Topics Covered
SQL Assessment Command Statements
Sql a practical_introduction
full detailled SQL notesquestion bank (1).pdf
Sql tables
Sql tables
Fg d
SQL for data scientist And data analysist Advanced
DATABASE MANAGMENT SYSTEM (DBMS) AND SQL
DBMS.pdf
Oracle Sql & PLSQL Complete guide
Database management system by Neeraj Bhandari ( Surkhet.Nepal )
Databasell
Introduction.pptxyfdvkbvvxxmnvczsyjkmnbvhj
Ad

More from sqlserver content (17)

PPTX
MS SQL SERVER: Programming sql server data mining
PPTX
MS SQL SERVER: Olap cubes and data mining
PPTX
MS SQL SERVER: Microsoft time series algorithm
PPTX
MS SQL SERVER: Microsoft naive bayes algorithm
PPTX
MS SQL SERVER: Decision trees algorithm
PPTX
MS SQL Server: Data mining concepts and dmx
PPTX
MS Sql Server: Reporting models
PPTX
MS Sql Server: Reporting manipulating data
PPTX
MS SQLSERVER:Deleting A Database
PPTX
MS SQLSERVER:Customizing Your D Base Design
PPTX
MS SQLSERVER:Creating Views
PPTX
MS SQLSERVER:Creating A Database
PPTX
MS SQLSERVER:Advanced Query Concepts Copy
PPTX
MS SQLSERVER:Sql Functions And Procedures
PPTX
MS SQL SERVER: Sql Functions And Procedures
PPTX
MS SQL SERVER: Retrieving Data From A Database
PPTX
MS SQL SERVER: Joining Databases
MS SQL SERVER: Programming sql server data mining
MS SQL SERVER: Olap cubes and data mining
MS SQL SERVER: Microsoft time series algorithm
MS SQL SERVER: Microsoft naive bayes algorithm
MS SQL SERVER: Decision trees algorithm
MS SQL Server: Data mining concepts and dmx
MS Sql Server: Reporting models
MS Sql Server: Reporting manipulating data
MS SQLSERVER:Deleting A Database
MS SQLSERVER:Customizing Your D Base Design
MS SQLSERVER:Creating Views
MS SQLSERVER:Creating A Database
MS SQLSERVER:Advanced Query Concepts Copy
MS SQLSERVER:Sql Functions And Procedures
MS SQL SERVER: Sql Functions And Procedures
MS SQL SERVER: Retrieving Data From A Database
MS SQL SERVER: Joining Databases

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
A Presentation on Artificial Intelligence
PDF
Electronic commerce courselecture one. Pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Spectroscopy.pptx food analysis technology
20250228 LYD VKU AI Blended-Learning.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Big Data Technologies - Introduction.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
sap open course for s4hana steps from ECC to s4
A comparative analysis of optical character recognition models for extracting...
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Review of recent advances in non-invasive hemoglobin estimation
A Presentation on Artificial Intelligence
Electronic commerce courselecture one. Pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectroscopy.pptx food analysis technology

MS SQLSERVER:Feeding Data Into Database

  • 1. 5SQL SERVER: FEEDINGDATA INTO THE DATABASE
  • 2. ETL is everythingWhat is ETL?ETL Stands for: Extract – Transform – LoadETL 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 everythingETL ExplainedLet 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 DataTransformDataInformation from Album DVDsData WarehouseLoad DataA Data warehouse is defines as a data repository from which retrieval is very quick InternetBooksInfo from friends
  • 4. Migrating a DatabaseAn Important feature in Database systems is the migration of a databaseIt is defined as the process of porting data from one platform/application in one format to another of a same/different formatThe Process of migration is quite simple:Understand a database and its propertiesUnderstand the differences between the source and the destination systemMake the pre-migration changes in the source dataMigrate from source to destination via automation/manual entryMake the post-migration changes in the destination data
  • 5. Migrating a DatabaseIllustration: 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 DBFeed data into DBIntegrate DB into ApplicationIsolate DB
  • 6. Inserting into a DatabaseAfter 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 fieldThe 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 DatabaseThe SQL command to insert into the database is the insert into commandSyntax: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 DatabaseNow suppose Jessy starts watching a new show ‘Laughs and Gags’ on Pogo Channel, she needs to insert this into her databaseSQL 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 DatabaseNow, 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. Updating a DatabaseSQL Command:Update cartoon set rating=100 where cartoonName = ‘Laughs and Gags’The Where clause: Where is used to specify a condition for the Query
  • 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 characterIllustration: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 DatabaseIllustration: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. Summary5. Feeding data into a database ETL Process
  • 14. Migrating a database
  • 15. Inserting values into a database table
  • 16. Updating a database tableVisit more self help tutorialsPick a tutorial of your choice and browse through it at your own pace.The tutorials section is free, self-guiding and will not involve any additional support.Visit us at www.dataminingtools.net