Databases & Microsoft SQL Server

Post on 13-Apr-2017

619 views 1 download

transcript

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

• Database & DBMS

• Relational Database Features

• Structured Query Language

• Microsoft SQL Server

• DEMO

• How to start

• Microsoft Certifications

Objectives

What are Databases?

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

Text Files & Spreadsheets

• Size

• Ease of updating

• Accuracy

• Security

• Redundancy

• Importance

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

This is the true power of Database:

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

Microsoft's Vision for Data

• 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.

Relational Database Features

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

• All your data goes into a table.

Table

Table

Table

Database

Unique Values & Primary Keys

• Unique & Not Unique

• 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.

Defining Table Relationships

1- One To Many

1- One To Many ( Cont. )

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

AuthorID 2

446

__________________________3- One To One4- None

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

Recap

SQL“ Structured Query Language ”

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.

Example “ Books Table ”

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

In Pseudo Code

In SQL

• You describe what you want

_ In English :

“ I want all books more than 40$ ”

_ In SQL :

SELECT * FROM Books WHERE ListPrice > 40

• SQL can be used to :

Create

Read

Update

Delete

• Define the databases themselves.

• 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.

SELECT

Create

Read

Update

Delete

• Define the databases themselves.

Exam

ple

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

It’s a collection of different Components

SQLServer

SQL ServerManagement

Studio

ReportingServices

SQL ServerProfiler

BusinessIntelligence

DevelopmentStudio

IntegrationServices

ConfigurationManager

AnalysisServices

BooksOnline

DEMO

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.

NASDAQ Manages over 1 Petabyte of Data with the Microsoft Platform

How to Start ???

Database Development

Data Pros ( DBA )

Microsoft SQL Server Certifications

Contact Me

eg.linkedin.com/in/mahmoudabdallah01

mahmoud.abd.allah@hotmail.com

Contact Me

eg.linkedin.com/in/mahmoudabdallah01

mahmoud.abd.allah@hotmail.com