Course Topics. Microsoft SQL Server. Dr. Shohreh Ajoudanian. 01 Installing MSSQL Server Data types
|
|
- Joel Collins
- 5 years ago
- Views:
Transcription
1 Dr. Shohreh Ajoudanian Course Topics Microsoft SQL Server 01 Installing MSSQL Server Creating a database 05 Querying Tables with SELECT 07 Using Set Operators 02 Data types 04 Creating a table, inserting data in table 06 Joining tables 08 Using Functions and Aggregating Data ١
2 01 Installing MS SQL Server ٢
3 Allow installation to proceed by clicking [Yes] button 5 6 ٣
4 Click [New installation or add featured to an existing installation] link to start the installation 7 8 ۴
5 9 10 ۵
6 Accept the License Agreement Click [Next] button ۶
7 13 14 ٧
8 Select the Database Engine Services and Management Tools - Basic options and click [Next] button 15 Select the Default Instance option Click [Next] button 16 ٨
9 Select the [Collation] tab 17 Select the SQL_Latin1_General_CP1_CI_AS option; this defines how your data will be searched and compared. Click [Next] button 18 ٩
10 Select the Windows Authentication Mode option to use your Windows account to connect to database; alternatively you may specify Mixed Mode, and supply User ID and Password and then select the Data Directories tab. Click [Next] button 19 Unless you understand ramifications, it is recommended that accept all defaults for the Discovering SQL purposes Click [Next] button 20 ١٠
11 Click [Next] button 21 The installation could take some time depending on your computer s hardware configuration 22 ١١
12 Click [Close] button 23 This screen shows the MS SQL Server 2008 R2 Express database service running on your Windows machine (the console is accessible from the Administrative Tools menu). 24 ١٢
13 MS SQL Server 2008 Express R2 Limitations 1GB of addressable RAM (computer memory), will only use single CPU only one database can be installed for the instance the size of the database is limited to 10GB 02 Data types ١٣
14 Data types A data type is an attribute that specifies the type of data that an object can hold as well as the number of bytes of information that can be stored in the object If you have similar data types to choose from but they only differ in byte size, use the data type that has a larger range of values and/or has increased precision Exact numeric data types (int, tinyint) are the most common SQL Server data types used to store numeric information. Approximate Numerics include precision (p) which is the total number of decimal digits that could be stored, both to the left and right of the decimal point. Data types Unicode data types provide storage of international characters, such as Japanese and Chinese, to allow worldwide businesses to use big vendor database products to store their data. Unicode data types takes more bytes to store the data in the database If you have similar data types to choose from but they only differ in byte size, use the data type that has a larger range of values and/or has increased precision Exact numeric data types (int, tinyint) are the most common SQL Server data types used to store numeric information. Approximate Numerics include precision (p) which is the total number of ١۴
15 Built-in data type categories SQL Server 2012 s built-in data types are organized into the following categories: Exact numerics (bigint, bit, decimal, int, money, numeric, smallint) Approximate numerics (float, real) Date and time (date, datetime2, datetime, datetimeoffset, time) Character strings (char, varchar, text) Unicode character strings (nchar, ntext, nvarchar) Binary strings (binary, varbinary, image) Other data types (cursor, timestamp, uniqueidentifier, table) Large valued data types (varchar(max), nvarchar(max)) Large object data types (text, ntext, image, xml) Data types Money - used where you ll store money or currency values Int - used to store whole numbers and when performing mathematical computations Float - commonly used in the scientific community and is considered an approximate-number data type Datetime - used to store date and time values in one of many different formats ١۵
16 Data types Char fixed length non-unicode string data type where n defines the string length Varchar variable length non-unicode string data type that indicates the actual storage size of the data Bit (Boolean) integer that can have a null, 0 (False), or 1 (True) value Datetimeoffset a date combined with time of day that has time zone awareness Data types storage size Data Type Use/Description Storage Size Money Monetary or currency values 922,337,203,685, to 922,337,203,685, Int Integer data from 2^31 ( 2,147,483,648) to 2^31 1 (2,147,483,647) Float Approximate number 1.79E+308 to 2.23E 308, 0 and 2.23E 308 to 1.79E+308 Datetime Char Varchar Date Range January 1, 1753, through December 31, 9999 Time Range 00:00:00 through 23:59: Fixed length, non Unicode string data. Can be a value from 1 through 8,000 Variable length non Unicode string. Can be a value from 1 through 8,000 8 bytes 4 bytes Depends on the value of n 8 bytes n bytes Actual length + 2 bytes Bit Integer with a value of 0 or 1. 1 byte for every 8 bit columns Datetimeoffse Date range January1,1 A.D. through December 10 Bytes ١۶
17 Operators Arithmetic Assignment Comparison Logical String Unary Bitwise 03 Creating a database ١٧
18 SQL Database Objects A SQL Server database has lot of objects like Tables Views Stored Procedures Functions Rules Defaults Cursors Triggers System Databases By default SQL server has 4 databases Master : System defined stored procedures, login details, configuration settings etc Model : Template for creating a database Tempdb : Stores temporary tables. This db is created when the server starts and dropped when the server shuts down Msdb : Has tables that have details with respect to alerts, jobs. Deals with SQL Server Agent Service ١٨
19 Creating a database We need to use Master database for creating a database By default the size of a database is 1 MB A database consists of Master Data File (.mdf) Primary Log File (.ldf) Database operations Changing a database Use <dbname> Creating a database Create database <dbname> Dropping a database Drop database <dbname> ١٩
20 Creating a database CREATE DATABASE Sales ON ( NAME = Sales_dat, FILENAME = F:\DATA\saledat.mdf', SIZE = 10, MAXSIZE = 50, FILEGROWTH = 5 ) LOG ON ( NAME = Sales_log, FILENAME = F:\DATA\salelog.ldf', SIZE = 5MB, MAXSIZE = 25MB, FILEGROWTH = 5MB ) ; GO Deleting a database DROP DATABASE Sales, NewSales ; GO ٢٠
21 04 Creating a table, inserting data in table Tables A table is a collection of rows and columns that is used to organize information about a single topic. Each row within a table corresponds to a single record and contains several attributes that describe the row. EmployeeID LastName FirstName Department 100 Smith Bob IT 101 Jones Susan Marketing 102 Adams John Finance ٢١
22 Creating a Table CREATE TABLE table_name ( { <column_definition> }) Insert statements Inserting data to all columns Insert into tablename(col1,col2) values(v1,v2) Insert into tablename values(v1,v2) Inserting data to selected columns Insert into tablename(col1) values (v1) Insert into tablename(col2) values (v2) ٢٢
23 Update statement Update table tablename Set colname=value - This updates all rows with colname set to value Update table tablename Set colname=value Where <<condition>> - This updates selected rows with colname as value only if the row satisfies the condition Delete statements Delete from table1; Deletes all rows in table1 Delete from table1 where <<condition>> Deletes few rows from table1 if they satisfy the condition ٢٣
24 05 Querying Tables with SELECT The SELECT Statement Element Expression Role SELECT <select list> Defines which columns to return FROM <table source> Defines table(s) to query WHERE <search condition> Filters rows using a predicate GROUP BY <group by list> Arranges rows by groups HAVING <search Filters groups using a SELECT condition> OrderDate, predicate COUNT(OrderID) ORDER BY <order by list> Sorts the output FROM Sales.SalesOrder WHERE Status = 'Shipped' GROUP BY OrderDate HAVING COUNT(OrderID) > 1 ORDER BY OrderDate DESC; ٢۴
25 Basic SELECT Query Examples All columns SELECT * FROM Production.Product; Specific columns SELECT Name, ListPrice FROM Production.Product; Expressions and Aliases SELECT Name AS Product, ListPrice * 0.9 AS SalePrice FROM Production.Product; Removing Duplicates SELECT ALL Default behavior includes duplicates SELECT Color FROM Production.Product; SELECT DISTINCT Removes duplicates SELECT DISTINCT Color FROM Production.Product; Color Blue Red Yellow Blue Yellow Black Color Blue Red Yellow Black ٢۵
26 Sorting Results Use ORDER BY to sort results by one or more columns Aliases created in SELECT clause are visible to ORDER BY You can order by columns in the source that are not included in the SELECT clause You can specify ASC or DESC (ASC is the default) SELECT ProductCategory AS Category, ProductName FROM Production.Product ORDER BY Category, Price DESC; Limiting Sorted Results TOP allows you to limit the number or percentage of rows returned by a query Works with ORDER BY clause to limit rows by sort order Added to SELECT clause: SELECT TOP (N) TOP (N) Percent With percent, number of rows rounded up SELECT TOP (N) WITH TIES Retrieve duplicates where applicable (nondeterministic) SELECT TOP 10 ProductName, ListPrice FROM Production.Product ORDER BY ListPrice DESC; ٢۶
27 Paging Through Results OFFSET-FETCH is an extension to the ORDER BY clause: Allows filtering a requested range of rows Dependent on ORDER BY clause Provides a mechanism for paging through results Specify number of rows to skip, number of rows to ORDER BY <order_by_list> retrieve: OFFSET <offset_value> ROW(S) FETCH FIRST NEXT <fetch_value> ROW(S) ONLY Filtering and Using Predicates Specify predicates in the WHERE clause Predicates and Description Operators = < > Compares values for equality / non equality. IN Determines whether a specified value matches any value in a subquery or a list. BETWEEN Specifies an inclusive range to test. LIKE Determines whether a specific character string matches a specified pattern, which can include wildcards. AND Combines two Boolean expressions and returns TRUE only when both are TRUE. OR Combines two Boolean expressions and returns TRUE if either is TRUE. ٢٧
28 06 Joining Tables Module Overview Join Concepts Join Syntax Inner Joins Outer Joins Cross Joins Self Joins ٢٨
29 Join Concepts Combine rows from multiple tables by specifying matching criteria Usually based on primary key foreign key relationships For example, return rows that combine data from the Employee and SalesOrder tables by matching the Employee.EmployeeID primary key to the SalesOrder.EmployeeID foreign key It helps to think of the tables Sales as sets in a Venn diagram Employee SalesOrder orders that were taken by employees Join Syntax Tables joined by commas in FROM Clause Not recommended: Accidental Cartesian products! SELECT... FROM Table1, Table2 WHERE <where_predicate>; ٢٩
30 Inner Joins Return only rows where a match is found in both input tables Match rows based on attributes supplied in predicate SELECT If join emp.firstname, predicate operator is =, also known as ord.amount equi-join FROM HR.Employee AS emp [INNER] JOIN Sales.SalesOrder AS ord ON emp.employeeid = ord.employeeid Employee SalesOrder Set returned by inner join Outer Joins Return all rows from one table and any matching rows from second table One table s rows are preserved Designated with LEFT, RIGHT, FULL keyword All rows from preserved table output to result set SELECT emp.firstname, ord.amount FROM HR.Employee AS emp LEFT [OUTER] JOIN Sales.SalesOrder AS ord ON emp.employeeid = ord.employeeid; Matches from other table retrieved Additional rows added to results for non-matched rows NULLs added in places where attributes do not match Example: Return all employees Employee SalesOrder Set returned by left outer join ٣٠
31 Cross Joins Combine each row from first table with each row from second table All possible combinations output Logical foundation for inner and outer joins Inner join starts with Cartesian product, adds filter Outer join takes Cartesian output, filtered, adds back non-matching rows (with NULL placeholders) Due to Cartesian product output, not typically a desired form of Employe eid Employee FirstNa me 1 Dan 2 Aisha Result FirstNam Name e Dan Widget Dan Gizmo Aisha Widget Aisha Gizmo Product Product Name ID 1 Widget 2 Gizmo SELECT emp.firstname, prd.name FROM HR.Employee AS emp CROSS JOIN Production.Product AS prd; Self Joins Compare rows in same table to each other Create two instances of same table in FROM clause At least one alias required Example: Return all employees and the name of the employee s manager Employee ID Employee FirstNa me Manage rid 1 Dan NULL 2 Aisha 1 3 Rosie 1 4 Naomi 3 SELECT emp.firstname AS Employee, man.firstname AS Manager FROM HR.Employee AS emp LEFT JOIN HR.Employee AS man ON emp.managerid = man.employeeid; Employee Dan Aisha Rosie Naomi Result Manager NULL Dan Dan Aisha ٣١
32 07 Using Set Operators Module Overview What are UNION Queries? What are INTERSECT Queries? What are EXCEPT Queries? ٣٢
33 What are UNION Queries? UNION returns a result set of distinct rows combined from all statements UNION removes duplicates during query processing (affects performance) UNION ALL retains duplicates during query processing -- only distinct rows from both queries are returned SELECT countryregion, city FROM HR.Employees UNION SELECT countryregion, city FROM Sales.Customers; UNION Guidelines Column aliases Must be expressed in first query Number of columns Must be the same Data types Must be compatible for implicit conversion (or converted explicitly) ٣٣
34 What are INTERSECT Queries? INTERSECT returns only distinct rows that appear in both result sets -- only rows that exist in both queries will be returned SELECT countryregion, city FROM HR.Employees INTERSECT SELECT countryregion, city FROM Sales.Customers; What are EXCEPT Queries? EXCEPT returns only distinct rows that appear in the first set but not the second Order in which sets are specified matters -- only rows from Employees will be returned SELECT countryregion, city FROM HR.Employees EXCEPT SELECT countryregion, city FROM Sales.Customers; ٣۴
35 08 Using Functions and Aggregating Data Introduction to Built-In Functions Function Category Scalar Logical Aggregate Window Rowset Description Operate on a single row, return a single value Scalar functions that compare multiple values to determine a single output Take one or more input values, return a single summarizing value Operate on a window (set) of rows Return a virtual table that can be used subsequently in a Transact SQL statement ٣۵
36 Scalar Functions Operate on elements from a single row as inputs, return a single value as output Return a single (scalar) value Can be used like an expression in queries May be deterministic or nondeterministic Scalar Function Categories Configuration Conversion Cursor Date and Time Mathematical Metadata Security String System System Statistical Text and Image Logical Functions Output is determined by comparative logic ISNUMERIC IIF CHOOSE SELECT ISNUMERIC('101.99') AS Is_a_Number; SELECT productid, listprice, IIF(listprice > 50, 'high','low') AS PricePoint FROM Production.Product; SELECT ProductName, Color, Size, CHOOSE (ProductCategoryID, 'Bikes','Components','Clothing','Accessories') AS Category FROM Production.Product; ٣۶
37 Window Functions Functions applied to a window, or set of rows Include ranking, offset, aggregate and distribution SELECT TOP(3) functions ProductID, Name, ListPrice, RANK() OVER(ORDER BY ListPrice DESC) AS RankByPrice FROM Production.Product ORDER BY RankByPrice; ProductID ProductName UnitPrice RankByPrice 8 Gizmo Widget Thingybob Aggregate Functions Functions that operate on sets, or rows of data Summarize input rows Without GROUP BY clause, all rows are arranged as one group SELECT COUNT(*) AS OrderLines, SUM(OrderQty*UnitPrice) AS TotalSales FROM Sales.OrderDetail; OrderLines TotalSales ٣٧
38 Grouping with GROUP BY GROUP BY creates groups for output rows, according to a unique combination of values specified in the GROUP BY clause GROUP BY calculates a summary value for aggregate functions in subsequent phases Detail rows are lost after GROUP BY clause is SELECT CustomerID, COUNT(*) AS Orders processed FROM Sales.SalesOrderHeader GROUP BY CustomerID; Filtering with HAVING HAVING clause provides a search condition that each group must satisfy WHERE clause is processed before GROUP BY, HAVING clause is processed after GROUP BY SELECT CustomerID, COUNT(*) AS Orders FROM Sales.SalesOrderHeader GROUP BY CustomerID HAVING COUNT(*) > 10; ٣٨
Department of Computer Science University of Cyprus. EPL342 Databases. Lab 1. Introduction to SQL Server Panayiotis Andreou
Department of Computer Science University of Cyprus EPL342 Databases Lab 1 Introduction to SQL Server 2008 Panayiotis Andreou http://www.cs.ucy.ac.cy/courses/epl342 1-1 Before We Begin Start the SQL Server
More informationExact Numeric Data Types
SQL Server Notes for FYP SQL data type is an attribute that specifies type of data of any object. Each column, variable and expression has related data type in SQL. You would use these data types while
More informationQuerying Data with Transact SQL
Course 20761A: Querying Data with Transact SQL Course details Course Outline Module 1: Introduction to Microsoft SQL Server 2016 This module introduces SQL Server, the versions of SQL Server, including
More informationConstraints. Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers. John Edgar 2
CMPT 354 Constraints Primary Key Foreign Key General table constraints Domain constraints Assertions Triggers John Edgar 2 firstname type balance city customerid lastname accnumber rate branchname phone
More information618 Index. BIT data type, 108, 109 BIT_LENGTH, 595f BIT VARYING data type, 108 BLOB data type, 108 Boolean data type, 109
Index A abbreviations in field names, 22 in table names, 31 Access. See under Microsoft acronyms in field names, 22 in table names, 31 aggregate functions, 74, 375 377, 416 428. See also AVG; COUNT; COUNT(*);
More informationSQL Fundamentals. Chapter 3. Class 03: SQL Fundamentals 1
SQL Fundamentals Chapter 3 Class 03: SQL Fundamentals 1 Class 03: SQL Fundamentals 2 SQL SQL (Structured Query Language): A language that is used in relational databases to build and query tables. Earlier
More informationAngela Henry. Data Types Do Matter
Angela Henry Data Types Do Matter Angela Henry Angela is a DBA/BI Developer, living in High Point, NC and loves what she does. She's worked with all versions of SQL Server & worn all the hats that come
More informationIntroduction to SQL Server 2005/2008 and Transact SQL
Introduction to SQL Server 2005/2008 and Transact SQL Week 4: Normalization, Creating Tables, and Constraints Some basics of creating tables and databases Steve Stedman - Instructor Steve@SteveStedman.com
More informationIntroduction to SQL. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011
Introduction to SQL IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview Using Structured Query Language (SQL) to get the data you want from relational databases Learning basic syntax
More informationHOW TO CREATE AND MAINTAIN DATABASES AND TABLES. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL
HOW TO CREATE AND MAINTAIN DATABASES AND TABLES By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate
More informationSql Server Syllabus. Overview
Sql Server Syllabus Overview This SQL Server training teaches developers all the Transact-SQL skills they need to create database objects like Tables, Views, Stored procedures & Functions and triggers
More informationColumnStore Indexes UNIQUE and NOT DULL
Agenda ColumnStore Indexes About me The Basics Key Characteristics DEMO SQL Server 2014 ColumnStore indexes DEMO Best Practices Data Types Restrictions SQL Server 2016+ ColumnStore indexes Gareth Swanepoel
More informationBasic SQL. Dr Fawaz Alarfaj. ACKNOWLEDGEMENT Slides are adopted from: Elmasri & Navathe, Fundamentals of Database Systems MySQL Documentation
Basic SQL Dr Fawaz Alarfaj Al Imam Mohammed Ibn Saud Islamic University ACKNOWLEDGEMENT Slides are adopted from: Elmasri & Navathe, Fundamentals of Database Systems MySQL Documentation MIDTERM EXAM 2 Basic
More informationQuerying Data with Transact-SQL
Course 20761A: Querying Data with Transact-SQL Page 1 of 5 Querying Data with Transact-SQL Course 20761A: 2 days; Instructor-Led Introduction The main purpose of this 2 day instructor led course is to
More information5. SQL Query Syntax 1. Select Statement. 6. CPS: Database Schema
5. SQL Query Syntax 1. Select Statement 6. CPS: Database Schema Joined in 2016 Previously IT Manager at RSNWO in Northwest Ohio AAS in Computer Programming A+ Certification in 2012 Microsoft Certified
More informationexam.75q Querying Data with Transact-SQL
70-761.exam.75q Number: 70-761 Passing Score: 800 Time Limit: 120 min 70-761 Querying Data with Transact-SQL Exam A QUESTION 1 You need to create an indexed view that requires logic statements to manipulate
More informationexam.87q.
70-761.exam.87q Number: 70-761 Passing Score: 800 Time Limit: 120 min 70-761 Querying Data with Transact-SQL Exam A QUESTION 1 Note: This question is part of a series of questions that present the same
More informationOracle Syllabus Course code-r10605 SQL
Oracle Syllabus Course code-r10605 SQL Writing Basic SQL SELECT Statements Basic SELECT Statement Selecting All Columns Selecting Specific Columns Writing SQL Statements Column Heading Defaults Arithmetic
More informationQuerying Data with Transact SQL Microsoft Official Curriculum (MOC 20761)
Querying Data with Transact SQL Microsoft Official Curriculum (MOC 20761) Course Length: 3 days Course Delivery: Traditional Classroom Online Live MOC on Demand Course Overview The main purpose of this
More informationQuerying Data with Transact-SQL
Querying Data with Transact-SQL Course: 20761 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2016 Duration: 24 HRs. ABOUT THIS COURSE This course is designed to introduce
More informationChapter 3 Introduction to relational databases and MySQL
Chapter 3 Introduction to relational databases and MySQL Murach's PHP and MySQL, C3 2014, Mike Murach & Associates, Inc. Slide 1 Objectives Applied 1. Use phpmyadmin to review the data and structure of
More information20761 Querying Data with Transact SQL
Course Overview The main purpose of this course is to give students a good understanding of the Transact-SQL language which is used by all SQL Server-related disciplines; namely, Database Administration,
More informationPrinciples of Data Management
Principles of Data Management Alvin Lin August 2018 - December 2018 Structured Query Language Structured Query Language (SQL) was created at IBM in the 80s: SQL-86 (first standard) SQL-89 SQL-92 (what
More informationCode Centric: T-SQL Programming with Stored Procedures and Triggers
Apress Books for Professionals by Professionals Sample Chapter: "Data Types" Code Centric: T-SQL Programming with Stored Procedures and Triggers by Garth Wells ISBN # 1-893115-83-6 Copyright 2000 Garth
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL)
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 7 Introduction to Structured Query Language (SQL) Objectives In this chapter, students will learn: The basic commands and
More informationChapter 3. Introduction to relational databases and MySQL. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C3
1 Chapter 3 Introduction to relational databases and MySQL Slide 2 Objectives Applied 1. Use phpmyadmin to review the data and structure of the tables in a database, to import and run SQL scripts that
More informationSQL functions fit into two broad categories: Data definition language Data manipulation language
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Beginning Structured Query Language (SQL) MDM NUR RAZIA BINTI MOHD SURADI 019-3932846 razia@unisel.edu.my
More information20461: Querying Microsoft SQL Server 2014 Databases
Course Outline 20461: Querying Microsoft SQL Server 2014 Databases Module 1: Introduction to Microsoft SQL Server 2014 This module introduces the SQL Server platform and major tools. It discusses editions,
More informationData and Tables. Bok, Jong Soon
Data and Tables Bok, Jong Soon Jongsoon.bok@gmail.com www.javaexpert.co.kr Learning MySQL Language Structure Comments and portability Case-sensitivity Escape characters Naming limitations Quoting Time
More informationCST272 SQL Server, SQL and the SqlDataSource Page 1
CST272 SQL Server, SQL and the SqlDataSource Page 1 1 2 3 4 5 6 7 8 9 SQL Server, SQL and the SqlDataSource CST272 ASP.NET Microsoft SQL Server A relational database server developed by Microsoft Stores
More informationBasis Data Terapan. Yoannita
Basis Data Terapan Yoannita SQL Server Data Types Character strings: Data type Description Storage char(n) varchar(n) varchar(max) text Fixed-length character string. Maximum 8,000 characters Variable-length
More informationBEGINNING T-SQL. Jen McCown MidnightSQL Consulting, LLC MinionWare, LLC
BEGINNING T-SQL Jen McCown MidnightSQL Consulting, LLC MinionWare, LLC FIRST: GET READY 1. What to model? 2. What is T-SQL? 3. Books Online (BOL) 4. Transactions WHAT TO MODEL? What kind of data should
More informationExam code: Exam name: Database Fundamentals. Version 16.0
98-364 Number: 98-364 Passing Score: 800 Time Limit: 120 min File Version: 16.0 Exam code: 98-364 Exam name: Database Fundamentals Version 16.0 98-364 QUESTION 1 You have a table that contains the following
More informationQuerying Microsoft SQL Server 2014
Querying Microsoft SQL Server 2014 Course: 20461 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2014 Duration: 40 Hours ABOUT THIS COURSE This forty hours of instructor-led
More informationSQL Server 2012 Development Course
SQL Server 2012 Development Course Exam: 1 Lecturer: Amirreza Keshavarz May 2015 1- You are a database developer and you have many years experience in database development. Now you are employed in a company
More informationSELF TEST. List the Capabilities of SQL SELECT Statements
98 SELF TEST The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might be more than one correct answer.
More informationBasic SQL. Basic SQL. Basic SQL
Basic SQL Dr Fawaz Alarfaj Al Imam Mohammed Ibn Saud Islamic University ACKNOWLEDGEMENT Slides are adopted from: Elmasri & Navathe, Fundamentals of Database Systems MySQL Documentation Basic SQL Structured
More informationIntroduction to relational databases and MySQL
Chapter 3 Introduction to relational databases and MySQL A products table Columns 2017, Mike Murach & Associates, Inc. C3, Slide 1 2017, Mike Murach & Associates, Inc. C3, Slide 4 Objectives Applied 1.
More information[AVNICF-MCSASQL2012]: NICF - Microsoft Certified Solutions Associate (MCSA): SQL Server 2012
[AVNICF-MCSASQL2012]: NICF - Microsoft Certified Solutions Associate (MCSA): SQL Server 2012 Length Delivery Method : 5 Days : Instructor-led (Classroom) Course Overview Participants will learn technical
More informationIntroductory SQL SQL Joins: Viewing Relationships Pg 1
Introductory SQL SQL Joins: Viewing Relationships Pg 1 SQL Joins: Viewing Relationships Ray Lockwood Points: The relational model uses foreign keys to establish relationships between tables. SQL uses Joins
More informationEXAM TS: Microsoft SQL Server 2008, Database Development. Buy Full Product.
Microsoft EXAM - 70-433 TS: Microsoft SQL Server 2008, Database Development Buy Full Product http://www.examskey.com/70-433.html Examskey Microsoft 70-433 exam demo product is here for you to test the
More informationCOURSE OUTLINE MOC 20461: QUERYING MICROSOFT SQL SERVER 2014
COURSE OUTLINE MOC 20461: QUERYING MICROSOFT SQL SERVER 2014 MODULE 1: INTRODUCTION TO MICROSOFT SQL SERVER 2014 This module introduces the SQL Server platform and major tools. It discusses editions, versions,
More informationOracle Database 10g: Introduction to SQL
ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database
More informationMCSA SQL SERVER 2012
MCSA SQL SERVER 2012 1. Course 10774A: Querying Microsoft SQL Server 2012 Course Outline Module 1: Introduction to Microsoft SQL Server 2012 Introducing Microsoft SQL Server 2012 Getting Started with SQL
More informationDS Introduction to SQL Part 1 Single-Table Queries. By Michael Hahsler based on slides for CS145 Introduction to Databases (Stanford)
DS 1300 - Introduction to SQL Part 1 Single-Table Queries By Michael Hahsler based on slides for CS145 Introduction to Databases (Stanford) Overview 1. SQL introduction & schema definitions 2. Basic single-table
More informationTeradata SQL Features Overview Version
Table of Contents Teradata SQL Features Overview Version 14.10.0 Module 0 - Introduction Course Objectives... 0-4 Course Description... 0-6 Course Content... 0-8 Module 1 - Teradata Studio Features Optimize
More informationINDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables
INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating
More informationMicrosoft Querying Microsoft SQL Server 2014
1800 ULEARN (853 276) www.ddls.com.au Microsoft 20461 - Querying Microsoft SQL Server 2014 Length 5 days Price $4290.00 (inc GST) Version D Overview Please note: Microsoft have released a new course which
More informationGridDB Advanced Edition SQL reference
GMA022C1 GridDB Advanced Edition SQL reference Toshiba Solutions Corporation 2016 All Rights Reserved. Introduction This manual describes how to write a SQL command in the GridDB Advanced Edition. Please
More informationGIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement
GIFT Department of Computing Science [Spring 2013] CS-217: Database Systems Lab-2 Manual Data Selection and Filtering using the SELECT Statement V1.0 4/12/2016 Introduction to Lab-2 This lab reinforces
More information20461: Querying Microsoft SQL Server
20461: Querying Microsoft SQL Server Length: 5 days Audience: IT Professionals Level: 300 OVERVIEW This 5 day instructor led course provides students with the technical skills required to write basic Transact
More informationSIT772 Database and Information Retrieval WEEK 6. RELATIONAL ALGEBRAS. The foundation of good database design
SIT772 Database and Information Retrieval WEEK 6. RELATIONAL ALGEBRAS The foundation of good database design Outline 1. Relational Algebra 2. Join 3. Updating/ Copy Table or Parts of Rows 4. Views (Virtual
More informationBuilding Better. SQL Server Databases
Building Better SQL Server Databases Who is this guy? Eric Cobb SQL Server Database Administrator MCSE: Data Platform MCSE: Data Management and Analytics 1999-2013: Webmaster, Programmer, Developer 2014+:
More informationIBM DB2 9 Family Fundamentals. Download Full Version :
IBM 000-730 DB2 9 Family Fundamentals Download Full Version : http://killexams.com/pass4sure/exam-detail/000-730 Answer: D QUESTION: 292 The EMPLOYEE table contains the following information: EMPNO NAME
More informationT-SQL Training: T-SQL for SQL Server for Developers
Duration: 3 days T-SQL Training Overview T-SQL for SQL Server for Developers training teaches developers all the Transact-SQL skills they need to develop queries and views, and manipulate data in a SQL
More informationAVANTUS TRAINING PTE LTD
[MS20461]: Querying Microsoft SQL Server 2014 Length : 5 Days Audience(s) : IT Professionals Level : 300 Technology : SQL Server Delivery Method : Instructor-led (Classroom) Course Overview This 5-day
More informationCOMP 430 Intro. to Database Systems
SELECT name FROM sqlite_master WHERE type='table' COMP 430 Intro. to Database Systems Single-table SQL Get clickers today! Slides use ideas from Chris Ré and Chris Jermaine. Clicker test Have you used
More informationSQL Data Query Language
SQL Data Query Language André Restivo 1 / 68 Index Introduction Selecting Data Choosing Columns Filtering Rows Set Operators Joining Tables Aggregating Data Sorting Rows Limiting Data Text Operators Nested
More informationCourse Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course:
Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course: 20762C Developing SQL 2016 Databases Module 1: An Introduction to Database Development Introduction to the
More informationInformation Systems Engineering. SQL Structured Query Language DDL Data Definition (sub)language
Information Systems Engineering SQL Structured Query Language DDL Data Definition (sub)language 1 SQL Standard Language for the Definition, Querying and Manipulation of Relational Databases on DBMSs Its
More informationBuilding Better. SQL Server Databases
Building Better SQL Server Databases Who is this guy? Eric Cobb Started in IT in 1999 as a "webmaster Developer for 14 years Microsoft Certified Solutions Expert (MCSE) Data Platform Data Management and
More informationHow to use SQL to work with a MySQL database
Chapter 18 How to use SQL to work with a MySQL database Objectives (continued) Knowledge 7. Describe the use of the GROUP BY and HAVING clauses in a SELECT statement, and distinguish between HAVING clauses
More informationCOURSE OUTLINE: Querying Microsoft SQL Server
Course Name 20461 Querying Microsoft SQL Server Course Duration 5 Days Course Structure Instructor-Led (Classroom) Course Overview This 5-day instructor led course provides students with the technical
More informationSQL Data Manipulation Language. Lecture 5. Introduction to SQL language. Last updated: December 10, 2014
Lecture 5 Last updated: December 10, 2014 Throrought this lecture we will use the following database diagram Inserting rows I The INSERT INTO statement enables inserting new rows into a table. The basic
More informationQuerying Microsoft SQL Server
Querying Microsoft SQL Server Course 20461D 5 Days Instructor-led, Hands-on Course Description This 5-day instructor led course is designed for customers who are interested in learning SQL Server 2012,
More informationQueries. Chapter 6. In This Chapter. c SELECT Statement: Its Clauses and Functions. c Join Operator c Correlated Subqueries c Table Expressions
Chapter 6 Queries In This Chapter c SELECT Statement: Its Clauses and Functions c Subqueries c Temporary Tables c Join Operator c Correlated Subqueries c Table Expressions 136 Microsoft SQL Server 2012:
More informationDB2 SQL Class Outline
DB2 SQL Class Outline The Basics of SQL Introduction Finding Your Current Schema Setting Your Default SCHEMA SELECT * (All Columns) in a Table SELECT Specific Columns in a Table Commas in the Front or
More informationData types String data types Numeric data types Date, time, and timestamp data types XML data type Large object data types ROWID data type
Data types Every column in every DB2 table has a data type. The data type influences the range of values that the column can have and the set of operators and functions that apply to it. You specify the
More informationQuerying Data with Transact-SQL (20761)
Querying Data with Transact-SQL (20761) Formato do curso: Presencial e Live Training Preço: 1630 Nível: Iniciado Duração: 35 horas The main purpose of this 5 day instructor led course is to give students
More informationMTA Database Administrator Fundamentals Course
MTA Database Administrator Fundamentals Course Session 1 Section A: Database Tables Tables Representing Data with Tables SQL Server Management Studio Section B: Database Relationships Flat File Databases
More informationSQL Structured Query Language Introduction
SQL Structured Query Language Introduction Rifat Shahriyar Dept of CSE, BUET Tables In relational database systems data are represented using tables (relations). A query issued against the database also
More informationInterview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]
Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] 1. What is DBMS? A Database Management System (DBMS) is a program that controls creation, maintenance and use
More informationLanguage. f SQL. Larry Rockoff COURSE TECHNOLOGY. Kingdom United States. Course Technology PTR. A part ofcenqaqe Learninq
Language f SQL Larry Rockoff Course Technology PTR A part ofcenqaqe Learninq *, COURSE TECHNOLOGY!» CENGAGE Learning- Australia Brazil Japan Korea Mexico Singapore Spain United Kingdom United States '
More information20461D: Querying Microsoft SQL Server
20461D: Querying Microsoft SQL Server Course Details Course Code: Duration: Notes: 20461D 5 days This course syllabus should be used to determine whether the course is appropriate for the students, based
More informationGetting Information from a Table
ch02.fm Page 45 Wednesday, April 14, 1999 2:44 PM Chapter 2 Getting Information from a Table This chapter explains the basic technique of getting the information you want from a table when you do not want
More informationPassReview. PassReview - IT Certification Exams Pass Review
PassReview http://www.passreview.com PassReview - IT Certification Exams Pass Review Exam : 70-761 Title : Querying Data with Transact- SQL Vendor : Microsoft Version : DEMO Get Latest & Valid 70-761 Exam's
More informationMariaDB Crash Course. A Addison-Wesley. Ben Forta. Upper Saddle River, NJ Boston. Indianapolis. Singapore Mexico City. Cape Town Sydney.
MariaDB Crash Course Ben Forta A Addison-Wesley Upper Saddle River, NJ Boston Indianapolis San Francisco New York Toronto Montreal London Munich Paris Madrid Cape Town Sydney Tokyo Singapore Mexico City
More informationMIS NETWORK ADMINISTRATOR PROGRAM
NH107-7475 SQL: Querying and Administering SQL Server 2012-2014 136 Total Hours 97 Theory Hours 39 Lab Hours COURSE TITLE: SQL: Querying and Administering SQL Server 2012-2014 PREREQUISITE: Before attending
More informationQuerying Microsoft SQL Server 2008/2012
Querying Microsoft SQL Server 2008/2012 Course 10774A 5 Days Instructor-led, Hands-on Introduction This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL
More informationTINYINT[(M)] [UNSIGNED] [ZEROFILL] A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255.
MySQL: Data Types 1. Numeric Data Types ZEROFILL automatically adds the UNSIGNED attribute to the column. UNSIGNED disallows negative values. SIGNED (default) allows negative values. BIT[(M)] A bit-field
More information1 Writing Basic SQL SELECT Statements 2 Restricting and Sorting Data
1 Writing Basic SQL SELECT Statements Objectives 1-2 Capabilities of SQL SELECT Statements 1-3 Basic SELECT Statement 1-4 Selecting All Columns 1-5 Selecting Specific Columns 1-6 Writing SQL Statements
More informationLab 4: Tables and Constraints
Lab : Tables and Constraints Objective You have had a brief introduction to tables and how to create them, but we want to have a more in-depth look at what goes into creating a table, making good choices
More informationQuerying Microsoft SQL Server 2012/2014
Page 1 of 14 Overview This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation
More informationSystem Pages (Setup Admins Only)
System Pages (Setup Admins Only) 1 Primary System Pages 2 More on Page Views & Sub Page Views 3 4 System Lookup Pages 5 6 7 Distinguishing Tables, Pages, Filtered Pages, & Page Views 8 9 Reasons to Create
More informationTestpassport. Банк экзамен
Testpassport Банк экзамен самое хорошое качество самая хорошая служба Exam : 70-433 Title : TS: Microsoft SQL Server 2008, Database Development Version : DEMO 1 / 8 1.You have a user named John. He has
More information"Charting the Course to Your Success!" MOC D Querying Microsoft SQL Server Course Summary
Course Summary Description This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation
More informationStructured Query Language (SQL)
Structured Query Language (SQL) SQL Chapters 6 & 7 (7 th edition) Chapters 4 & 5 (6 th edition) PostgreSQL on acsmysql1.acs.uwinnipeg.ca Each student has a userid and initial password acs!
More informationStructure Query Language (SQL)
Structure Query Language (SQL) 1 Example to Select all Records from Table A special character asterisk * is used to address all the data(belonging to all columns) in a query. SELECT statement uses * character
More informationIBM A Assessment: DB2 9 Fundamentals-Assessment. Download Full Version :
IBM A2090-730 Assessment: DB2 9 Fundamentals-Assessment Download Full Version : http://killexams.com/pass4sure/exam-detail/a2090-730 C. 2 D. 3 Answer: C QUESTION: 294 In which of the following situations
More informationQuerying Data with Transact-SQL
Course Code: M20761 Vendor: Microsoft Course Overview Duration: 5 RRP: 2,177 Querying Data with Transact-SQL Overview This course is designed to introduce students to Transact-SQL. It is designed in such
More informationActivant Solutions Inc. SQL 2005: Basic Data Manipulation
Activant Solutions Inc. SQL 2005: Basic Data Manipulation SQL Server 2005 suite Course 4 of 4 This class is designed for Beginner/Intermediate SQL Server 2005 System Administrators Objectives System Stored
More informationHow to use SQL to create a database
Chapter 17 How to use SQL to create a database How to create a database CREATE DATABASE my_guitar_shop2; How to create a database only if it does not exist CREATE DATABASE IF NOT EXISTS my_guitar_shop2;
More informationData Manipulation Language (DML)
In the name of Allah Islamic University of Gaza Faculty of Engineering Computer Engineering Department ECOM 4113 DataBase Lab Lab # 3 Data Manipulation Language (DML) El-masry 2013 Objective To be familiar
More informationRDBMS- Day 4. Grouped results Relational algebra Joins Sub queries. In today s session we will discuss about the concept of sub queries.
RDBMS- Day 4 Grouped results Relational algebra Joins Sub queries In today s session we will discuss about the concept of sub queries. Grouped results SQL - Using GROUP BY Related rows can be grouped together
More informationQuerying Microsoft SQL Server
20461 - Querying Microsoft SQL Server Duration: 5 Days Course Price: $2,975 Software Assurance Eligible Course Description About this course This 5-day instructor led course provides students with the
More informationColdFusion Summit 2016
ColdFusion Summit 2016 Building Better SQL Server Databases Who is this guy? Eric Cobb - Started in IT in 1999 as a "webmaster - Developer for 14 years - Microsoft Certified Solutions Expert (MCSE) - Data
More informationRelational Database Management Systems for Epidemiologists: SQL Part I
Relational Database Management Systems for Epidemiologists: SQL Part I Outline SQL Basics Retrieving Data from a Table Operators and Functions What is SQL? SQL is the standard programming language to create,
More informationChapter 4. Basic SQL. Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Chapter 4 Basic SQL Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries
More informationQuerying Microsoft SQL Server
Course Code: M20461 Vendor: Microsoft Course Overview Duration: 5 RRP: POA Querying Microsoft SQL Server Overview This 5-day instructor led course provides delegates with the technical skills required
More informationQuerying Data with Transact-SQL (761)
Querying Data with Transact-SQL (761) Manage data with Transact-SQL Create Transact-SQL SELECT queries Identify proper SELECT query structure, write specific queries to satisfy business requirements, construct
More information