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 Sql Server: Reporting basics
PPTX
MS SQL SERVER: Doing Calculations With Functions
PPTX
MS SQLSERVER:Doing Calculations With Functions
PPTX
MS Sql Server: Reporting introduction
Identify SQL Tuning Opportunities
Unit 5-lecture4
Db2 performance tuning for dummies
Bigtable
MS Sql Server: Reporting basics
MS SQL SERVER: Doing Calculations With Functions
MS SQLSERVER:Doing Calculations With Functions
MS Sql Server: Reporting introduction

Viewers also liked (20)

PPTX
MS SQL SERVER: Getting Started With Sql Server 2008
PPTX
MS SQL SERVER: Creating A Database
PDF
Control Flow Using SSIS
PPTX
SSRS integration with share point
PPTX
SQL Server 2012 and SharePoint 2010: Reporting Nirvana
PPTX
Scrum sử dụng Team Foundation Server 2012
PDF
Data Warehouse Design Considerations
PDF
SSIS Basic Data Flow
PPTX
Introduction to Microsoft SQL Server 2008 R2 Analysis Service
PDF
Data Warehouse Basics
PDF
SSIS Incremental ETL process
PPTX
Introduction to Business Intelligence in Microsoft SQL Server 2008 R2
PPTX
TDD - Test Driven Dvelopment | Test First Design
PPTX
Building SSRS 2008 large scale solutions
PPTX
MS SQLSERVER:Manipulating Database
PPTX
Introduction to Microsoft SQL Server 2008 R2 Integration Services
PDF
Teaching and Learning TDD in the Coding Dojo
PPTX
SQL Server Reporting Services: IT Best Practices
PPT
MSBI-SSRS PPT
PPTX
SQL Server Reporting Services
MS SQL SERVER: Getting Started With Sql Server 2008
MS SQL SERVER: Creating A Database
Control Flow Using SSIS
SSRS integration with share point
SQL Server 2012 and SharePoint 2010: Reporting Nirvana
Scrum sử dụng Team Foundation Server 2012
Data Warehouse Design Considerations
SSIS Basic Data Flow
Introduction to Microsoft SQL Server 2008 R2 Analysis Service
Data Warehouse Basics
SSIS Incremental ETL process
Introduction to Business Intelligence in Microsoft SQL Server 2008 R2
TDD - Test Driven Dvelopment | Test First Design
Building SSRS 2008 large scale solutions
MS SQLSERVER:Manipulating Database
Introduction to Microsoft SQL Server 2008 R2 Integration Services
Teaching and Learning TDD in the Coding Dojo
SQL Server Reporting Services: IT Best Practices
MSBI-SSRS PPT
SQL Server Reporting Services
Ad

Similar to MS SQL SERVER: Feeding Data Into Database (20)

PPT
Database management and System Development ppt
PPTX
introductionofssis-130418034853-phpapp01.pptx
PDF
BI Tutorial (Copying Data from Oracle to Microsoft SQLServer)
PDF
Scripted Data Loads with Salesforce DataLoader and ANT
PPT
Creating Database 2010
PPTX
Introduction of ssis
PPT
Managing Oracle Streams Using Enterprise Manager Grid Control
PPT
PPTX
An introduction to Flask and Sqlite3 - revision 1
PPTX
SQL Create Database.pptx
PPT
Eo gaddis java_chapter_16_5e
PPT
Php Data Objects
PDF
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
PPT
Unit-2.ppt FOR CSE STUDENTS ENGINEERING ANF MCA
PPT
Database presentation
PPTX
SQL Prepared Statements Tutorial
PPT
JDBC Java Database Connectivity
PPT
NLP Natural Language Processing 10th Chapter.ppt
DOCX
Android database tutorial
PDF
Intake 37 ef2
Database management and System Development ppt
introductionofssis-130418034853-phpapp01.pptx
BI Tutorial (Copying Data from Oracle to Microsoft SQLServer)
Scripted Data Loads with Salesforce DataLoader and ANT
Creating Database 2010
Introduction of ssis
Managing Oracle Streams Using Enterprise Manager Grid Control
An introduction to Flask and Sqlite3 - revision 1
SQL Create Database.pptx
Eo gaddis java_chapter_16_5e
Php Data Objects
Connecting To MS SQL Server With Mulesoft (Stored Procedure To Insert data)
Unit-2.ppt FOR CSE STUDENTS ENGINEERING ANF MCA
Database presentation
SQL Prepared Statements Tutorial
JDBC Java Database Connectivity
NLP Natural Language Processing 10th Chapter.ppt
Android database tutorial
Intake 37 ef2
Ad

More from sqlserver content (20)

PPTX
MS SQL SERVER: Using the data mining tools
PPTX
MS SQL SERVER: SSIS and data mining
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 sequence clustering and association rules
PPTX
MS SQL SERVER: Neural network and logistic regression
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 Sql Server: Datamining Introduction
PPTX
MS Sql Server: Business Intelligence
PPTX
MS SQLSERVER:Feeding Data Into Database
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
MS SQL SERVER: Using the data mining tools
MS SQL SERVER: SSIS and data mining
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 sequence clustering and association rules
MS SQL SERVER: Neural network and logistic regression
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 Sql Server: Datamining Introduction
MS Sql Server: Business Intelligence
MS SQLSERVER:Feeding Data Into Database
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

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
cuic standard and advanced reporting.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Machine Learning_overview_presentation.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
A Presentation on Artificial Intelligence
PDF
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation theory and applications.pdf
Spectral efficient network and resource selection model in 5G networks
Digital-Transformation-Roadmap-for-Companies.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
cuic standard and advanced reporting.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Machine Learning_overview_presentation.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools
Per capita expenditure prediction using model stacking based on satellite ima...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A comparative analysis of optical character recognition models for extracting...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
A Presentation on Artificial Intelligence
Unlocking AI with Model Context Protocol (MCP)

MS SQL SERVER: 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