In The Name Of Allah Mohammad Ahsan [email_address] My Topic Consists Sql Server 2008 This is very small presentation of sql server Email:
What is Sql Server? SQL Stands For Structure Query Language Microsoft SQL Server is a  relational model database server   produced By   Microsoft. Its Primary   query languages   are   T-SQL   and   ANSI-SQL. SQL lets you access and manipulate  databases.   Although SQL is an  ANSI  ( American National Standards Institute ) standard, there are many different versions of the SQL language. However, to be compliant with the  ANSI  standard, they all support at least the major commands ( such as SELECT, UPDATE, DELETE, INSERT, WHERE ) in a similar manner.
R D B M S RDBMS is the basis for  SQL , and for all modern  database  systems like MS  SQL Server ,  IBM DB2 ,  Oracle, MySQL , and  Microsoft Access . RDBMS stands for Relational Database Management System The data in  RDBMS  is stored in database objects called  tables . A  table  is a collection of  related  data entries and it consists of  columns and  rows .
SQL Server 2008 R2 SQL Server 2008 R2 (formerly codenamed SQL Server " Kilimanjaro ") was announced at  TechEd  2009, and was released to manufacturing on April 21, 2010 . SQL Server 2008 R2 adds certain features to SQL Server 2008 including a  master data management  system branded as   Master Data Services , a central management of master data entities and hierarchies .
SQL Server 2008 R2 Also Multi Server Management, a centralized console to manage multiple  SQL Server 2008  instances and services including  relational databases ,  Reporting Services ,  Analysis Services  &  Integration Services . SQL Server 2008 R2 includes a number of new services, including PowerPivot  for  Excel  and  SharePoint ,  Master Data Services , StreamInsight ,  Report Builder  3.0 , Reporting Services Add-in for SharePoint, a Data-tier function in  Visual Studio  that enables packaging of tiered databases as part of an application, and a SQL Server Utility named UC ( Utility Control Point ), part of AMSM ( Application and Multi-Server Management ) that is used to manage multiple SQL Servers
Data Management Data Management deals with managing large amount of  information Which involves both the storage of information and the provision of Mechanisms  for  manipulation  of  information . Database System Database Systems evolved in the late 1960s to address common issues In applications handling large volumes of  data . Which are also data Intensive .some of these issues could be traced back to the Disadvantages of  file based system .
DBMS Database Management System A  database management system  can be defined as a collection of Related records and a set of programs that access and manipulate these Records . A  database management system  enables the user to enter, store and Manage  data . The main problem with the earlier  DBMS  packages was that the data Was stored in the flat file format. So the information about different objects was maintained separately In different  physical files .Hence the relation between these  objects If any had to be maintained in a separate  physical files .
Working in Sql Server SQL DML and DDL SQL can be divided into two parts: The Data Manipulation Language (DML) and the Data Definition Language (DDL). The query and update commands form the DML part of SQL: SELECT - extracts data from a database  UPDATE - updates data in a database  DELETE - deletes data from a database  INSERT INTO - inserts new data into a database  The DDL part of SQL permits database tables to be created or deleted. It also define indexes (keys), specify links between tables, and impose constraints between tables. The most important DDL statements in SQL are: CREATE DATABASE - creates a new database  ALTER DATABASE - modifies a database  CREATE TABLE - creates a new table  ALTER TABLE - modifies a table  DROP TABLE - deletes a table  CREATE INDEX - creates an index (search key)  DROP INDEX - deletes an index
Create Table Syntax for creating database Create database <database_name> Create table  Current_Account (Account_no char(20), Account_title varchar(30), Account_type varchar(30), Account_Balance Char(20) Now Insert Record in this Current Account table. Statement Insert into  Current_Account Values (‘account_no’,’account_title’,’account_type’,’account_bal’) Table is created
SQL Functions AVG() - Returns the average value  COUNT() - Returns the number of rows  FIRST() - Returns the first value  LAST() - Returns the last value  MAX() - Returns the largest value  MIN() - Returns the smallest value  SUM() - Returns the sum  SQL aggregate functions return a single value, calculated from values in a column. Useful aggregate functions
SQL Scalar Functions UCASE() - Converts a field to upper case  LCASE() - Converts a field to lower case  MID() - Extract characters from a text field  LEN() - Returns the length of a text field  ROUND() - Rounds a numeric field to the number of decimals specified  NOW() - Returns the current system date and time  FORMAT() - Formats how a field is to be displayed   SQL scalar functions return a single value, based on the input value. Useful scalar functions: Thanks.

Presentation1

  • 1.
    In The NameOf Allah Mohammad Ahsan [email_address] My Topic Consists Sql Server 2008 This is very small presentation of sql server Email:
  • 2.
    What is SqlServer? SQL Stands For Structure Query Language Microsoft SQL Server is a relational model database server produced By Microsoft. Its Primary query languages are T-SQL and ANSI-SQL. SQL lets you access and manipulate databases. Although SQL is an ANSI ( American National Standards Institute ) standard, there are many different versions of the SQL language. However, to be compliant with the ANSI standard, they all support at least the major commands ( such as SELECT, UPDATE, DELETE, INSERT, WHERE ) in a similar manner.
  • 3.
    R D BM S RDBMS is the basis for SQL , and for all modern database systems like MS SQL Server , IBM DB2 , Oracle, MySQL , and Microsoft Access . RDBMS stands for Relational Database Management System The data in RDBMS is stored in database objects called tables . A table is a collection of related data entries and it consists of columns and rows .
  • 4.
    SQL Server 2008R2 SQL Server 2008 R2 (formerly codenamed SQL Server &quot; Kilimanjaro &quot;) was announced at TechEd 2009, and was released to manufacturing on April 21, 2010 . SQL Server 2008 R2 adds certain features to SQL Server 2008 including a master data management system branded as Master Data Services , a central management of master data entities and hierarchies .
  • 5.
    SQL Server 2008R2 Also Multi Server Management, a centralized console to manage multiple SQL Server 2008 instances and services including relational databases , Reporting Services , Analysis Services & Integration Services . SQL Server 2008 R2 includes a number of new services, including PowerPivot for Excel and SharePoint , Master Data Services , StreamInsight , Report Builder 3.0 , Reporting Services Add-in for SharePoint, a Data-tier function in Visual Studio that enables packaging of tiered databases as part of an application, and a SQL Server Utility named UC ( Utility Control Point ), part of AMSM ( Application and Multi-Server Management ) that is used to manage multiple SQL Servers
  • 6.
    Data Management DataManagement deals with managing large amount of information Which involves both the storage of information and the provision of Mechanisms for manipulation of information . Database System Database Systems evolved in the late 1960s to address common issues In applications handling large volumes of data . Which are also data Intensive .some of these issues could be traced back to the Disadvantages of file based system .
  • 7.
    DBMS Database ManagementSystem A database management system can be defined as a collection of Related records and a set of programs that access and manipulate these Records . A database management system enables the user to enter, store and Manage data . The main problem with the earlier DBMS packages was that the data Was stored in the flat file format. So the information about different objects was maintained separately In different physical files .Hence the relation between these objects If any had to be maintained in a separate physical files .
  • 8.
    Working in SqlServer SQL DML and DDL SQL can be divided into two parts: The Data Manipulation Language (DML) and the Data Definition Language (DDL). The query and update commands form the DML part of SQL: SELECT - extracts data from a database UPDATE - updates data in a database DELETE - deletes data from a database INSERT INTO - inserts new data into a database The DDL part of SQL permits database tables to be created or deleted. It also define indexes (keys), specify links between tables, and impose constraints between tables. The most important DDL statements in SQL are: CREATE DATABASE - creates a new database ALTER DATABASE - modifies a database CREATE TABLE - creates a new table ALTER TABLE - modifies a table DROP TABLE - deletes a table CREATE INDEX - creates an index (search key) DROP INDEX - deletes an index
  • 9.
    Create Table Syntaxfor creating database Create database <database_name> Create table Current_Account (Account_no char(20), Account_title varchar(30), Account_type varchar(30), Account_Balance Char(20) Now Insert Record in this Current Account table. Statement Insert into Current_Account Values (‘account_no’,’account_title’,’account_type’,’account_bal’) Table is created
  • 10.
    SQL Functions AVG()- Returns the average value COUNT() - Returns the number of rows FIRST() - Returns the first value LAST() - Returns the last value MAX() - Returns the largest value MIN() - Returns the smallest value SUM() - Returns the sum SQL aggregate functions return a single value, calculated from values in a column. Useful aggregate functions
  • 11.
    SQL Scalar FunctionsUCASE() - Converts a field to upper case LCASE() - Converts a field to lower case MID() - Extract characters from a text field LEN() - Returns the length of a text field ROUND() - Rounds a numeric field to the number of decimals specified NOW() - Returns the current system date and time FORMAT() - Formats how a field is to be displayed SQL scalar functions return a single value, based on the input value. Useful scalar functions: Thanks.