44
• Mahmoud Abdallah Mahmoud • Head of Developer Vertical • Microsoft Tech Club Sohag University • Faculty of Engineering

Databases & Microsoft SQL Server

Embed Size (px)

Citation preview

Page 1: Databases & Microsoft SQL Server

• Mahmoud Abdallah Mahmoud• Head of Developer Vertical• Microsoft Tech Club Sohag University• Faculty of Engineering

Page 2: Databases & Microsoft SQL Server
Page 3: Databases & Microsoft SQL Server

• Database & DBMS

• Relational Database Features

• Structured Query Language

• Microsoft SQL Server

• DEMO

• How to start

• Microsoft Certifications

Objectives

Page 4: Databases & Microsoft SQL Server

What are Databases?

First, What is the problem? You have some data!!!!!

Page 5: Databases & Microsoft SQL Server

Text Files & Spreadsheets

Page 6: Databases & Microsoft SQL Server

• Size

• Ease of updating

• Accuracy

• Security

• Redundancy

• Importance

Having Data is not the problem, The problem is what comes next :

Page 7: Databases & Microsoft SQL Server

This is the true power of Database:

( It’s Invisible ) It’s the thing you can’t see

Page 8: Databases & Microsoft SQL Server

Microsoft's Vision for Data

Page 9: Databases & Microsoft SQL Server

• The database is your data & your rules about that data.

• DBMS: Software Surround, Manage & Make sure your rules are applied.

Database Database

DBMSSoftware

OtherDBMS

Database & DBMS

_ Amazon.com, eBay, Google, Bing, MVA, …. The business is the information + Great programming + Nice front end.

_ It could be a website or an phone application.

Page 10: Databases & Microsoft SQL Server
Page 11: Databases & Microsoft SQL Server

Relational Database Features

• Database is constructed of one or more, usually more tables

• All your data goes into a table.

Table

Table

Table

Database

Page 12: Databases & Microsoft SQL Server
Page 13: Databases & Microsoft SQL Server

Unique Values & Primary Keys

• Unique & Not Unique

Page 14: Databases & Microsoft SQL Server

• Primary Key _ It’s the one piece of data, that will identify one, and only one row in this table .

_ Connect your different tables together.

Page 15: Databases & Microsoft SQL Server

Defining Table Relationships

Page 16: Databases & Microsoft SQL Server

1- One To Many

Page 17: Databases & Microsoft SQL Server

1- One To Many ( Cont. )

Page 18: Databases & Microsoft SQL Server

2- Many To Many_ You can’t express it directly.

Page 19: Databases & Microsoft SQL Server

AuthorID 2

446

Page 20: Databases & Microsoft SQL Server
Page 21: Databases & Microsoft SQL Server

__________________________3- One To One4- None

Page 22: Databases & Microsoft SQL Server

1- One To Many “very common”.2- Many To Many “occasionally required”.3- One To One “not common at all”.4- None “exist”.

Recap

Page 23: Databases & Microsoft SQL Server

SQL“ Structured Query Language ”

Page 24: Databases & Microsoft SQL Server

Introduction to SQL “ Structured Query Language ”

• SQL is the common language, that lies in the heart of every RDMS.

• SQL is the language “ very focused language ”.

• SQL is a declarative query language not a procedural language,

what it means that you use SQL to describe what you want

and let the RDMS handle how that actually done.

Page 25: Databases & Microsoft SQL Server

Example “ Books Table ”

# Which books have a ListPrice more than 40$ ???

Page 26: Databases & Microsoft SQL Server

In Pseudo Code

Page 27: Databases & Microsoft SQL Server

In SQL

• You describe what you want

_ In English :

“ I want all books more than 40$ ”

_ In SQL :

SELECT * FROM Books WHERE ListPrice > 40

Page 28: Databases & Microsoft SQL Server

• SQL can be used to :

Create

Read

Update

Delete

• Define the databases themselves.

Page 29: Databases & Microsoft SQL Server

• Creating Queries in SQL

• It’s not for general programming, it’s a language focused on working with databases.

• Query: We use it to ask the database a question, and we expect a reply.

Page 30: Databases & Microsoft SQL Server

SELECT

Create

Read

Update

Delete

• Define the databases themselves.

Exam

ple

Page 31: Databases & Microsoft SQL Server

Microsoft

SQL Server

Page 32: Databases & Microsoft SQL Server

Why Microsoft SQL Server ???

• A MATURE Product_ It is been around for more than twenty years.

• MICROSOFT SQL Server_ It’s very common in a Microsoft oriented shop.

• INTEGRATION_ The integration is great with other Microsoft products things like SharePoint, ASP.NET, Silverlight or the office products like Excel.

• HOSTED SOLUTIONS_ Many web hosting companies will allow you rent and create a SQL server databases and often inexpensively when it still quite rare to find other enterprise level databases like ORACLE or IBM DB2 on offer.

• ADVANCED FEATURES_ Reporting Services

_ BIDS & Data Analysis

_ Integration services

Page 33: Databases & Microsoft SQL Server

It’s a collection of different Components

SQLServer

SQL ServerManagement

Studio

ReportingServices

SQL ServerProfiler

BusinessIntelligence

DevelopmentStudio

IntegrationServices

ConfigurationManager

AnalysisServices

BooksOnline

Page 34: Databases & Microsoft SQL Server

DEMO

Page 35: Databases & Microsoft SQL Server

NA

SDA

QNASDAQ is an American/Canadian stock exchange. It is the second-largest exchange in the

world by market capitalization, behind only the New York Stock Exchange.

Page 36: Databases & Microsoft SQL Server

NASDAQ Manages over 1 Petabyte of Data with the Microsoft Platform

Page 37: Databases & Microsoft SQL Server

How to Start ???

Page 38: Databases & Microsoft SQL Server

Database Development

Page 39: Databases & Microsoft SQL Server

Data Pros ( DBA )

Page 40: Databases & Microsoft SQL Server
Page 41: Databases & Microsoft SQL Server

Microsoft SQL Server Certifications

Page 42: Databases & Microsoft SQL Server
Page 43: Databases & Microsoft SQL Server

Contact Me

eg.linkedin.com/in/mahmoudabdallah01

[email protected]

Page 44: Databases & Microsoft SQL Server

Contact Me

eg.linkedin.com/in/mahmoudabdallah01

[email protected]