How To Understand The Language Of Csv In Csv.Com (Windows)

Size: px
Start display at page:

Download "How To Understand The Language Of Csv In Csv.Com (Windows)"

Transcription

1 Student Lab Manual T-SQL for SQL Server 1

2 Introduction: This lab manual is based on the SQL Server 2005 AdventureWorks sample database. All assignments will use the objects from the AdventureWorks database, and the labs will use the Microsoft SQL Server management Studio as a learning platform. Each lab will feature a basic assignment and optionally a challenge assignment. You Instructor will review each lab in class and provide example solutions to the challenge assignments. Learning SQL is a hand-on experience, you are encouraged to explore beyond these basic assignments and ask questions in class. Before you proceed beyond a specific lab, please ensure you understand the topics being explored and all your questions have been answered. Enjoy and have fun. 2

3 Lab 1: Learning to explore a Database Table in SQL Server Management Studio For the Employee table in the AdventureWorks sample database, please answer the following questions: 1. What is the Schema the Employee table belongs in? 2. What is the Primary Key for the Employee table? 3. Are there any Foreign Keys within the Employee table, if so what tables do these keys reference? 4. Which field(s) of the Employee table may be null? 5. What are the valid entries in the MartialStatus column? 6. Which field(s) hold variable length data? 7. What is the Default Value for the SalariedFlag? And what does it mean? Lab 1 Challenge: Examine the uemplyee Trigger and answer the following question: 1. Which field(s) will change value when the uemployee Trigger is invoked? 3

4 Lab 2: Using the Graphical Query Designer Using the Graphical Query Designer, add the following tables and fields: Contact (Table) FirstName (Field) LastName Employee Title SalesPerson SalesYTD SalesTerritory Name CountryRegion Name Run the Query and examine the results. Lab 2 Challenge: Can you design a query to produce the following results? A listing of all products that includes: Product name, Name of the Vendor that supplies that product and the City that Vendor is located in? 4

5 Lab 3: The Languages of SQL SQL has three sub-languages: Data Manipulation Language (DML) Data Definition Language (DDL) Data Control Language (DCL) Please match the SQL command with the sub-language it belongs in: Command DML DDL DCL Select Alter Grant Update Deny Create Drop Delete Deny Insert Lab 3 Challenge: To add a column to an existing database table, which of the command listed above would be required to: Define the security rules to change the table? Make the change to the table? Add content to existing rows in the table? 5

6 Lab 4: The Select Command For the Employee table in the AdventureWorks sample database, please create the following queries: 1. All the records in the Employee table. 2. A list of: Employee Login IDs, Titles, and Vacation Hours. 3. All non-married Employees. 4. All married male Employees. 5. All Employees sorted by Hire Date. Lab 4 Challenge: Create a query that lists: All Employees that have no manager, sorted by title and birth date 6

7 Lab 5: The Select Command Comparison Operators For the Production.Product table in the AdventureWorks sample database, please create the following queries: 1. All Products that are 'Black' in Color. 2. All Products that have a Safety Stock Level less than All Products that have a Product Number starting with 'BK'. 4. All Products that have the word 'Lock in their name. 5. Product Name, Color and Size where the Size is Not 'L' or Not 'M' or not null. Lab 5 Challenge: Create a query to list: Product Name, Number, Days to Manufacture, and List Price for all Products that take between 3 and 6 days to manufacture, sorted by list price in descending order. 7

8 Lab 6: The Select Command Expanded Filtering For the Sales.SalesPerson table in the AdventureWorks sample database, please create the following queries: 1. All records that have a Bonus between and sort by Bonus. 2. All records for Territories 1, 2 and 4; 3. First 10 records. 4. All record where this years sales is greater than last years sales. 5. All records with nulls in Territory ID sorted by Sales Person Id in descending order. Lab 6 Challenge: Create a query to list: The top 25 percent of sales where last years sales was not zero. 8

9 Lab 7: The SQL Functions These question refer to several tables in the AdventureWorks sample database, please create the following queries: 1. The average commission percent for the SalesPerson table. 2. A count of all Male Employees; 3. The highest List Price of any Product. 4. The length of all Descriptions in the ProductDescription table. 5. The Currency Code and the first 3 letters of the Currency Name as 'AB'. Lab 7 Challenge: Create query to list the number of days between the Product Sell Start Date and the Product Sell End Date, where Sell End Date is a valid date. 9

10 Lab 8: The Aggregation and Grouping These question refer to several tables in the AdventureWorks sample database, please create the following queries: 1. List the Title, Gender, and Lowest Login Id for each group of Employees grouped by the following titles: Buyer', 'Recruiter' or 'Stocker'. 2. List Product Sub Category IDs from the Product table, include only those subcategories that occur more than 20 times. In addition to the ID also return the first product name in alphabetical order and the highest price for products in this subcategory. 3. Provide a list of Employee Titles and Genders from the Employee table. For each title, include the average vacation hours for all employees of each gender. Also provide an additional subtotal for each title that includes the average vacation hours for all employees of that title. Lab 8 Challenge: Create query to list the number of Employees for each Manager. 10

11 Lab 9: The Multi-Table Queries These question refer to several tables in the AdventureWorks sample database, please create the following queries: 1. Create a list of Vendors and the subtotals amounts for their purchase orders, sorted by vendor name. Please include vendor name, and the subtotal amount for all vendors who have purchase orders recorded in the PurchaseOrderHeader table. 2. Provide a list of all Product subcategories and related products that do not have any sales order detail records. Please provide two columns including the SubCategory Name and the Product Name. Lab 9 Challenge: Create query to list the all Managers by name. 11

12 Student Lab Manual T-SQL for SQL Server Solutions 12

13 Lab 1: Learning to explore a Database Table in SQL Server Management Studio For the Employee table in the AdventureWorks sample database, please answer the following questions: 1. What is the Schema the Employee table belongs in? HumanResources 2. What is the Primary Key for the Employee table? EmployeeID 3. Are there any Foreign Keys within the Employee table, if so what tables do these keys reference? ContactID Contact ManagerID Employee 4. Which field(s) of the Employee table may be null? ManagerID 5. What are the valid entries in the MartialStatus column? M = Married, S = Single 6. Which field(s) hold variable length data? NationalIDNumber, LoginID Title 7. What is the Default Value for the SalariedFlag? And what does it mean? ((1)) Job classification. 0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining. 13

14 Lab 2: Using the Graphical Query Designer Using the Graphical Query Designer, add the following tables and fields: Contact (Table) FirstName (Field) LastName Employee Title SalesPerson SalesYTD SalesTerritory Name CountryRegion Name Run the Query and examine the results. 14

15 Lab 3: The Languages of SQL SQL has three sub-languages: Data Manipulation Language (DML) Data Definition Language (DDL) Data Control Language (DCL) Please match the SQL command with the sub-language it belongs in: Command DML DDL DCL Select X Alter X Grant X Update X 15

16 Deny X Create X Drop X Delete X Deny X Insert X 16

17 Lab 4: The Select Command For the Employee table in the AdventureWorks sample database, please create the following queries: 1. All the records in the Employee table. SELECT * FROM HumanResources.Employee; 2. A list of: Employee Login IDs, Titles, and Vacation Hours. SELECT FROM LoginID, Title, VacationHours HumanResources.Employee; 3. All non-married Employees. SELECT * FROM HumanResources.Employee WHERE MaritalStatus = 'S'; 4. All married male Employees. SELECT * FROM HumanResources.Employee WHERE MaritalStatus = 'M' AND Gender = 'M'; 5. All Employees sorted by Hire Date. SELECT * FROM HumanResources.Employee ORDER BY HireDate; 17

18 Lab 5: The Select Command Comparison Operators For the Production.Product table in the AdventureWorks sample database, please create the following queries: 1. All Products that are 'Black' in Color. SELECT * FROM Production.Product WHERE Color = 'Black'; 2. All Products that have a Safety Stock Level less than 100. SELECT * FROM Production.Product WHERE SafetyStockLevel < 100; 3. All Products that have a Product Number starting with 'BK'. SELECT * FROM Production.Product WHERE ProductNumber LIKE 'BK%'; 4. All Products that have the word 'Lock in their name. SELECT * FROM Production.Product WHERE Name LIKE '%Lock%'; 5. Product Name, Color and Size where the Size is Not 'L' or Not 'M' or not null. SELECT Name, Color, Size FROM Production.Product WHERE Size!= 'L' OR Size!= 'M' OR Size IS NOT NULL; 18

19 Lab 6: The Select Command Expanded Filtering For the Sales.SalesPerson table in the AdventureWorks sample database, please create the following queries: 1. All records that have a Bonus between and sort by Bonus. SELECT * FROM Sales.SalesPerson WHERE Bonus BETWEEN AND ORDER BY Bonus; 2. All records for Territories 1, 2 and 4; SELECT * FROM Sales.SalesPerson WHERE TerritoryID IN (1,2,4); 3. First 10 records. SELECT TOP 10 * FROM Sales.SalesPerson; 4. All record where this years sales is greater than last years sales. SELECT * FROM Sales.SalesPerson WHERE SalesYTD > SalesLastYear; 5. All records with nulls in Territory ID sorted by Sales Person Id in descending order. SELECT * FROM Sales.SalesPerson WHERE TerritoryID IS NULL ORDER BY SalesPersonID DESC; 19

20 Lab 7: The SQL Functions These question refer to several tables in the AdventureWorks sample database, please create the following queries: 1. The average commission percent for the SalesPerson table. SELECT AVG(CommissionPct) FROM Sales.SalesPerson; 2. A count of all Male Employees; SELECT COUNT(*) FROM HumanResources.Employee WHERE Gender = 'M'; 3. The highest List Price of any Product. SELECT MAX(ListPrice) FROM Production.Product; 4. The length of all Descriptions in the ProductDescription table. SELECT LEN(Description) FROM Production.ProductDescription; 5. The Currency Code and the first 3 letters of the Currency Name as 'AB'. SELECT CurrencyCode, LEFT(Name, 3) AS AB FROM Sales.Currency; 20

21 Lab 8: The Aggregation and Grouping These question refer to several tables in the AdventureWorks sample database, please create the following queries: 1. List the Title, Gender, and Lowest Login Id for each group of Employees grouped by the following titles: Buyer', 'Recruiter' or 'Stocker'. SELECT Title, MIN(LoginID) AS Login FROM HumanResources.Employee WHERE Title IN('Buyer', 'Recruiter', 'Stocker') GROUP BY Title; 2. List Product Sub Category IDs from the Product table, include only those subcategories that occur more than 20 times. In addition to the ID also return the first product name in alphabetical order and the highest price for products in this subcategory. SELECT ProductSubCategoryID, MIN(Name) AS Name, MAX(ListPrice) FROM Production.Product GROUP BY ProductSubCategoryID HAVING COUNT(ProductSubCategoryID) > 20 ORDER BY Name; 3. Provide a list of Employee Titles and Genders from the Employee table. For each title, include the average vacation hours for all employees of each gender. Also provide an additional subtotal for each title that includes the average vacation hours for all employees of that title. SELECT Title, Gender, AVG(VacationHours) FROM HumanResources.Employee GROUP BY Title, Gender WITH ROLLUP; 21

22 Lab 9: The Multi-Table Queries These question refer to several tables in the AdventureWorks sample database, please create the following queries: 1. Create a list of Vendors and the subtotals amounts for their purchase orders, sorted by vendor name. Please include vendor name, and the subtotal amount for all vendors who have purchase orders recorded in the PurchaseOrderHeader table. SELECT Name, SubTotal FROM Purchasing.Vendor INNER JOIN Purchasing.PurchaseOrderHeader On Vendor.VendorID = PurchaseOrderHeader.VendorID ORDER BY Name; 2. Provide a list of all Product subcategories and related products that do not have any sales order detail records. Please provide two columns including the SubCategory Name and the Product Name. SELECT ProductSubCategory.Name AS SubCategory, Product.Name AS ProductName FROM Production.ProductSubCategory INNER JOIN Production.Product ON Production.ProductSubCategory.ProductSubCategoryID = Product.ProductSubCategoryID LEFT OUTER JOIN Sales.SalesOrderDetail ON Product.ProductID = Sales.SalesOrderDetail.ProductID WHERE SalesOrderDetail.ProductID IS NOT NULL; 22

23 Challenge Lab 1: UPDATE [HumanResources].[Employee] SET [HumanResources].[Employee].[ModifiedDate] = GETDATE() Lab 2: SELECT FROM Purchasing.Vendor.Name, Production.Product.Name AS Vendor, Person.Address.City Purchasing.VendorAddress INNER JOIN Purchasing.Vendor ON Purchasing.VendorAddress.VendorID = Purchasing.Vendor.VendorID INNER JOIN Purchasing.ProductVendor ON Purchasing.Vendor.VendorID = Purchasing.ProductVendor.VendorID INNER JOIN Production.Product ON Purchasing.ProductVendor.ProductID = Production.Product.ProductID INNER JOIN Person.Address ON Purchasing.VendorAddress.AddressID = Person.Address.AddressID Lab 3: Define Security Rules: GRANT Make changes to Table: ALTER Add Content to Exiting Rows: UPDATE Lab 4: SELECT * FROM HumanResources.Employee WHERE ManagerID IS NULL ORDER BY Title, BirthDate Lab 5: SELECT Name, ProductNumber, DaysToManufacture, ListPrice FROM Production.Product WHERE DaysToManufacture BETWEEN 3 AND 6 ORDER BY ListPrice DESC 23

24 Lab 6: SELECT TOP 25 PERCENT * FROM Sales.SalesPerson WHERE NOT SalesLastYear = 0.0 Lab 7: SELECT Name, DATEDIFF(day, SellStartDate, SellEndDate) AS [Days for Sell] FROM Production.Product WHERE SellEndDate IS NOT NULL Lab 7: SELECT Name, DATEDIFF(day, SellStartDate, SellEndDate) AS [Days For Sale] FROM Production.Product WHERE SellEndDate IS NOT NULL ORDER BY [Days For Sale] Lab 8: SELECT ManagerID, COUNT(*) AS [Employee Count] FROM HumanResources.Employee WHERE ManagerID IS NOT NULL GROUP BY ManagerID ORDER BY [Employee Count] Lab 9: SELECT C.FirstName + ' ' + C.LastName AS [Manager Name] FROM HumanResources.Employee AS E1, Person.Contact AS C WHERE E1.ContactID = C.ContactID AND E1.EmployeeID IN ( SELECT DISTINCT ManagerID FROM HumanResources.Employee WHERE ManagerID IS NOT NULL ) ORDER BY [Manager Name] 24

Generated using SQL Data Dictionary demo version. AdventureWorks2012 (Last updated on Thu, Nov 26th, 2015 at 12:25 PM)

Generated using SQL Data Dictionary demo version. AdventureWorks2012 (Last updated on Thu, Nov 26th, 2015 at 12:25 PM) Generated using SQL Data Dictionary demo version. Tables: AdventureWorks2012 (Last updated on Thu, Nov 26th, 2015 at 12:25 PM) AdventureWorks 2012 Sample OLTP Database dbo.awbuildversion (1 row)... 1 Current

More information

Jason S Wong http://usa.redirectme.net Sr. DBA IT Applications Manager DBA Developer Programmer M.S. Rice 88, MBA U.H. 94(MIS)

Jason S Wong http://usa.redirectme.net Sr. DBA IT Applications Manager DBA Developer Programmer M.S. Rice 88, MBA U.H. 94(MIS) Jason S Wong http://usa.redirectme.net Sr. DBA IT Applications Manager DBA Developer Programmer M.S. Rice 88, MBA U.H. 94(MIS) Make your defaults Top 10 SQL Server defaults that DBAs need to evaluate and

More information

The join operation allows you to combine related rows of data found in two tables into a single result set.

The join operation allows you to combine related rows of data found in two tables into a single result set. (Web) Application Development With Ian Week 3 SQL with Multiple Tables Join The join operation allows you to combine related rows of data found in two tables into a single result set. It works similarly

More information

Printed and bound in the United States of America. 1 2 3 4 5 6 7 8 9 QWT 4 3 2 1 0 9. Distributed in Canada by H.B. Fenn and Company Ltd.

Printed and bound in the United States of America. 1 2 3 4 5 6 7 8 9 QWT 4 3 2 1 0 9. Distributed in Canada by H.B. Fenn and Company Ltd. PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright 2009 by GrandMasters and Mike Hotek All rights reserved. No part of the contents

More information

T-SQL STANDARD ELEMENTS

T-SQL STANDARD ELEMENTS T-SQL STANDARD ELEMENTS SLIDE Overview Types of commands and statement elements Basic SELECT statements Categories of T-SQL statements Data Manipulation Language (DML*) Statements for querying and modifying

More information

Essentials of SQL. Essential SQL 11/06/2010. NWeHealth, The University of Manchester

Essentials of SQL. Essential SQL 11/06/2010. NWeHealth, The University of Manchester NWeHealth, The University of Manchester Essentials of SQL Exercise Booklet WITH ANSWERS Queries modified from various internet resources including SQLZoo.net Dr. Georgina Moulton Education and Development

More information

Oracle Database 10g: Introduction to SQL

Oracle Database 10g: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database technology.

More information

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals 1 Properties of a Database 1 The Database Management System (DBMS) 2 Layers of Data Abstraction 3 Physical Data Independence 5 Logical

More information

Using AND in a Query: Step 1: Open Query Design

Using AND in a Query: Step 1: Open Query Design Using AND in a Query: Step 1: Open Query Design From the Database window, choose Query on the Objects bar. The list of saved queries is displayed, as shown in this figure. Click the Design button. The

More information

Database Query 1: SQL Basics

Database Query 1: SQL Basics Database Query 1: SQL Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Using Structured Query Language (SQL) to get the data you want from relational databases Learning basic

More information

Lab # 5. Retreiving Data from Multiple Tables. Eng. Alaa O Shama

Lab # 5. Retreiving Data from Multiple Tables. Eng. Alaa O Shama The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 5 Retreiving Data from Multiple Tables Eng. Alaa O Shama November, 2015 Objectives:

More information

Oracle Database 10g Express

Oracle Database 10g Express Oracle Database 10g Express This tutorial prepares the Oracle Database 10g Express Edition Developer to perform common development and administrative tasks of Oracle Database 10g Express Edition. Objectives

More information

Developing Web Applications for Microsoft SQL Server Databases - What you need to know

Developing Web Applications for Microsoft SQL Server Databases - What you need to know Developing Web Applications for Microsoft SQL Server Databases - What you need to know ATEC2008 Conference Session Description Alpha Five s web components simplify working with SQL databases, but what

More information

Testing of the data access layer and the database itself

Testing of the data access layer and the database itself Testing of the data access layer and the database itself Vineta Arnicane and Guntis Arnicans University of Latvia TAPOST 2015, 08.10.2015 1 Prolog Vineta Arnicane, Guntis Arnicans, Girts Karnitis DigiBrowser

More information

SQL. Short introduction

SQL. Short introduction SQL Short introduction 1 Overview SQL, which stands for Structured Query Language, is used to communicate with a database. Through SQL one can create, manipulate, query and delete tables and contents.

More information

Course 20461C: Querying Microsoft SQL Server Duration: 35 hours

Course 20461C: Querying Microsoft SQL Server Duration: 35 hours Course 20461C: Querying Microsoft SQL Server Duration: 35 hours About this Course This course is the foundation for all SQL Server-related disciplines; namely, Database Administration, Database Development

More information

Course ID#: 1401-801-14-W 35 Hrs. Course Content

Course ID#: 1401-801-14-W 35 Hrs. Course Content Course Content Course 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

More information

Module 1: Getting Started with Databases and Transact-SQL in SQL Server 2008

Module 1: Getting Started with Databases and Transact-SQL in SQL Server 2008 Course 2778A: Writing Queries Using Microsoft SQL Server 2008 Transact-SQL About this Course This 3-day instructor led course provides students with the technical skills required to write basic Transact-

More information

Querying Microsoft SQL Server 20461C; 5 days

Querying Microsoft SQL Server 20461C; 5 days Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc Querying Microsoft SQL Server 20461C; 5 days Course Description This 5-day

More information

Appendix A Practices and Solutions

Appendix A Practices and Solutions Appendix A Practices and Solutions Table of Contents Practices for Lesson I... 3 Practice I-1: Introduction... 4 Practice Solutions I-1: Introduction... 5 Practices for Lesson 1... 11 Practice 1-1: Retrieving

More information

Querying Microsoft SQL Server

Querying Microsoft SQL Server Course 20461C: Querying Microsoft SQL Server Module 1: Introduction to Microsoft SQL Server 2014 This module introduces the SQL Server platform and major tools. It discusses editions, versions, tools used

More information

Querying Microsoft SQL Server (20461) H8N61S

Querying Microsoft SQL Server (20461) H8N61S HP Education Services course data sheet Querying Microsoft SQL Server (20461) H8N61S Course Overview In this course, you will learn the technical skills required to write basic Transact-SQL (T-SQL) queries

More information

Introduction to Querying & Reporting with SQL Server

Introduction to Querying & Reporting with SQL Server 1800 ULEARN (853 276) www.ddls.com.au Introduction to Querying & Reporting with SQL Server Length 5 days Price $4169.00 (inc GST) Overview This five-day instructor led course provides students with the

More information

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables 1. What Are The Different Views To Display A Table A) Datasheet View B) Design View C) Pivote Table & Pivot Chart View D) All Of Above 2. Which Of The Following Creates A Drop Down List Of Values To Choose

More information

Information Systems SQL. Nikolaj Popov

Information Systems SQL. Nikolaj Popov Information Systems SQL Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline SQL Table Creation Populating and Modifying

More information

SQL SELECT Query: Intermediate

SQL SELECT Query: Intermediate SQL SELECT Query: Intermediate IT 4153 Advanced Database J.G. Zheng Spring 2012 Overview SQL Select Expression Alias revisit Aggregate functions - complete Table join - complete Sub-query in where Limiting

More information

SQL Server 2008 Core Skills. Gary Young 2011

SQL Server 2008 Core Skills. Gary Young 2011 SQL Server 2008 Core Skills Gary Young 2011 Confucius I hear and I forget I see and I remember I do and I understand Core Skills Syllabus Theory of relational databases SQL Server tools Getting help Data

More information

Introduction to Microsoft Jet SQL

Introduction to Microsoft Jet SQL Introduction to Microsoft Jet SQL Microsoft Jet SQL is a relational database language based on the SQL 1989 standard of the American Standards Institute (ANSI). Microsoft Jet SQL contains two kinds of

More information

Structured Query Language. Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics

Structured Query Language. Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Structured Query Language HANS- PETTER HALVORSEN, 2014.03.03 Faculty of Technology, Postboks 203,

More information

Access Queries (Office 2003)

Access Queries (Office 2003) Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy

More information

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led

More information

Using Multiple Operations. Implementing Table Operations Using Structured Query Language (SQL)

Using Multiple Operations. Implementing Table Operations Using Structured Query Language (SQL) Copyright 2000-2001, University of Washington Using Multiple Operations Implementing Table Operations Using Structured Query Language (SQL) The implementation of table operations in relational database

More information

Oracle SQL. Course Summary. Duration. Objectives

Oracle SQL. Course Summary. Duration. Objectives Oracle SQL Course Summary Identify the major structural components of the Oracle Database 11g Create reports of aggregated data Write SELECT statements that include queries Retrieve row and column data

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to

More information

Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25)

Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Which three statements inserts a row into the table? A. INSERT INTO employees

More information

Database Administration with MySQL

Database Administration with MySQL Database Administration with MySQL Suitable For: Database administrators and system administrators who need to manage MySQL based services. Prerequisites: Practical knowledge of SQL Some knowledge of relational

More information

COMP 5138 Relational Database Management Systems. Week 5 : Basic SQL. Today s Agenda. Overview. Basic SQL Queries. Joins Queries

COMP 5138 Relational Database Management Systems. Week 5 : Basic SQL. Today s Agenda. Overview. Basic SQL Queries. Joins Queries COMP 5138 Relational Database Management Systems Week 5 : Basic COMP5138 "Relational Database Managment Systems" J. Davis 2006 5-1 Today s Agenda Overview Basic Queries Joins Queries Aggregate Functions

More information

How Strings are Stored. Searching Text. Setting. ANSI_PADDING Setting

How Strings are Stored. Searching Text. Setting. ANSI_PADDING Setting How Strings are Stored Searching Text SET ANSI_PADDING { ON OFF } Controls the way SQL Server stores values shorter than the defined size of the column, and the way the column stores values that have trailing

More information

SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach TRAINING & REFERENCE murach's SQL Server 2012 for developers Bryan Syverson Joel Murach Mike Murach & Associates, Inc. 4340 N. Knoll Ave. Fresno, CA 93722 www.murach.com murachbooks@murach.com Expanded

More information

70-444 PRO: Optimizing and Maintaining a Database Administration Solution by Using Microsoft SQL Server 2005. Practice Test. Version 2.

70-444 PRO: Optimizing and Maintaining a Database Administration Solution by Using Microsoft SQL Server 2005. Practice Test. Version 2. Microsoft 70-444 70-444 PRO: Optimizing and Maintaining a Database Administration Solution by Using Microsoft SQL Server 2005 Practice Test Version 2.7 QUESTION NO: 1 Microsoft 70-444: Practice Exam You

More information

Querying Microsoft SQL Server Course M20461 5 Day(s) 30:00 Hours

Querying Microsoft SQL Server Course M20461 5 Day(s) 30:00 Hours Área de formação Plataforma e Tecnologias de Informação Querying Microsoft SQL Introduction This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL

More information

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL Course 2778A: Writing Queries Using Microsoft SQL Server 2008 Transact-SQL Length: 3 Days Language(s): English Audience(s): IT Professionals Level: 200 Technology: Microsoft SQL Server 2008 Type: Course

More information

MOC 20461C: Querying Microsoft SQL Server. Course Overview

MOC 20461C: Querying Microsoft SQL Server. Course Overview MOC 20461C: Querying Microsoft SQL Server Course Overview This course provides students with the knowledge and skills to query Microsoft SQL Server. Students will learn about T-SQL querying, SQL Server

More information

Microsoft Access Lesson 5: Structured Query Language (SQL)

Microsoft Access Lesson 5: Structured Query Language (SQL) Microsoft Access Lesson 5: Structured Query Language (SQL) Structured Query Language (pronounced S.Q.L. or sequel ) is a standard computing language for retrieving information from and manipulating databases.

More information

A basic create statement for a simple student table would look like the following.

A basic create statement for a simple student table would look like the following. Creating Tables A basic create statement for a simple student table would look like the following. create table Student (SID varchar(10), FirstName varchar(30), LastName varchar(30), EmailAddress varchar(30));

More information

ATTACHMENT 6 SQL Server 2012 Programming Standards

ATTACHMENT 6 SQL Server 2012 Programming Standards ATTACHMENT 6 SQL Server 2012 Programming Standards SQL Server Object Design and Programming Object Design and Programming Idaho Department of Lands Document Change/Revision Log Date Version Author Description

More information

Instant SQL Programming

Instant SQL Programming Instant SQL Programming Joe Celko Wrox Press Ltd. INSTANT Table of Contents Introduction 1 What Can SQL Do for Me? 2 Who Should Use This Book? 2 How To Use This Book 3 What You Should Know 3 Conventions

More information

MOC 20461 QUERYING MICROSOFT SQL SERVER

MOC 20461 QUERYING MICROSOFT SQL SERVER ONE STEP AHEAD. MOC 20461 QUERYING MICROSOFT SQL SERVER Length: 5 days Level: 300 Technology: Microsoft SQL Server Delivery Method: Instructor-led (classroom) COURSE OUTLINE Module 1: Introduction to Microsoft

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: 1.800.529.0165 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This course is designed to deliver the fundamentals of SQL and PL/SQL along

More information

1.204 Lecture 3. SQL: Basics, Joins SQL

1.204 Lecture 3. SQL: Basics, Joins SQL 1.204 Lecture 3 SQL: Basics, Joins SQL Structured query language (SQL) used for Data definition (DDL): tables and views (virtual tables). These are the basic operations to convert a data model to a database

More information

2874CD1EssentialSQL.qxd 6/25/01 3:06 PM Page 1 Essential SQL Copyright 2001 SYBEX, Inc., Alameda, CA www.sybex.com

2874CD1EssentialSQL.qxd 6/25/01 3:06 PM Page 1 Essential SQL Copyright 2001 SYBEX, Inc., Alameda, CA www.sybex.com Essential SQL 2 Essential SQL This bonus chapter is provided with Mastering Delphi 6. It is a basic introduction to SQL to accompany Chapter 14, Client/Server Programming. RDBMS packages are generally

More information

Course 20464: Developing Microsoft SQL Server Databases

Course 20464: Developing Microsoft SQL Server Databases Course 20464: Developing Microsoft SQL Server Databases Type:Course Audience(s):IT Professionals Technology:Microsoft SQL Server Level:300 This Revision:C Delivery method: Instructor-led (classroom) Length:5

More information

D61830GC30. MySQL for Developers. Summary. Introduction. Prerequisites. At Course completion After completing this course, students will be able to:

D61830GC30. MySQL for Developers. Summary. Introduction. Prerequisites. At Course completion After completing this course, students will be able to: D61830GC30 for Developers Summary Duration Vendor Audience 5 Days Oracle Database Administrators, Developers, Web Administrators Level Technology Professional Oracle 5.6 Delivery Method Instructor-led

More information

DbSchema Tutorial with Introduction in SQL Databases

DbSchema Tutorial with Introduction in SQL Databases DbSchema Tutorial with Introduction in SQL Databases Contents Connect to the Database and Create First Tables... 2 Create Foreign Keys... 7 Create Indexes... 9 Generate Random Data... 11 Relational Data

More information

Saskatoon Business College Corporate Training Centre 244-6340 corporate@sbccollege.ca www.sbccollege.ca/corporate

Saskatoon Business College Corporate Training Centre 244-6340 corporate@sbccollege.ca www.sbccollege.ca/corporate Microsoft Certified Instructor led: Querying Microsoft SQL Server (Course 20461C) Date: October 19 23, 2015 Course Length: 5 day (8:30am 4:30pm) Course Cost: $2400 + GST (Books included) About this Course

More information

How To Create A Table In Sql 2.5.2.2 (Ahem)

How To Create A Table In Sql 2.5.2.2 (Ahem) Database Systems Unit 5 Database Implementation: SQL Data Definition Language Learning Goals In this unit you will learn how to transfer a logical data model into a physical database, how to extend or

More information

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc Writing Queries Using Microsoft SQL Server 2008 Transact-SQL Course 2778-08;

More information

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new

More information

DIPLOMA IN WEBDEVELOPMENT

DIPLOMA IN WEBDEVELOPMENT DIPLOMA IN WEBDEVELOPMENT Prerequisite skills Basic programming knowledge on C Language or Core Java is must. # Module 1 Basics and introduction to HTML Basic HTML training. Different HTML elements, tags

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training teaches you how to write subqueries,

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

A Brief Introduction to MySQL

A Brief Introduction to MySQL A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: + 38516306373 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the

More information

Introducing Microsoft SQL Server 2012 Getting Started with SQL Server Management Studio

Introducing Microsoft SQL Server 2012 Getting Started with SQL Server Management Studio Querying Microsoft SQL Server 2012 Microsoft Course 10774 This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server

More information

A Migration Methodology of Transferring Database Structures and Data

A Migration Methodology of Transferring Database Structures and Data A Migration Methodology of Transferring Database Structures and Data Database migration is needed occasionally when copying contents of a database or subset to another DBMS instance, perhaps due to changing

More information

Developing Microsoft SQL Server Databases MOC 20464

Developing Microsoft SQL Server Databases MOC 20464 Developing Microsoft SQL Server Databases MOC 20464 Course Outline Module 1: Introduction to Database Development This module introduces database development and the key tasks that a database developer

More information

Oracle 10g PL/SQL Training

Oracle 10g PL/SQL Training Oracle 10g PL/SQL Training Course Number: ORCL PS01 Length: 3 Day(s) Certification Exam This course will help you prepare for the following exams: 1Z0 042 1Z0 043 Course Overview PL/SQL is Oracle's Procedural

More information

Querying Microsoft SQL Server 2012

Querying Microsoft SQL Server 2012 Querying Microsoft SQL Server 2012 MOC 10774 About this Course This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL

More information

Relational Database Management LIS458

Relational Database Management LIS458 Part1- Intro- CaseStudyProject 1 f Relational Database Management LIS458 G Benoit Jan 6, 11 The subject of Relational Database Management Systems (RDBMS) is taught in schools of business, library & information

More information

Securing Data on Microsoft SQL Server 2012

Securing Data on Microsoft SQL Server 2012 Securing Data on Microsoft SQL Server 2012 Course 55096 The goal of this two-day instructor-led course is to provide students with the database and SQL server security knowledge and skills necessary to

More information

1.264 Lecture 11. SQL: Basics, SELECT. Please start SQL Server before each class

1.264 Lecture 11. SQL: Basics, SELECT. Please start SQL Server before each class 1.264 Lecture 11 SQL: Basics, SELECT Please start SQL Server before each class Download Lecture11CreateDB.sql from Web site; open it in SQL Svr Mgt Studio This class: Upload your.sql file from the exercises

More information

Information and Computer Science Department ICS 324 Database Systems Lab#11 SQL-Basic Query

Information and Computer Science Department ICS 324 Database Systems Lab#11 SQL-Basic Query Information and Computer Science Department ICS 324 Database Systems Lab#11 SQL-Basic Query Objectives The objective of this lab is to learn the query language of SQL. Outcomes After completing this Lab,

More information

IBM DB2 9.7. Introduction to SQL and database objects Hands-on Lab. Information Management Cloud Computing Center of Competence.

IBM DB2 9.7. Introduction to SQL and database objects Hands-on Lab. Information Management Cloud Computing Center of Competence. IBM DB2 9.7 Introduction to SQL and database objects Hands-on Lab I Information Management Cloud Computing Center of Competence IBM Canada Lab Contents CONTENTS...2 1. INTRODUCTION...3 2. OBJECTIVES...3

More information

Oracle Database 12c: Introduction to SQL Ed 1.1

Oracle Database 12c: Introduction to SQL Ed 1.1 Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Introduction to SQL Ed 1.1 Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training helps you write subqueries,

More information

1. INTRODUCTION TO RDBMS

1. INTRODUCTION TO RDBMS Oracle For Beginners Page: 1 1. INTRODUCTION TO RDBMS What is DBMS? Data Models Relational database management system (RDBMS) Relational Algebra Structured query language (SQL) What Is DBMS? Data is one

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: +381 11 2016811 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn Understanding the basic concepts of relational databases ensure refined code by developers.

More information

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition Beginning C# 5.0 Databases Second Edition Vidya Vrat Agarwal Contents J About the Author About the Technical Reviewer Acknowledgments Introduction xviii xix xx xxi Part I: Understanding Tools and Fundamentals

More information

Querying Microsoft SQL Server 2012

Querying Microsoft SQL Server 2012 Querying Microsoft SQL Server 2012 Duration: 5 Days Course Code: M10774 Overview: Deze cursus wordt vanaf 1 juli vervangen door cursus M20461 Querying Microsoft SQL Server. This course will be replaced

More information

Database 10g Edition: All possible 10g features, either bundled or available at additional cost.

Database 10g Edition: All possible 10g features, either bundled or available at additional cost. Concepts Oracle Corporation offers a wide variety of products. The Oracle Database 10g, the product this exam focuses on, is the centerpiece of the Oracle product set. The "g" in "10g" stands for the Grid

More information

Querying Microsoft SQL Server 2012

Querying Microsoft SQL Server 2012 Course 10774A: Querying Microsoft SQL Server 2012 Length: 5 Days Language(s): English Audience(s): IT Professionals Level: 200 Technology: Microsoft SQL Server 2012 Type: Course Delivery Method: Instructor-led

More information

Introduction to SQL and database objects

Introduction to SQL and database objects Introduction to SQL and database objects IBM Information Management Cloud Computing Center of Competence IBM Canada Labs 1 2011 IBM Corporation Agenda Overview Database objects SQL introduction The SELECT

More information

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases. SQL Databases Course by Applied Technology Research Center. 23 September 2015 This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases. Oracle Topics This Oracle Database: SQL

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn View a newer version of this course This Oracle Database: Introduction to SQL training

More information

MS-55096: Securing Data on Microsoft SQL Server 2012

MS-55096: Securing Data on Microsoft SQL Server 2012 MS-55096: Securing Data on Microsoft SQL Server 2012 Description The goal of this two-day instructor-led course is to provide students with the database and SQL server security knowledge and skills necessary

More information

Developing Microsoft SQL Server Databases 20464C; 5 Days

Developing Microsoft SQL Server Databases 20464C; 5 Days Developing Microsoft SQL Server Databases 20464C; 5 Days Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc Course Description

More information

BID2WIN Workshop. Advanced Report Writing

BID2WIN Workshop. Advanced Report Writing BID2WIN Workshop Advanced Report Writing Please Note: Please feel free to take this workbook home with you! Electronic copies of all lab documentation are available for download at http://www.bid2win.com/userconf/2011/labs/

More information

Course 10774A: Querying Microsoft SQL Server 2012 Length: 5 Days Published: May 25, 2012 Language(s): English Audience(s): IT Professionals

Course 10774A: Querying Microsoft SQL Server 2012 Length: 5 Days Published: May 25, 2012 Language(s): English Audience(s): IT Professionals Course 10774A: Querying Microsoft SQL Server 2012 Length: 5 Days Published: May 25, 2012 Language(s): English Audience(s): IT Professionals Overview About this Course Level: 200 Technology: Microsoft SQL

More information

CSE 530A Database Management Systems. Introduction. Washington University Fall 2013

CSE 530A Database Management Systems. Introduction. Washington University Fall 2013 CSE 530A Database Management Systems Introduction Washington University Fall 2013 Overview Time: Mon/Wed 7:00-8:30 PM Location: Crow 206 Instructor: Michael Plezbert TA: Gene Lee Websites: http://classes.engineering.wustl.edu/cse530/

More information

Course 10774A: Querying Microsoft SQL Server 2012

Course 10774A: Querying Microsoft SQL Server 2012 Course 10774A: Querying Microsoft SQL Server 2012 About this Course This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft

More information

David Dye. Extract, Transform, Load

David Dye. Extract, Transform, Load David Dye Extract, Transform, Load Extract, Transform, Load Overview SQL Tools Load Considerations Introduction David Dye derekman1@msn.com HTTP://WWW.SQLSAFETY.COM Overview ETL Overview Extract Define

More information

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins) Lesson 07: MS ACCESS - Handout Handout Introduction to database (30 mins) Microsoft Access is a database application. A database is a collection of related information put together in database objects.

More information

MySQL for Beginners Ed 3

MySQL for Beginners Ed 3 Oracle University Contact Us: 1.800.529.0165 MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database.

More information

50439B: Basics of Transact SQL with SQL Server 2008 R2

50439B: Basics of Transact SQL with SQL Server 2008 R2 50439B: Basics of Transact SQL with SQL Server 2008 R2 Duration: 3 days Class Description This instructor-led course provides students with the necessary knowledge to work with the data in SQL Server 2008R2.

More information

SQL Programming. Student Workbook

SQL Programming. Student Workbook SQL Programming Student Workbook 2 SQL Programming SQL Programming Published by itcourseware, Inc., 7245 South Havana Street, Suite 100, Englewood, CO 80112 Contributing Authors: Denise Geller, Rob Roselius,

More information

P_Id LastName FirstName Address City 1 Kumari Mounitha VPura Bangalore 2 Kumar Pranav Yelhanka Bangalore 3 Gubbi Sharan Hebbal Tumkur

P_Id LastName FirstName Address City 1 Kumari Mounitha VPura Bangalore 2 Kumar Pranav Yelhanka Bangalore 3 Gubbi Sharan Hebbal Tumkur SQL is a standard language for accessing and manipulating databases. What is SQL? SQL stands for Structured Query Language SQL lets you access and manipulate databases SQL is an ANSI (American National

More information

SQL - QUICK GUIDE. Allows users to access data in relational database management systems.

SQL - QUICK GUIDE. Allows users to access data in relational database management systems. http://www.tutorialspoint.com/sql/sql-quick-guide.htm SQL - QUICK GUIDE Copyright tutorialspoint.com What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating

More information

Part A: Data Definition Language (DDL) Schema and Catalog CREAT TABLE. Referential Triggered Actions. CSC 742 Database Management Systems

Part A: Data Definition Language (DDL) Schema and Catalog CREAT TABLE. Referential Triggered Actions. CSC 742 Database Management Systems CSC 74 Database Management Systems Topic #0: SQL Part A: Data Definition Language (DDL) Spring 00 CSC 74: DBMS by Dr. Peng Ning Spring 00 CSC 74: DBMS by Dr. Peng Ning Schema and Catalog Schema A collection

More information

Learning MySQL! Angola Africa 1246700 20609294 100990000000. SELECT name, gdp/population FROM world WHERE area > 50000000!

Learning MySQL! Angola Africa 1246700 20609294 100990000000. SELECT name, gdp/population FROM world WHERE area > 50000000! Learning MySQL http://sqlzoo.net/wiki/select_basics Angola Africa 1246700 20609294 100990000000 1) Single quotes SELECT population FROM world WHERE name = Germany 2) Division SELECT name, gdp/population

More information

History of SQL. Relational Database Languages. Tuple relational calculus ALPHA (Codd, 1970s) QUEL (based on ALPHA) Datalog (rule-based, like PROLOG)

History of SQL. Relational Database Languages. Tuple relational calculus ALPHA (Codd, 1970s) QUEL (based on ALPHA) Datalog (rule-based, like PROLOG) Relational Database Languages Tuple relational calculus ALPHA (Codd, 1970s) QUEL (based on ALPHA) Datalog (rule-based, like PROLOG) Domain relational calculus QBE (used in Access) History of SQL Standards:

More information