• Save
MS SQLSERVER:Feeding Data Into Database
Upcoming SlideShare
Loading in...5
×
 

MS SQLSERVER:Feeding Data Into Database

on

  • 707 views

MS SQLSERVER:Feeding Data Into Database

MS SQLSERVER:Feeding Data Into Database

Statistics

Views

Total Views
707
Views on SlideShare
692
Embed Views
15

Actions

Likes
0
Downloads
0
Comments
0

5 Embeds 15

http://dataminingtools.net 6
http://www.dataminingtools.net 5
http://www.techgig.com 2
http://www.slideshare.net 1
http://localhost:3000 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    MS SQLSERVER:Feeding Data Into Database MS SQLSERVER:Feeding Data Into Database Presentation Transcript

    • 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:
      • 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 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
      • ETL Process
      • Migrating a database
      • Inserting values into a database table
      • Updating a database table
    • Visit more self help tutorials
      Pick 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