20761a 01
20761a 01
Relational Databases
About the Course Sample Database
Client Server Databases
• Queries
Relational Databases
• TSQL Database
Customers (Sales)
Suppliers (Production)
custid
supplierid
Employees (HR)
empid
Products (Production)
Orders (Sales)
productid
o rderid
Shippers (Sales)
CREATE
CREATE TABLE
TABLE dbo.Employees
dbo.Employees
((
EmployeeID
EmployeeID int
int PRIMARY
PRIMARY KEY,
KEY,
LastName
LastName nvarchar(25),
nvarchar(25),
FirstName
FirstName nvarchar(25)
nvarchar(25)
););
GO
GO
INSERT
INSERT INTO
INTO dbo.Employees
dbo.Employees
(EmployeeID,
(EmployeeID, LastName,
LastName, FirstName)
FirstName)
VALUES
VALUES
(121,
(121, N'O''Neil',
N'O''Neil', N'Carlene');
N'Carlene');
GO
GO
Lesson 2: SQL Server Editions and Versions
Logon Information
Virtual machine: 20761A-MIA-SQL
User name: ADVENTUREWORKS\Student
Password: Pa$$w0rd
• Review Question(s)