Download presentation
Presentation is loading. Please wait.
1
Intro to SQL Databases 10985 Tom Vorves
2
Create Table Insert Into Customers (CustomerID, Name, DateOfBirth, Address) Values (1, "Joe", #2/4/2002#, "123 North Street")
3
Prep for class Log into your lab computer Go to: Open your courseware Go to: NKMZ-LICP-YPMY-HGZB PJQF-LXSD-TNGD-EJNT HSIJ-EXMQ-NNJQ-PAQG Student Primary Password Anderson, Manyvanh Zaq12345 Bravo, Ubaldo Reyes, Michael Courseware: AOBZ-QFAS-VGHN-JTPP Labs:
4
Design a Database using Normalization
Emps Emps Addresses Questions: 1a. Could this Field Contain more than 1 value? 1b. Do you Care? 2a. Could the Value in this Field Change? 2b. Do you care about History? 3. Does the value in this field come from a Finite List of Values? 4a. Could the Value in this field be blank? 4b. Do you HATE Blanks 5. Is this Data Infrequently Accessed or More Confidential? EMPID FN LN E101 Mike S E105 Tom Vorves E110 Ubaldo B ADDID EMPID ADD CITY ST ZIP Types 1 E101 Redwood H 2 E105 3 M 4 Phx V Contact Middle Name CID EMPID PHONE Type Primary 1 E101 415 C Y 2 408 H N 3 E105 480 4 602 F 5 315 W EMPID MI E105 J E110 B Departments State DEPT Desc 1 Information Tech 2 Sales and Market 3 Training and Dev 4 Maint 5 Admin 6 Sales 7 Marketing Assignment/Dept State State Name AL Alabama AZ Arizona AR WA Washington VA WY CA AID EMPID DEPT Date Comment 1 E101 2/3/2009 New Hire 2 E105 4/1/2011 3 6/15/2016 Career Change 4 E110 11/1/2016
5
SFHA One – Many Inner Join
Assignment Query Billing 5,500 People 14,000 Houses 7,500
6
Module 1: Introduction to databases
Key database concepts in the context of SQL Server 2016 Introduction to relational databases Other types of database Data analysis Database languages
7
Module 2: Data Modelling
Data modelling techniques Data modelling ANSI/SPARC database model Entity relationship modelling
8
Module 3: Normalization
Normalization and de-normalization techniques Why normalize data? Normalization terms Levels of normalization De-normalization
9
SQL Joins Select c.[Customer ID], c.[Customer Name], o.[Customer ID], o.[Order ID], o.[Order Date] From [Customer] as c Right Outer Join [Orders] as o On c.[Customer ID] = o.[Customer ID] Where c.[Customer ID] is NULL;
10
Date Queries SMS: Select [SalesOrderID], [OrderQTY], [ModifiedDate] From Sales.[SalesOrderDetail] Where [ModifiedDate] >= '6/1/2011' and [ModifiedDate] < '6/10/2011' Access: SELECT Orders.[Order ID], Orders.[Order Amount], Orders.[Ship Date] FROM Orders WHERE Orders.[Ship Date] >= #12/1/2003# And Orders.[Ship Date] < #12/11/2003#
11
Aggregate Queries Select [Title], Count([BusinessEntityID]) as [Number of Peeps] From [Person].[Person] Group By [Title] Having Count([BusinessEntityID]) < 500
12
SQL Not Equal To <>
SELECT Employee.[Employee ID], Employee.[Last Name], Employee.[First Name], Employee.[Position] FROM Employee WHERE Employee.[First Name]<>"Anne";
13
Module 4: Relationships
Relationship types and effects in database design Schema mapping Referential integrity
14
Module 5: Performance Database design and performance Indexing
Query performance Concurrency
15
Module 6: Database Objects
Commonly used database objects Tables Views Query Stored procedures (Query) Other database objects
16
Wish List Create Lists in SharePoint (Database)
Create a Drop-Down Pick-List in SharePoint Connect Lists to Access/Excel
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.