Professional Documents
Culture Documents
Database Design With SQL: My Name: Mark Robbins
Database Design With SQL: My Name: Mark Robbins
• Database Design
• Querying Data
• Introduction to programming SQL Server with T-SQL and the .NET Framework
Class work, some of which will be assessed . Gives me a chance to evaluate your
understanding (50%)
A coursework (50%):
Customer Record:
Customer Record:
Name:
J Bloggs
Customer Record:
Address:
Name: 14 Acacia Avenue, Newtown, NT1 2BJ
J Bloggs
Customer Record:
Balance:
Address: 14 Acacia Avenue, Newtown, NT1 2BJ £550
Name: J Bloggs
Sales Rep:
Giles Smooth
File
Balance:
Address: 14 Acacia Avenue, Newtown, NT1 2BJ £550
Name: J Bloggs
Sales Rep:
Address: Giles Smooth
Balance: 14 Acacia Avenue, Newtown, NT1 2BJ £550
Sales Rep:
Balance: Giles Smooth £550
Sales Rep: Giles Smooth
Headings Record
(Fields)
The Origins of DP – File-based Systems
Em p lo ye e
Raw data in separate Em p lo ye e Stu d e n t Su p p lie r
Pa yro ll
files Re c o rd s Re c o rd s Re c o rd s
Re c o rd s
Applications:
Ac a d e m ic Ac c o unts
De p ts. De p t.
User User
Interface Interface
Application Application
RDBMS
Em p lo ye e
Stud e nt
Pe rso nne l User
Interface
User
Interface
Purc ha sing
De p t. Application Sup p lie r Application De pt.
Applications:
DBMS provides DML for updating the data and DDL for
defining it ( both often implemented as point-and-click GUIs
for even more ease – as in SQL Server)
High level Query Language (SQL) and report generators reduce
the effort required to query the database. Forms generators
and other utilities reduce the work load further.
Data definitions stored separately (Data Dictionary), so when
data changes programs don’t have to.
© Mark Robbins 2007
The RDBMS
E.F. Codd’s 8 Services (+3):
AND...
9. Data Independence (Changes to data structure do not change user views)
10. Utility services (importing, monitoring, analysis etc)
11. Programming language to integrate several DB processes into one (T-SQL.
.NET languages)
Basic database concepts
DATABASE Column (Field)
Designing a Database
With the database approach, and the complex structure it allows us to give to
our data, design becomes very important:
between them.
2. Once done, we can further refine which columns belong to which tables
using a technique known as Normalisation
3. We then implement our design using a tool called SQL Server
Management Studio
SQL Server Management Studio
Management Studio –
1. Graphical Front End to DDL and DML
2. SQL Editor and Processor
3. Various Admin and Programming Functions