SlideShare ist ein Scribd-Unternehmen logo
1 von 87
www.formatech.com.lb




     Microsoft SQL Server
                       Design, Performance and Reporting
                                                     Version 1.4 - 08
                                                                    .




                               By   Naji El Kotob.
                                 Certified Trainer
                                 Information Technology Consultant
                                _______________________________

                                naji@dotnetheroes.com
   Database
    ◦ Definitions and Fundamentals
    ◦ Relational Database Objects
    ◦ B-Tree
   Microsoft SQL Server
    ◦ Design and Architecture
   Database Design
    ◦ Relationships
    ◦ Database Normalization
   SQL – Structured Query Language
    ◦ DML
    ◦ JOINS
       Inner, Outer, Full, Cross and self
   Optimization and Performance Tips
   Microsoft SQL Server Development Tools
    ◦ Business Intelligence Development Studio
   Resources and References


Outlines
                                             By Naji El Kotob {naji@dotnetheroes.com}
Definitions and Fundamentals
                 By Naji El Kotob {naji@dotnetheroes.com}
   An organized collection of data.




Database?
                             By Naji El Kotob {naji@dotnetheroes.com}
   DEMO
    ◦ [Real Case Studies]




Database?
                            By Naji El Kotob {naji@dotnetheroes.com}
   There are two main types of database;
    flat-file and relational.




Database Types
                           By Naji El Kotob {naji@dotnetheroes.com}
RDBMS?
         By Naji El Kotob {naji@dotnetheroes.com}
   The "relation" comes from the fact that
    the tables can be linked to each other.




Relational
                            By Naji El Kotob {naji@dotnetheroes.com}
   DBMS is the software that controls the
    organization, storage, retrieval, security
    and integrity of data in a database.




DBMS       [Database Management System]
                              By Naji El Kotob {naji@dotnetheroes.com}
   A type of database management
    system (DBMS) that stores data in the
    form of related tables.
    Source: http://www.webopedia.com




RDBMS
                                       By Naji El Kotob {naji@dotnetheroes.com}
   One major advantage of the relational
    model is that, if a database is designed
    efficiently, there should be NO duplication
    of any data; helping to maintain database
    integrity.


            Customers
                                   Orders




Relational Model
                             By Naji El Kotob {naji@dotnetheroes.com}
Relational Database Objects
                  By Naji El Kotob {naji@dotnetheroes.com}
   Database objects are tables, indexes,
    views, triggers, procedures…




Database Objects
                            By Naji El Kotob {naji@dotnetheroes.com}
   Tables are the basic component of a
    relational database (RDB). It has a
    number of rows and columns, similar to a
    spreadsheet.




Database Tables
                           By Naji El Kotob {naji@dotnetheroes.com}
   A database index is a data structure that
    improves the speed of operations in a
    table.

   Indexes can be created using one or more
    columns, providing the basis for both
    rapid random lookups and efficient
    ordering of access to records.




Database Index
                             By Naji El Kotob {naji@dotnetheroes.com}
Database Index: DEMO
                By Naji El Kotob {naji@dotnetheroes.com}
B-Tree?
          By Naji El Kotob {naji@dotnetheroes.com}
Image source: http://20bits.com/articles/interview-questions-database-indexes/




                                                                                       A B-tree consists of a root
                                                                                          node that contains a
                                                                                          single page of data,
                                                                                          zero or more
                                                                                          intermediate levels
What is a b-tree?                                                                         containing additional
                                                                                          pages, and a leaf level.

                                                                                 By Naji El Kotob {naji@dotnetheroes.com}
Clustered index
Image source: http://msdn.microsoft.com/en-us/library/ms177443.aspx
                                                                      By Naji El Kotob {naji@dotnetheroes.com}
Non-clustered index
Image source: http://msdn.microsoft.com/en-us/library/ms177484.aspx
                                                                      By Naji El Kotob {naji@dotnetheroes.com}
B-Tree: DEMO
               By Naji El Kotob {naji@dotnetheroes.com}
QnA?
       By Naji El Kotob {naji@dotnetheroes.com}
Microsoft SQL Server
                 By Naji El Kotob {naji@dotnetheroes.com}
Image source: http://www.vovisoft.com/SQLServer2000/images/DatabaseStorageAllocation.gif (Nov. 2008)




MSSQL: Design and Architecture
                                                                   By Naji El Kotob {naji@dotnetheroes.com}
Primary Filegroup



           Data           Log
           .mdf            .ldf




MSSQL: Design and Architecture
                          By Naji El Kotob {naji@dotnetheroes.com}
Primary Filegroup



              Data
              .mdf




          New Filegroup


              Data                                            Log
                Data
               .ndf                                            .ldf
                 .ndf




MSSQL: Design and Architecture                               (Cont’d)

                             By Naji El Kotob {naji@dotnetheroes.com}
   SQL Server uses a write-ahead log
    (WAL), which guarantees that no data
    modifications are written to disk before
    the associated log record is written to
    disk.
    ◦   Source: http://msdn.microsoft.com/en-us/library/ms186259(SQL.90).aspx




Log Files: WAL
                                                                    By Naji El Kotob {naji@dotnetheroes.com}
1 Data modification is
                   sent by application                               Modification is recorded
                                                                3 in transaction log on disk
                                      Buffer
                                      Cache
                                                                          Disk



                                                                        Disk
       Data pages are located in,
  2    or read into, buffer cache
       and modified                                           Checkpoint writes
                                                            4 committed transactions
                                                              to database




Log Files: Transaction Logging
Image source: http://www.vovisoft.com/SQLServer2000/images/HowTransactionLogWorks.gif (Nov. 2008)
                                                                    By Naji El Kotob {naji@dotnetheroes.com}
Database Design
                  By Naji El Kotob {naji@dotnetheroes.com}
Relationships
                By Naji El Kotob {naji@dotnetheroes.com}
   Unique Key:
    ◦ It creates non-clustered index by default
    ◦ It allows only one null value
    ◦ Multiple Key(s) per table

   Primary Key:
    ◦ It creates clustered index by default
    ◦ It doesn't allow nulls
    ◦ One key per table

   Foreign Key
    ◦ A key used in one table to represent the value of a
      primary key in a related table. While primary keys must
      contain unique values, foreign keys may have duplicates.




Tables: Keys
                                       By Naji El Kotob {naji@dotnetheroes.com}
Tables Keys: DEMO
                By Naji El Kotob {naji@dotnetheroes.com}
   One record in Table-1 has one and only
    one matching record in Table-2.




Relationships: One-to-One
                            By Naji El Kotob {naji@dotnetheroes.com}
   One record in Table-1 can have multiple
    matching records in Tabl-2, but only one
    in Table-1.




Relationships: One-to-Many
                            By Naji El Kotob {naji@dotnetheroes.com}
   Each record in Table-1 and Table-2 can
    have multiple matching records in either
    table.




Relationships: Many-to-Many
                            By Naji El Kotob {naji@dotnetheroes.com}
Relationships: DEMO
                 By Naji El Kotob {naji@dotnetheroes.com}
Normalization
                By Naji El Kotob {naji@dotnetheroes.com}
   Normalization is the process of efficiently
    organizing data in a database.
    ◦ Eliminating redundant data     (e.g. storing the same
     data in more than one table)
    ◦ Ensuring data dependencies make sense                        (only
      storing related data in a table).




What is Normalization?
                                    By Naji El Kotob {naji@dotnetheroes.com}
Project   Project   Employee       Employee            Department
ID        Name      ID             Name
123       Payroll   5              Naji                IT
                    8              Dani                Finance
134       CRM       7              Sandra              IT
                    5              Naji                Marketing
                    2              Nada                HR

                        Repeating groups of
                        similar data




ZERO Normal Form
                                              By Naji El Kotob {naji@dotnetheroes.com}
Project   Project   Employee   Employee   Departmen
ID        Name      ID         Name       t
123       Payroll   5          Naji       IT

                    8          Dani       Finance
134       CRM       7          Sandra     IT
                    5          Naji       Marketing
                    2          Nada       HR




NF1:                           Project    Project     Employee Employee Departme
A row of data cannot           ID         Name        ID       Name     nt
contain repeating              123        Payroll     5              Naji            IT
groups of similar data
(atomicity)                    123        Payroll     8              Dani            Finance
                               134        CRM         7              Sandra          IT
Each row of data must
have a unique identifier       134        CRM         5              Naji            IT
(or Primary Key).              134        CRM         2              Nada            HR




First Normal Form
                                                          By Naji El Kotob {naji@dotnetheroes.com}
Project   Project   Employee   Employee     Department
ID        Name      ID         Name
123       Payroll   5          Naji         IT

123       Payroll   8          Dani         Finance

134       CRM       7          Sandra       IT

134       CRM       5          Naji         IT

134       CRM       2          Nada         HR



NF2:                    Project       Project
No Partial              ID            Name
Dependencies on a       123           Payroll         Employee      Employee          Department
Concatenated Key
                        134           CRM             ID            Name
                                                      5             Naji              IT
                                                      8             Dani              Finance
                                                      7             Sandra            IT
                                                      2             Nada              HR



Second Normal Form
                                                           By Naji El Kotob {naji@dotnetheroes.com}
Project   Project      Employee   Employee    Department                 Department column:
ID        Name         ID         Name                                   Rely on non-key attributes
123       Payroll      5          Naji        IT
                                                                         Can it exist independent
134       CRM
                       8          Dani        Finance                    of the Employee ID
                                                                         column?
                       7          Sandra      IT

                       2          Nada        HR




Project      Project
ID           Name
                              Employee       Employee
123          Payroll          ID             Name
134          CRM              5              Naji
                              8              Dani
NF3:                          7              Sandra              Department Department
It contains no transitive                                        ID         Name
                              2              Nada
dependencies                                                     1                   IT
(No Dependencies on
Non-Key Attributes).                                             2                   Finance
                                                                 3                   HR
Third Normal Form
                                                           By Naji El Kotob {naji@dotnetheroes.com}
Normalization: DEMO
                By Naji El Kotob {naji@dotnetheroes.com}
QnA?
       By Naji El Kotob {naji@dotnetheroes.com}
SQL (Structured Query Language)
                   By Naji El Kotob {naji@dotnetheroes.com}
   SQL is a standardized query language for
    accessing/manipulating data and schema
    in relational database management
    systems, such as Microsoft SQL Server,
    Oracle, etc.


        SQL


    Data/Feedback




SQL (Structured Query Language)
                            By Naji El Kotob {naji@dotnetheroes.com}
SQL: Select Statement
                 By Naji El Kotob {naji@dotnetheroes.com}
Northwind Sample
Database
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE‘

Customers
Shippers
Suppliers
Orders
Products
Order Details
CustomerCustomerDemo
CustomerDemographics
Region
Territories
EmployeeTerritories
sysdiagrams
Employees
Categories                           Source:
                                     http://www.microsoft.com/downloads/details.aspx?Fam
                                     ilyID=06616212-0356-46A0-8DA2-
                                     EEBC53A68034&displaylang=en
                                                 By Naji El Kotob {naji@dotnetheroes.com}
   The SQL SELECT statement is the SQL
    command that retrieves data from an SQL
    database. This operation is also known as
    a query and is the key to the use of SQL
    for analysis and reporting.




SQL: Select Statement
                            By Naji El Kotob {naji@dotnetheroes.com}
Let’s experience it ;)




SQL: Select Statement
                      By Naji El Kotob {naji@dotnetheroes.com}
SELECT * FROM Customers




SQL: Select Statement
                          By Naji El Kotob {naji@dotnetheroes.com}
SELECT ContactName + ' (' + CompanyName + ')'
 FROM Customers




SQL: Select Statement (Concat)
                           By Naji El Kotob {naji@dotnetheroes.com}
SELECT SUBSTRING(CustomerID, 1, 3) + ' - ' +
 CompanyName FROM Customers




SQL: Select Statement (Substring)
                           By Naji El Kotob {naji@dotnetheroes.com}
SELECT DISTINCT Country
FROM Customers




SQL: Select Statement (DISTINCT)
                          By Naji El Kotob {naji@dotnetheroes.com}
SELECT DISTINCT Country
FROM Customers
Order by Country ASC -- or DESC




SQL: Select Statement (ORDER BY)
                          By Naji El Kotob {naji@dotnetheroes.com}
SELECT OrderID, ProductID, (UnitPrice *
Quantity * (1 - Discount)) AS SubTotal
FROM [Order Details]




SQL: Select Statement (Expression)
                         By Naji El Kotob {naji@dotnetheroes.com}
SELECT ORDERID,
SUM((UnitPrice * Quantity * (1 - Discount))) AS
 SubTotal
FROM [Order Details]
GROUP BY ORDERID




SQL: Select Statement
(Aggregate Functions)
                             By Naji El Kotob {naji@dotnetheroes.com}
SELECT o.CustomerID,
(SELECT SUM((UnitPrice * Quantity * (1 - Discount))) AS
  SubTotal
FROM [Order Details]
WHERE OrderID = o.OrderID)
FROM Orders o




SQL: Select Statement (Aggregate
Functions + Subquery)
                                   By Naji El Kotob {naji@dotnetheroes.com}
SELECT ORDERID,
ROUND(SUM((UnitPrice * Quantity * (1 - Discount))), 2) AS
  SubTotal
FROM [Order Details]
GROUP BY ORDERID
HAVING SUM(UnitPrice * Quantity * (1 - Discount)) > 500




SQL: Select Statement (Aggregate
Functions + Filtration)
                                       By Naji El Kotob {naji@dotnetheroes.com}
QnA?
       By Naji El Kotob {naji@dotnetheroes.com}
◦   = Equal
 ◦   <> Not Equal
 ◦   > Greater Than
 ◦   < Less Than
 ◦   >= Greater Than Or Equal
 ◦   <= Less Than Or Equal
 ◦   _______________________

 ◦   TOP # [PERCENT]
 ◦   BETWEEN
 ◦   LIKE %, _, [], [^]
 ◦   IN
 ◦   IS NULL / IS NOT NULL
 ◦   NOT, AND, OR
 ◦   …



SQL: Select Statement:                  WHERE
                                By Naji El Kotob {naji@dotnetheroes.com}
DML: Select, Insert, Update and Delete
                       By Naji El Kotob {naji@dotnetheroes.com}
   SELECT * FROM Employees

   INSERT INTO Employees(FirstName,
    LastName)
    VALUES ('Naji','El Kotob')

   UPDATE Employees SET City='Beirut',
    Country='Lebanon' WHERE EmployeeID = 10

   DELETE FROM Employees WHERE
    EmployeeID = 10


                       DML (Data Manipulation Language)

DML
                               By Naji El Kotob {naji@dotnetheroes.com}
DML: DEMO
            By Naji El Kotob {naji@dotnetheroes.com}
SQL: Select Statement:             JOIN
                 By Naji El Kotob {naji@dotnetheroes.com}
   The SQL join command is used to join
    two or more tables.




SQL: Select Statement:                       JOIN
                           By Naji El Kotob {naji@dotnetheroes.com}
 JOIN match in both tables
 LEFT JOIN match in the right table
 RIGHT JOIN match in the left table
 FULL JOIN match in one of the tables
 CROSS JOIN Cartesian Product - combines
  two tables by generating all possible




SQL: Select Statement:           JOINS
                         By Naji El Kotob {naji@dotnetheroes.com}
   What’s the name of the top 5 customers
    with their order value and order date?




INNER JOIN
                           By Naji El Kotob {naji@dotnetheroes.com}
SELECT TOP 5 C.CustomerID, C.CompanyName, O.OrderDate,
ROUND(SUM((OD.UnitPrice * OD.Quantity * (1 - OD.Discount))), 2)
  AS SubTotal

FROM Customers C INNER JOIN
            Orders O ON C.CustomerID = O.CustomerID INNER
  JOIN
            [Order Details] OD ON O.OrderID = OD.OrderID

GROUP BY C.CustomerID, C.CompanyName, O.OrderDate
ORDER BY SubTotal DESC




INNER JOIN
                                      By Naji El Kotob {naji@dotnetheroes.com}
   Generate a list of customers with the
    number of orders?

   Generate a list of all the customers with
    the number orders?

   Generate a list of employees and their
    managers?




JOINS: DEMO
                             By Naji El Kotob {naji@dotnetheroes.com}
SELECT    Customers.CompanyName,
  COUNT(Orders.OrderID) AS [Number of Orders]
FROM       Customers INNER JOIN
              Orders ON Customers.CustomerID =
  Orders.CustomerID

       GROUP BY Customers.CompanyName
       ORDER BY Customers.CompanyName




INNER JOIN
                                By Naji El Kotob {naji@dotnetheroes.com}
SELECT    Customers.CompanyName,
  COUNT(Orders.OrderID) AS [Number of Orders]
FROM       Customers LEFT JOIN
              Orders ON Customers.CustomerID =
  Orders.CustomerID

       GROUP BY Customers.CompanyName
       ORDER BY [Number of Orders] DESC




LEFT JOIN
                                By Naji El Kotob {naji@dotnetheroes.com}
SELECT e.FirstName + ' ' + e.LastName AS 'Employee
  Name', m.FirstName + ' ' + m.LastName AS 'Manager
  Name'
FROM Employees AS e LEFT OUTER JOIN Employees AS m
ON e.ReportsTo = m.EmployeeID




SELF JOIN
                                By Naji El Kotob {naji@dotnetheroes.com}
SELECT    Products.ProductName,
 Suppliers.CompanyName
FROM       Products CROSS JOIN Suppliers




CROSS JOIN
                           By Naji El Kotob {naji@dotnetheroes.com}
QnA?
       By Naji El Kotob {naji@dotnetheroes.com}
Microsoft Reporting
                  By Naji El Kotob {naji@dotnetheroes.com}
Image source: http://msdn.microsoft.com/en-us/library/ms173767.aspx




                                                         By Naji El Kotob {naji@dotnetheroes.com}
By Naji El Kotob {naji@dotnetheroes.com}
By Naji El Kotob {naji@dotnetheroes.com}
By Naji El Kotob {naji@dotnetheroes.com}
By Naji El Kotob {naji@dotnetheroes.com}
 Reports (Manager)
 ReportServer (Viewer)




SQL Server Reporting Services
                          By Naji El Kotob {naji@dotnetheroes.com}
   rs:Command
   rs:Format
   rc:NoHeader
   rc:Parameters
   ParametersName
   …




URL Parameters
                     By Naji El Kotob {naji@dotnetheroes.com}
   http://websiteowner.info/articles/cgi/databasetypes.asp
   http://www.progress.com/psm/objectstore/object-oriented-
    database-management-system/index.ssp
   http://www.bluerwhite.org/btree
   http://www.informit.com/articles/article.aspx?p=608628&seq
    Num=3
   http://en.wikipedia.org/wiki/B-tree
   http://slady.net/java/bt/view.php?w=600&h=450
   http://msdn.microsoft.com/en-us/library/ms177443.aspx
   http://msdn.microsoft.com/en-us/library/ms179355.aspx
   http://www.databasejournal.com/features/mssql/article.php/1
    439801/Optimizing-SQL-Server-Performance-by-Using-File-
    and-Filegroups.htm
   http://riki-lb1.vet.ohio-
    state.edu/mqlin/computec/tutorials/SQLTutorial.htm



Resources and References (Cont’d)
                                      By Naji El Kotob {naji@dotnetheroes.com}
   http://msdn.microsoft.com/en-us/library/ms180892(SQL.90).aspx
   http://support.microsoft.com/kb/873235
   http://msdn.microsoft.com/en-us/library/ms189573(SQL.90).aspx
   http://www.smart-soft.co.uk/Oracle/advanced-sql-tutorial.htm
   http://infogoal.com/sql/sql-select.htm *
   http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-
    0356-46A0-8DA2-EEBC53A68034&displaylang=en
   http://www.w3schools.com/sql/sql_tryit.asp
   http://www.databasejournal.com/features/mssql/article.php/3464481/Usi
    ng-a-Subquery-in-a-T-SQL-Statement.htm *
   http://www.sql-tutorial.com/sql-aggregate-functions-sql-tutorial *
   http://www.sql-tutorial.com/sql-introduction-sql-tutorial *
   http://www.onlamp.com/pub/a/onlamp/2001/03/20/aboutSQL.html
   http://databases.about.com/od/specificproducts/a/normalization.htm
   http://en.wikipedia.org/wiki/Database_normalization
   http://www.datamodel.org/NormalizationRules.html




Resources and References (Cont’d)
                                            By Naji El Kotob {naji@dotnetheroes.com}
 http://www.microsoft.com/sqlserver/2008/en/us/wp-sql-2008-reporting-
  services.aspx
 http://en.wikipedia.org/wiki/RAID
 http://www.smartcomputing.com/editorial/article.asp?article=articles%2F
  2006%2Fs1705%2F51s05%2F51s05.asp




Resources and References
                                            By Naji El Kotob {naji@dotnetheroes.com}
www.formatech.com.lb

Please send your feedback
and suggestions to:
naji@dotnetheroes.com



Thank You 
                       By Naji El Kotob {naji@dotnetheroes.com}

Weitere ähnliche Inhalte

Was ist angesagt?

SQL Server 2012 - FileTables
SQL Server 2012 - FileTables SQL Server 2012 - FileTables
SQL Server 2012 - FileTables Sperasoft
 
DB2 and storage management
DB2 and storage managementDB2 and storage management
DB2 and storage managementCraig Mullins
 
Windows Server 2012 r2
Windows Server 2012 r2Windows Server 2012 r2
Windows Server 2012 r2Khalid Hussain
 
Windows 2008 basics
Windows 2008 basicsWindows 2008 basics
Windows 2008 basicsanilinvns
 
Sql Health in a SharePoint environment
Sql Health in a SharePoint environmentSql Health in a SharePoint environment
Sql Health in a SharePoint environmentEnrique Lima
 
SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentationwebhostingguy
 
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanMicrosoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanDavid J Rosenthal
 
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
44spotkaniePLSSUGWRO_CoNowegowKrainieChmurTobias Koprowski
 
New File Server Features Of Windows Server 2008
New File Server Features Of Windows Server 2008New File Server Features Of Windows Server 2008
New File Server Features Of Windows Server 2008Microsoft TechNet
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 ManagementHi-Techpoint
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLA Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLEDB
 
Database Tendency
Database TendencyDatabase Tendency
Database Tendencygrandis_au
 
Silicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your databaseSilicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your databaseSpeedment, Inc.
 
AD116 XPages Extension Library: Making Application Development Even Easier
AD116 XPages Extension Library: Making Application Development Even EasierAD116 XPages Extension Library: Making Application Development Even Easier
AD116 XPages Extension Library: Making Application Development Even Easierpdhannan
 
Solving the DB2 LUW Administration Dilemma
Solving the DB2 LUW Administration DilemmaSolving the DB2 LUW Administration Dilemma
Solving the DB2 LUW Administration DilemmaRandy Goering
 
Upgrading AD from Windows Server 2003 to Windows Server 2008 R2
Upgrading AD from Windows Server 2003 to Windows Server 2008 R2Upgrading AD from Windows Server 2003 to Windows Server 2008 R2
Upgrading AD from Windows Server 2003 to Windows Server 2008 R2Amit Gatenyo
 
Windows Server 2008 R2
Windows Server 2008 R2Windows Server 2008 R2
Windows Server 2008 R2Rishu Mehra
 

Was ist angesagt? (20)

SQL Server 2012 - FileTables
SQL Server 2012 - FileTables SQL Server 2012 - FileTables
SQL Server 2012 - FileTables
 
DB2 and storage management
DB2 and storage managementDB2 and storage management
DB2 and storage management
 
Windows Server 2012 r2
Windows Server 2012 r2Windows Server 2012 r2
Windows Server 2012 r2
 
Windows server
Windows serverWindows server
Windows server
 
Windows 2008 basics
Windows 2008 basicsWindows 2008 basics
Windows 2008 basics
 
Sql Health in a SharePoint environment
Sql Health in a SharePoint environmentSql Health in a SharePoint environment
Sql Health in a SharePoint environment
 
SQL Server Cluster Presentation
SQL Server Cluster PresentationSQL Server Cluster Presentation
SQL Server Cluster Presentation
 
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanMicrosoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
 
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
44spotkaniePLSSUGWRO_CoNowegowKrainieChmur
 
New File Server Features Of Windows Server 2008
New File Server Features Of Windows Server 2008New File Server Features Of Windows Server 2008
New File Server Features Of Windows Server 2008
 
Data In Cloud
Data In CloudData In Cloud
Data In Cloud
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
SQL Azure for ITPros
SQL Azure for ITProsSQL Azure for ITPros
SQL Azure for ITPros
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLA Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
 
Database Tendency
Database TendencyDatabase Tendency
Database Tendency
 
Silicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your databaseSilicon Valley JUG - How to generate customized java 8 code from your database
Silicon Valley JUG - How to generate customized java 8 code from your database
 
AD116 XPages Extension Library: Making Application Development Even Easier
AD116 XPages Extension Library: Making Application Development Even EasierAD116 XPages Extension Library: Making Application Development Even Easier
AD116 XPages Extension Library: Making Application Development Even Easier
 
Solving the DB2 LUW Administration Dilemma
Solving the DB2 LUW Administration DilemmaSolving the DB2 LUW Administration Dilemma
Solving the DB2 LUW Administration Dilemma
 
Upgrading AD from Windows Server 2003 to Windows Server 2008 R2
Upgrading AD from Windows Server 2003 to Windows Server 2008 R2Upgrading AD from Windows Server 2003 to Windows Server 2008 R2
Upgrading AD from Windows Server 2003 to Windows Server 2008 R2
 
Windows Server 2008 R2
Windows Server 2008 R2Windows Server 2008 R2
Windows Server 2008 R2
 

Andere mochten auch

Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentationkaashiv1
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black BookLiquidHub
 
Biml for Beginners: Speed up your SSIS development (SQLBits XV)
Biml for Beginners: Speed up your SSIS development (SQLBits XV)Biml for Beginners: Speed up your SSIS development (SQLBits XV)
Biml for Beginners: Speed up your SSIS development (SQLBits XV)Cathrine Wilhelmsen
 
Advanced SQL Webinar
Advanced SQL WebinarAdvanced SQL Webinar
Advanced SQL WebinarRam Kedem
 
3963066 pl-sql-notes-only
3963066 pl-sql-notes-only3963066 pl-sql-notes-only
3963066 pl-sql-notes-onlyAshwin Kumar
 
Sql server 2008 interview questions answers
Sql server 2008 interview questions answersSql server 2008 interview questions answers
Sql server 2008 interview questions answersJitendra Gangwar
 
The java interview questions ebook - confused coders
The java interview questions ebook -  confused codersThe java interview questions ebook -  confused coders
The java interview questions ebook - confused codersYash Sharma
 
SSIS Basic Data Flow
SSIS Basic Data FlowSSIS Basic Data Flow
SSIS Basic Data FlowRam Kedem
 
Ssrs introduction session 1
Ssrs introduction session 1Ssrs introduction session 1
Ssrs introduction session 1Muthuvel P
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answerssheibansari
 
MS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningMS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningDataminingTools Inc
 
Sql server-integration-services-ssis-step-by-step-sample-chapters
Sql server-integration-services-ssis-step-by-step-sample-chaptersSql server-integration-services-ssis-step-by-step-sample-chapters
Sql server-integration-services-ssis-step-by-step-sample-chaptersNadinKa Karimou
 
SQL Server Integration Services
SQL Server Integration ServicesSQL Server Integration Services
SQL Server Integration ServicesRobert MacLean
 
Sql queries interview questions
Sql queries interview questionsSql queries interview questions
Sql queries interview questionsPyadav010186
 
Book HH - SQL MATERIAL
Book   HH - SQL MATERIALBook   HH - SQL MATERIAL
Book HH - SQL MATERIALSatya Harish
 
Top 100 SQL Interview Questions and Answers
Top 100 SQL Interview Questions and AnswersTop 100 SQL Interview Questions and Answers
Top 100 SQL Interview Questions and Answersiimjobs and hirist
 

Andere mochten auch (20)

Kaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions PresentationKaashiv SQL Server Interview Questions Presentation
Kaashiv SQL Server Interview Questions Presentation
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black Book
 
Biml for Beginners: Speed up your SSIS development (SQLBits XV)
Biml for Beginners: Speed up your SSIS development (SQLBits XV)Biml for Beginners: Speed up your SSIS development (SQLBits XV)
Biml for Beginners: Speed up your SSIS development (SQLBits XV)
 
Advanced SQL Webinar
Advanced SQL WebinarAdvanced SQL Webinar
Advanced SQL Webinar
 
3963066 pl-sql-notes-only
3963066 pl-sql-notes-only3963066 pl-sql-notes-only
3963066 pl-sql-notes-only
 
Sql server 2008 interview questions answers
Sql server 2008 interview questions answersSql server 2008 interview questions answers
Sql server 2008 interview questions answers
 
The java interview questions ebook - confused coders
The java interview questions ebook -  confused codersThe java interview questions ebook -  confused coders
The java interview questions ebook - confused coders
 
Ssn0020 ssis 2012 for beginners
Ssn0020   ssis 2012 for beginnersSsn0020   ssis 2012 for beginners
Ssn0020 ssis 2012 for beginners
 
SSIS Basic Data Flow
SSIS Basic Data FlowSSIS Basic Data Flow
SSIS Basic Data Flow
 
Ssrs introduction session 1
Ssrs introduction session 1Ssrs introduction session 1
Ssrs introduction session 1
 
Sql interview questions and answers
Sql interview questions and  answersSql interview questions and  answers
Sql interview questions and answers
 
MS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data miningMS SQL SERVER: SSIS and data mining
MS SQL SERVER: SSIS and data mining
 
MSBI-SSRS PPT
MSBI-SSRS PPTMSBI-SSRS PPT
MSBI-SSRS PPT
 
SSIS Presentation
SSIS PresentationSSIS Presentation
SSIS Presentation
 
Sql server-integration-services-ssis-step-by-step-sample-chapters
Sql server-integration-services-ssis-step-by-step-sample-chaptersSql server-integration-services-ssis-step-by-step-sample-chapters
Sql server-integration-services-ssis-step-by-step-sample-chapters
 
SQL Server Integration Services
SQL Server Integration ServicesSQL Server Integration Services
SQL Server Integration Services
 
Dbms lab questions
Dbms lab questionsDbms lab questions
Dbms lab questions
 
Sql queries interview questions
Sql queries interview questionsSql queries interview questions
Sql queries interview questions
 
Book HH - SQL MATERIAL
Book   HH - SQL MATERIALBook   HH - SQL MATERIAL
Book HH - SQL MATERIAL
 
Top 100 SQL Interview Questions and Answers
Top 100 SQL Interview Questions and AnswersTop 100 SQL Interview Questions and Answers
Top 100 SQL Interview Questions and Answers
 

Ähnlich wie Practical MS SQL Introduction

Asp.net Programming Training (Web design, Web development)
Asp.net Programming Training (Web design, Web  development)Asp.net Programming Training (Web design, Web  development)
Asp.net Programming Training (Web design, Web development)Moutasm Tamimi
 
SQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George GrammatikosSQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George GrammatikosGeorge Grammatikos
 
MongoDB NoSQL database a deep dive -MyWhitePaper
MongoDB  NoSQL database a deep dive -MyWhitePaperMongoDB  NoSQL database a deep dive -MyWhitePaper
MongoDB NoSQL database a deep dive -MyWhitePaperRajesh Kumar
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMohan Rathour
 
Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.Serhii Kartashov
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)Varish Bajaj
 
nosql [Autosaved].pptx
nosql [Autosaved].pptxnosql [Autosaved].pptx
nosql [Autosaved].pptxIndrani Sen
 
An Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignAn Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignBlue Elephant Consulting
 
SQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptxSQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptxC3MohdArshAlam18
 
1. introduction to no sql
1. introduction to no sql1. introduction to no sql
1. introduction to no sqlAnuja Gunale
 
Nosql Introduction
Nosql IntroductionNosql Introduction
Nosql IntroductionAnju Singh
 
The Rise of Nosql Databases
The Rise of Nosql DatabasesThe Rise of Nosql Databases
The Rise of Nosql DatabasesJAMES NGONDO
 

Ähnlich wie Practical MS SQL Introduction (20)

Asp.net Programming Training (Web design, Web development)
Asp.net Programming Training (Web design, Web  development)Asp.net Programming Training (Web design, Web  development)
Asp.net Programming Training (Web design, Web development)
 
No Sql Databases
No Sql DatabasesNo Sql Databases
No Sql Databases
 
MongoDB-SESION01
MongoDB-SESION01MongoDB-SESION01
MongoDB-SESION01
 
SQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George GrammatikosSQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George Grammatikos
 
MongoDB NoSQL database a deep dive -MyWhitePaper
MongoDB  NoSQL database a deep dive -MyWhitePaperMongoDB  NoSQL database a deep dive -MyWhitePaper
MongoDB NoSQL database a deep dive -MyWhitePaper
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorial
 
Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.Testing database content with DBUnit. My experience.
Testing database content with DBUnit. My experience.
 
Project seminar
Project seminarProject seminar
Project seminar
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)
 
Database Concepts
Database ConceptsDatabase Concepts
Database Concepts
 
Mongo db
Mongo dbMongo db
Mongo db
 
nosql [Autosaved].pptx
nosql [Autosaved].pptxnosql [Autosaved].pptx
nosql [Autosaved].pptx
 
An Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignAn Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed Design
 
SQL ARPIT YADAV.pptx
SQL ARPIT YADAV.pptxSQL ARPIT YADAV.pptx
SQL ARPIT YADAV.pptx
 
SQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptxSQL_Introduction_Updated.pptx
SQL_Introduction_Updated.pptx
 
1. introduction to no sql
1. introduction to no sql1. introduction to no sql
1. introduction to no sql
 
Nosql Introduction
Nosql IntroductionNosql Introduction
Nosql Introduction
 
Database System
Database SystemDatabase System
Database System
 
MongoDB
MongoDBMongoDB
MongoDB
 
The Rise of Nosql Databases
The Rise of Nosql DatabasesThe Rise of Nosql Databases
The Rise of Nosql Databases
 

Mehr von Naji El Kotob

SSRS Report with Parameters and Data Filtration
SSRS Report with Parameters and Data FiltrationSSRS Report with Parameters and Data Filtration
SSRS Report with Parameters and Data FiltrationNaji El Kotob
 
Odoo - Educational Account for Students and Teachers Ver. 2.0
Odoo - Educational Account for Students and Teachers Ver. 2.0Odoo - Educational Account for Students and Teachers Ver. 2.0
Odoo - Educational Account for Students and Teachers Ver. 2.0Naji El Kotob
 
Google search - Tips and Tricks
Google search - Tips and TricksGoogle search - Tips and Tricks
Google search - Tips and TricksNaji El Kotob
 
Microsoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and FilegroupsMicrosoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and FilegroupsNaji El Kotob
 
tempdb and Performance Keys
tempdb and Performance Keystempdb and Performance Keys
tempdb and Performance KeysNaji El Kotob
 
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3Naji El Kotob
 
T-SQL Data Types (Quick Overview)
T-SQL Data Types (Quick Overview)T-SQL Data Types (Quick Overview)
T-SQL Data Types (Quick Overview)Naji El Kotob
 
Robots and-sitemap - Version 1.0.1
Robots and-sitemap - Version 1.0.1Robots and-sitemap - Version 1.0.1
Robots and-sitemap - Version 1.0.1Naji El Kotob
 
MVC and Razor - Doc. v1.2
MVC and Razor - Doc. v1.2MVC and Razor - Doc. v1.2
MVC and Razor - Doc. v1.2Naji El Kotob
 

Mehr von Naji El Kotob (9)

SSRS Report with Parameters and Data Filtration
SSRS Report with Parameters and Data FiltrationSSRS Report with Parameters and Data Filtration
SSRS Report with Parameters and Data Filtration
 
Odoo - Educational Account for Students and Teachers Ver. 2.0
Odoo - Educational Account for Students and Teachers Ver. 2.0Odoo - Educational Account for Students and Teachers Ver. 2.0
Odoo - Educational Account for Students and Teachers Ver. 2.0
 
Google search - Tips and Tricks
Google search - Tips and TricksGoogle search - Tips and Tricks
Google search - Tips and Tricks
 
Microsoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and FilegroupsMicrosoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and Filegroups
 
tempdb and Performance Keys
tempdb and Performance Keystempdb and Performance Keys
tempdb and Performance Keys
 
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
Microsoft SQL Server 2012 Components and Tools (Quick Overview) - Rev 1.3
 
T-SQL Data Types (Quick Overview)
T-SQL Data Types (Quick Overview)T-SQL Data Types (Quick Overview)
T-SQL Data Types (Quick Overview)
 
Robots and-sitemap - Version 1.0.1
Robots and-sitemap - Version 1.0.1Robots and-sitemap - Version 1.0.1
Robots and-sitemap - Version 1.0.1
 
MVC and Razor - Doc. v1.2
MVC and Razor - Doc. v1.2MVC and Razor - Doc. v1.2
MVC and Razor - Doc. v1.2
 

Kürzlich hochgeladen

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 

Kürzlich hochgeladen (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

Practical MS SQL Introduction

  • 1. www.formatech.com.lb Microsoft SQL Server Design, Performance and Reporting Version 1.4 - 08 . By Naji El Kotob. Certified Trainer Information Technology Consultant _______________________________ naji@dotnetheroes.com
  • 2. Database ◦ Definitions and Fundamentals ◦ Relational Database Objects ◦ B-Tree  Microsoft SQL Server ◦ Design and Architecture  Database Design ◦ Relationships ◦ Database Normalization  SQL – Structured Query Language ◦ DML ◦ JOINS  Inner, Outer, Full, Cross and self  Optimization and Performance Tips  Microsoft SQL Server Development Tools ◦ Business Intelligence Development Studio  Resources and References Outlines By Naji El Kotob {naji@dotnetheroes.com}
  • 3. Definitions and Fundamentals By Naji El Kotob {naji@dotnetheroes.com}
  • 4. An organized collection of data. Database? By Naji El Kotob {naji@dotnetheroes.com}
  • 5. DEMO ◦ [Real Case Studies] Database? By Naji El Kotob {naji@dotnetheroes.com}
  • 6. There are two main types of database; flat-file and relational. Database Types By Naji El Kotob {naji@dotnetheroes.com}
  • 7. RDBMS? By Naji El Kotob {naji@dotnetheroes.com}
  • 8. The "relation" comes from the fact that the tables can be linked to each other. Relational By Naji El Kotob {naji@dotnetheroes.com}
  • 9. DBMS is the software that controls the organization, storage, retrieval, security and integrity of data in a database. DBMS [Database Management System] By Naji El Kotob {naji@dotnetheroes.com}
  • 10. A type of database management system (DBMS) that stores data in the form of related tables. Source: http://www.webopedia.com RDBMS By Naji El Kotob {naji@dotnetheroes.com}
  • 11. One major advantage of the relational model is that, if a database is designed efficiently, there should be NO duplication of any data; helping to maintain database integrity. Customers Orders Relational Model By Naji El Kotob {naji@dotnetheroes.com}
  • 12. Relational Database Objects By Naji El Kotob {naji@dotnetheroes.com}
  • 13. Database objects are tables, indexes, views, triggers, procedures… Database Objects By Naji El Kotob {naji@dotnetheroes.com}
  • 14. Tables are the basic component of a relational database (RDB). It has a number of rows and columns, similar to a spreadsheet. Database Tables By Naji El Kotob {naji@dotnetheroes.com}
  • 15. A database index is a data structure that improves the speed of operations in a table.  Indexes can be created using one or more columns, providing the basis for both rapid random lookups and efficient ordering of access to records. Database Index By Naji El Kotob {naji@dotnetheroes.com}
  • 16. Database Index: DEMO By Naji El Kotob {naji@dotnetheroes.com}
  • 17. B-Tree? By Naji El Kotob {naji@dotnetheroes.com}
  • 18. Image source: http://20bits.com/articles/interview-questions-database-indexes/ A B-tree consists of a root node that contains a single page of data, zero or more intermediate levels What is a b-tree? containing additional pages, and a leaf level. By Naji El Kotob {naji@dotnetheroes.com}
  • 19. Clustered index Image source: http://msdn.microsoft.com/en-us/library/ms177443.aspx By Naji El Kotob {naji@dotnetheroes.com}
  • 20. Non-clustered index Image source: http://msdn.microsoft.com/en-us/library/ms177484.aspx By Naji El Kotob {naji@dotnetheroes.com}
  • 21. B-Tree: DEMO By Naji El Kotob {naji@dotnetheroes.com}
  • 22. QnA? By Naji El Kotob {naji@dotnetheroes.com}
  • 23. Microsoft SQL Server By Naji El Kotob {naji@dotnetheroes.com}
  • 24. Image source: http://www.vovisoft.com/SQLServer2000/images/DatabaseStorageAllocation.gif (Nov. 2008) MSSQL: Design and Architecture By Naji El Kotob {naji@dotnetheroes.com}
  • 25. Primary Filegroup Data Log .mdf .ldf MSSQL: Design and Architecture By Naji El Kotob {naji@dotnetheroes.com}
  • 26. Primary Filegroup Data .mdf New Filegroup Data Log Data .ndf .ldf .ndf MSSQL: Design and Architecture (Cont’d) By Naji El Kotob {naji@dotnetheroes.com}
  • 27. SQL Server uses a write-ahead log (WAL), which guarantees that no data modifications are written to disk before the associated log record is written to disk. ◦ Source: http://msdn.microsoft.com/en-us/library/ms186259(SQL.90).aspx Log Files: WAL By Naji El Kotob {naji@dotnetheroes.com}
  • 28. 1 Data modification is sent by application Modification is recorded 3 in transaction log on disk Buffer Cache Disk Disk Data pages are located in, 2 or read into, buffer cache and modified Checkpoint writes 4 committed transactions to database Log Files: Transaction Logging Image source: http://www.vovisoft.com/SQLServer2000/images/HowTransactionLogWorks.gif (Nov. 2008) By Naji El Kotob {naji@dotnetheroes.com}
  • 29. Database Design By Naji El Kotob {naji@dotnetheroes.com}
  • 30. Relationships By Naji El Kotob {naji@dotnetheroes.com}
  • 31. Unique Key: ◦ It creates non-clustered index by default ◦ It allows only one null value ◦ Multiple Key(s) per table  Primary Key: ◦ It creates clustered index by default ◦ It doesn't allow nulls ◦ One key per table  Foreign Key ◦ A key used in one table to represent the value of a primary key in a related table. While primary keys must contain unique values, foreign keys may have duplicates. Tables: Keys By Naji El Kotob {naji@dotnetheroes.com}
  • 32. Tables Keys: DEMO By Naji El Kotob {naji@dotnetheroes.com}
  • 33. One record in Table-1 has one and only one matching record in Table-2. Relationships: One-to-One By Naji El Kotob {naji@dotnetheroes.com}
  • 34. One record in Table-1 can have multiple matching records in Tabl-2, but only one in Table-1. Relationships: One-to-Many By Naji El Kotob {naji@dotnetheroes.com}
  • 35. Each record in Table-1 and Table-2 can have multiple matching records in either table. Relationships: Many-to-Many By Naji El Kotob {naji@dotnetheroes.com}
  • 36. Relationships: DEMO By Naji El Kotob {naji@dotnetheroes.com}
  • 37. Normalization By Naji El Kotob {naji@dotnetheroes.com}
  • 38. Normalization is the process of efficiently organizing data in a database. ◦ Eliminating redundant data (e.g. storing the same data in more than one table) ◦ Ensuring data dependencies make sense (only storing related data in a table). What is Normalization? By Naji El Kotob {naji@dotnetheroes.com}
  • 39. Project Project Employee Employee Department ID Name ID Name 123 Payroll 5 Naji IT 8 Dani Finance 134 CRM 7 Sandra IT 5 Naji Marketing 2 Nada HR Repeating groups of similar data ZERO Normal Form By Naji El Kotob {naji@dotnetheroes.com}
  • 40. Project Project Employee Employee Departmen ID Name ID Name t 123 Payroll 5 Naji IT 8 Dani Finance 134 CRM 7 Sandra IT 5 Naji Marketing 2 Nada HR NF1: Project Project Employee Employee Departme A row of data cannot ID Name ID Name nt contain repeating 123 Payroll 5 Naji IT groups of similar data (atomicity) 123 Payroll 8 Dani Finance 134 CRM 7 Sandra IT Each row of data must have a unique identifier 134 CRM 5 Naji IT (or Primary Key). 134 CRM 2 Nada HR First Normal Form By Naji El Kotob {naji@dotnetheroes.com}
  • 41. Project Project Employee Employee Department ID Name ID Name 123 Payroll 5 Naji IT 123 Payroll 8 Dani Finance 134 CRM 7 Sandra IT 134 CRM 5 Naji IT 134 CRM 2 Nada HR NF2: Project Project No Partial ID Name Dependencies on a 123 Payroll Employee Employee Department Concatenated Key 134 CRM ID Name 5 Naji IT 8 Dani Finance 7 Sandra IT 2 Nada HR Second Normal Form By Naji El Kotob {naji@dotnetheroes.com}
  • 42. Project Project Employee Employee Department Department column: ID Name ID Name Rely on non-key attributes 123 Payroll 5 Naji IT Can it exist independent 134 CRM 8 Dani Finance of the Employee ID column? 7 Sandra IT 2 Nada HR Project Project ID Name Employee Employee 123 Payroll ID Name 134 CRM 5 Naji 8 Dani NF3: 7 Sandra Department Department It contains no transitive ID Name 2 Nada dependencies 1 IT (No Dependencies on Non-Key Attributes). 2 Finance 3 HR Third Normal Form By Naji El Kotob {naji@dotnetheroes.com}
  • 43. Normalization: DEMO By Naji El Kotob {naji@dotnetheroes.com}
  • 44. QnA? By Naji El Kotob {naji@dotnetheroes.com}
  • 45. SQL (Structured Query Language) By Naji El Kotob {naji@dotnetheroes.com}
  • 46. SQL is a standardized query language for accessing/manipulating data and schema in relational database management systems, such as Microsoft SQL Server, Oracle, etc. SQL Data/Feedback SQL (Structured Query Language) By Naji El Kotob {naji@dotnetheroes.com}
  • 47. SQL: Select Statement By Naji El Kotob {naji@dotnetheroes.com}
  • 48. Northwind Sample Database SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE‘ Customers Shippers Suppliers Orders Products Order Details CustomerCustomerDemo CustomerDemographics Region Territories EmployeeTerritories sysdiagrams Employees Categories Source: http://www.microsoft.com/downloads/details.aspx?Fam ilyID=06616212-0356-46A0-8DA2- EEBC53A68034&displaylang=en By Naji El Kotob {naji@dotnetheroes.com}
  • 49. The SQL SELECT statement is the SQL command that retrieves data from an SQL database. This operation is also known as a query and is the key to the use of SQL for analysis and reporting. SQL: Select Statement By Naji El Kotob {naji@dotnetheroes.com}
  • 50. Let’s experience it ;) SQL: Select Statement By Naji El Kotob {naji@dotnetheroes.com}
  • 51. SELECT * FROM Customers SQL: Select Statement By Naji El Kotob {naji@dotnetheroes.com}
  • 52. SELECT ContactName + ' (' + CompanyName + ')' FROM Customers SQL: Select Statement (Concat) By Naji El Kotob {naji@dotnetheroes.com}
  • 53. SELECT SUBSTRING(CustomerID, 1, 3) + ' - ' + CompanyName FROM Customers SQL: Select Statement (Substring) By Naji El Kotob {naji@dotnetheroes.com}
  • 54. SELECT DISTINCT Country FROM Customers SQL: Select Statement (DISTINCT) By Naji El Kotob {naji@dotnetheroes.com}
  • 55. SELECT DISTINCT Country FROM Customers Order by Country ASC -- or DESC SQL: Select Statement (ORDER BY) By Naji El Kotob {naji@dotnetheroes.com}
  • 56. SELECT OrderID, ProductID, (UnitPrice * Quantity * (1 - Discount)) AS SubTotal FROM [Order Details] SQL: Select Statement (Expression) By Naji El Kotob {naji@dotnetheroes.com}
  • 57. SELECT ORDERID, SUM((UnitPrice * Quantity * (1 - Discount))) AS SubTotal FROM [Order Details] GROUP BY ORDERID SQL: Select Statement (Aggregate Functions) By Naji El Kotob {naji@dotnetheroes.com}
  • 58. SELECT o.CustomerID, (SELECT SUM((UnitPrice * Quantity * (1 - Discount))) AS SubTotal FROM [Order Details] WHERE OrderID = o.OrderID) FROM Orders o SQL: Select Statement (Aggregate Functions + Subquery) By Naji El Kotob {naji@dotnetheroes.com}
  • 59. SELECT ORDERID, ROUND(SUM((UnitPrice * Quantity * (1 - Discount))), 2) AS SubTotal FROM [Order Details] GROUP BY ORDERID HAVING SUM(UnitPrice * Quantity * (1 - Discount)) > 500 SQL: Select Statement (Aggregate Functions + Filtration) By Naji El Kotob {naji@dotnetheroes.com}
  • 60. QnA? By Naji El Kotob {naji@dotnetheroes.com}
  • 61. = Equal ◦ <> Not Equal ◦ > Greater Than ◦ < Less Than ◦ >= Greater Than Or Equal ◦ <= Less Than Or Equal ◦ _______________________ ◦ TOP # [PERCENT] ◦ BETWEEN ◦ LIKE %, _, [], [^] ◦ IN ◦ IS NULL / IS NOT NULL ◦ NOT, AND, OR ◦ … SQL: Select Statement: WHERE By Naji El Kotob {naji@dotnetheroes.com}
  • 62. DML: Select, Insert, Update and Delete By Naji El Kotob {naji@dotnetheroes.com}
  • 63. SELECT * FROM Employees  INSERT INTO Employees(FirstName, LastName) VALUES ('Naji','El Kotob')  UPDATE Employees SET City='Beirut', Country='Lebanon' WHERE EmployeeID = 10  DELETE FROM Employees WHERE EmployeeID = 10 DML (Data Manipulation Language) DML By Naji El Kotob {naji@dotnetheroes.com}
  • 64. DML: DEMO By Naji El Kotob {naji@dotnetheroes.com}
  • 65. SQL: Select Statement: JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 66. The SQL join command is used to join two or more tables. SQL: Select Statement: JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 67.  JOIN match in both tables  LEFT JOIN match in the right table  RIGHT JOIN match in the left table  FULL JOIN match in one of the tables  CROSS JOIN Cartesian Product - combines two tables by generating all possible SQL: Select Statement: JOINS By Naji El Kotob {naji@dotnetheroes.com}
  • 68. What’s the name of the top 5 customers with their order value and order date? INNER JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 69. SELECT TOP 5 C.CustomerID, C.CompanyName, O.OrderDate, ROUND(SUM((OD.UnitPrice * OD.Quantity * (1 - OD.Discount))), 2) AS SubTotal FROM Customers C INNER JOIN Orders O ON C.CustomerID = O.CustomerID INNER JOIN [Order Details] OD ON O.OrderID = OD.OrderID GROUP BY C.CustomerID, C.CompanyName, O.OrderDate ORDER BY SubTotal DESC INNER JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 70. Generate a list of customers with the number of orders?  Generate a list of all the customers with the number orders?  Generate a list of employees and their managers? JOINS: DEMO By Naji El Kotob {naji@dotnetheroes.com}
  • 71. SELECT Customers.CompanyName, COUNT(Orders.OrderID) AS [Number of Orders] FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID GROUP BY Customers.CompanyName ORDER BY Customers.CompanyName INNER JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 72. SELECT Customers.CompanyName, COUNT(Orders.OrderID) AS [Number of Orders] FROM Customers LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID GROUP BY Customers.CompanyName ORDER BY [Number of Orders] DESC LEFT JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 73. SELECT e.FirstName + ' ' + e.LastName AS 'Employee Name', m.FirstName + ' ' + m.LastName AS 'Manager Name' FROM Employees AS e LEFT OUTER JOIN Employees AS m ON e.ReportsTo = m.EmployeeID SELF JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 74. SELECT Products.ProductName, Suppliers.CompanyName FROM Products CROSS JOIN Suppliers CROSS JOIN By Naji El Kotob {naji@dotnetheroes.com}
  • 75. QnA? By Naji El Kotob {naji@dotnetheroes.com}
  • 76. Microsoft Reporting By Naji El Kotob {naji@dotnetheroes.com}
  • 78. By Naji El Kotob {naji@dotnetheroes.com}
  • 79. By Naji El Kotob {naji@dotnetheroes.com}
  • 80. By Naji El Kotob {naji@dotnetheroes.com}
  • 81. By Naji El Kotob {naji@dotnetheroes.com}
  • 82.  Reports (Manager)  ReportServer (Viewer) SQL Server Reporting Services By Naji El Kotob {naji@dotnetheroes.com}
  • 83. rs:Command  rs:Format  rc:NoHeader  rc:Parameters  ParametersName  … URL Parameters By Naji El Kotob {naji@dotnetheroes.com}
  • 84. http://websiteowner.info/articles/cgi/databasetypes.asp  http://www.progress.com/psm/objectstore/object-oriented- database-management-system/index.ssp  http://www.bluerwhite.org/btree  http://www.informit.com/articles/article.aspx?p=608628&seq Num=3  http://en.wikipedia.org/wiki/B-tree  http://slady.net/java/bt/view.php?w=600&h=450  http://msdn.microsoft.com/en-us/library/ms177443.aspx  http://msdn.microsoft.com/en-us/library/ms179355.aspx  http://www.databasejournal.com/features/mssql/article.php/1 439801/Optimizing-SQL-Server-Performance-by-Using-File- and-Filegroups.htm  http://riki-lb1.vet.ohio- state.edu/mqlin/computec/tutorials/SQLTutorial.htm Resources and References (Cont’d) By Naji El Kotob {naji@dotnetheroes.com}
  • 85. http://msdn.microsoft.com/en-us/library/ms180892(SQL.90).aspx  http://support.microsoft.com/kb/873235  http://msdn.microsoft.com/en-us/library/ms189573(SQL.90).aspx  http://www.smart-soft.co.uk/Oracle/advanced-sql-tutorial.htm  http://infogoal.com/sql/sql-select.htm *  http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212- 0356-46A0-8DA2-EEBC53A68034&displaylang=en  http://www.w3schools.com/sql/sql_tryit.asp  http://www.databasejournal.com/features/mssql/article.php/3464481/Usi ng-a-Subquery-in-a-T-SQL-Statement.htm *  http://www.sql-tutorial.com/sql-aggregate-functions-sql-tutorial *  http://www.sql-tutorial.com/sql-introduction-sql-tutorial *  http://www.onlamp.com/pub/a/onlamp/2001/03/20/aboutSQL.html  http://databases.about.com/od/specificproducts/a/normalization.htm  http://en.wikipedia.org/wiki/Database_normalization  http://www.datamodel.org/NormalizationRules.html Resources and References (Cont’d) By Naji El Kotob {naji@dotnetheroes.com}
  • 86.  http://www.microsoft.com/sqlserver/2008/en/us/wp-sql-2008-reporting- services.aspx  http://en.wikipedia.org/wiki/RAID  http://www.smartcomputing.com/editorial/article.asp?article=articles%2F 2006%2Fs1705%2F51s05%2F51s05.asp Resources and References By Naji El Kotob {naji@dotnetheroes.com}
  • 87. www.formatech.com.lb Please send your feedback and suggestions to: naji@dotnetheroes.com Thank You  By Naji El Kotob {naji@dotnetheroes.com}

Hinweis der Redaktion

  1. The flat-file style of database are ideal for small amounts of data that needs to be human readable or edited by hand…The typical flat-file database is split up using a common delimiter. http://websiteowner.info/articles/cgi/databasetypes.aspThe relational databases such as MySQL, Microsoft SQL Server and Oracle, have a much more logical structure in the way that it stores data. Tables can be used to represent real world objects, with each field acting like an attribute. For example, a table called books could have the columns title, author and ISBN, which describe the details of each book where each row in the table is a new book.A data file that is not related to or does not contain any linkages to another file. It is generally used for stand-alone lists. When files must be related (customers to orders, vendors to purchases, etc.), a relational database manager is used, not a flat file manager. Flat files can be related, but only if the applications are programmed to do so. http://www.answers.com/topic/flat-fileLike a flat file, an XML file can contain many different types of data. There are many possible ways to represent the information in a flat file using XML. For example, each field and each record could be an XML element. One advantage of using XML would be that each field is named. A disadvantage is that the file would be larger. A file containing XML is not generally called a flat file, even though it satisfies the definition. It usually is called an XML file.
  2. Relational databases do not link records together physically, but the design of the records must provide a common field, such as account number, to allow for matching. Often, the fields used for matching are indexed in order to speed up the process. http://www.answers.com/topic/dbms-technologyData SecurityData IntegrityInteractive Query
  3. Database integrity ensures that data entered into the database is accurate, valid, and consistent. Any applicable integrity constraints and data validation rules must be satisfied before permitting a change to the database.
  4. tables, indexes, views, defaults, triggers, rules constraints and procedures
  5. Balanced Tree
  6. 8-KB (Page) - 96-byte (Header) = 8096 BytesIndex = 4-Bytes =&gt; 8096/4 = 2024
  7. A heap is a table without a clustered index.
  8. http://www.scribd.com/doc/7502188/Sample-SQL-Server
  9. Each database consists of at least two files: one is a primary datafile (by default, with the .mdf extension), the other is log file(by default, with the .ldf extension).
  10. RAID 0 (striped disks) distributes data across several disks in a way that gives improved speed and full capacity, but all data on all disks will be lost if any one disk fails. RAID 5 (striped disks with parity) combines three or more disks in a way that protects data against loss of any one disk; the storage capacity of the array is reduced by one disk.
  11. How do I recover data from SQL Server&apos;s log files?There are several tools available for reviewing SQL Server log files, and restoring data that was accidentally lost or corrupted, say, after your last backup. Three such products are:      Apex SQL Log      Log Explorer      SQL Log Rescue http://sqlserver2000.databases.aspfaq.com/how-do-i-recover-data-from-sql-server-s-log-files.html
  12. Tip: Place log on separate drive for performanceIf the log contains multiple physical log files, the logical log will move through all the physical log files before it wraps back to the start of the first physical log file. http://msdn.microsoft.com/en-us/library/ms179355(SQL.90).aspxhttp://jmkehayias.blogspot.com/2008/11/database-transaction-log-part-2-how.htmlDBCC LOGINFO -- Database Consistency Checker (DBCC)
  13. http://www.onlamp.com/pub/a/onlamp/2001/03/20/aboutSQL.html?page=2
  14. The database community has developed a series of guidelines for ensuring that databases are normalized. These are referred to as normal forms and are numbered from one (the lowest form of normalization, referred to as first normal form or 1NF) through five (fifth normal form or 5NF). In practical applications, you&apos;ll often see 1NF, 2NF, and 3NF along with the occasional 4NF. Fifth normal form is very rarely seen and won&apos;t be discussed in this article. http://databases.about.com/od/specificproducts/a/normalization.htm
  15. The database community has developed a series of guidelines for ensuring that databases are normalized. These are referred to as normal forms and are numbered from one (the lowest form of normalization, referred to as first normal form or 1NF) through five (fifth normal form or 5NF). In practical applications, you&apos;ll often see 1NF, 2NF, and 3NF along with the occasional 4NF. Fifth normal form is very rarely seen and won&apos;t be discussed in this article. http://databases.about.com/od/specificproducts/a/normalization.htm
  16. Next we test each table for partial dependencies on a concatenated key. This means that for a table that has a concatenated primary key, each column in the table that is not part of the primary key must depend upon the entire concatenated key for its existence. If any column only depends upon one part of the concatenated key, then we say that the entire table has failed Second Normal Form and we must create another table to rectify the failure. http://www.phlonx.com/resources/nf3/#intro
  17. At last, we return to the problem of the repeating Department information. As our database now stands, if an employee works in more than one project then we have to input all of that employee&apos;s departmentinformation again. This is because there are columns in the Employees table that rely on &quot;non-key attributes&quot;.
  18. In 1986, ANSI approved a rudimentary version of SQL as the official standard, but most versions of SQL since then have included many extensions to the ANSI standard. In 1991, ANSI updated the standard. The new standard is known as SAG SQL. http://www.webopedia.com/TERM/S/SQL.htmlAmerican National Standards Institute. This organization is responsible for approving US standards in many areas, including computers and communications. Standards approved by this organization are often called ANSI standards (eg, ANSI C is the version of the C language approved by ANSI). www.incredible.co.za/services/glossary/glossary.asp
  19. SELECT &lt;columnlist&gt;FROM &lt;tablename&gt;* = All Columns
  20. SELECTOrd.OrderID,Ord.OrderDate,(SELECTMAX(OrdDet.UnitPrice)FROM Northwind.dbo.[Order Details] ASOrdDetWHEREOrd.OrderID=OrdDet.OrderID)ASMaxUnitPriceFROMNorthwind.dbo.OrdersASOrdA subquery is a SELECT query that returns a single value and is nested inside a SELECT, INSERT, UPDATE, or DELETE statement, or inside another subquery. A subquery can be used anywhere an expression is allowed.
  21. Round, Ceiling, Floor, … Mathematical Functions
  22. BETWEEN Between an inclusive range LIKE Search for a pattern % _ [^]IN If you know the exact value you want to return for at least one of the columns select * from orders where CustomerID like &apos;[^vtbsp]%&apos;select * from Orders WHERE OrderDate BETWEEN &apos;1996-08-01&apos; AND &apos;1996-09-02&apos;
  23. At times you may need to join two or more tables to retrieve the information you need from your database.
  24. (kär-tzhn)
  25. Including the customers with 0 orders
  26. SELECT CompanyName, ContactName, Phone, CountryFROM CustomersWHERE (Country = @CountryName)
  27. http://www.answers.com/topic/object-relational-mappinghttp://mattfleming.com/node/192http://www.mssqlcity.com/Articles/General/sql2000_locking.htmhttp://msdn.microsoft.com/en-us/library/ms190440.aspx (log)http://www.mssqlcity.com/Articles/Tuning/FileOptimTips.htm
  28. http://www.answers.com/topic/object-relational-mappinghttp://databases.about.com/od/specificproducts/a/keys.htmhttp://www.gre-sqlserver-solutions.com/Memory.html