Said Salomon Unitrin Direct Insurance T-SQL for Beginners Said Salomon CODE CAMP 2009.2.

Slides:



Advertisements
Similar presentations
Chapter 4 Joining Multiple Tables
Advertisements

1 SQL Server Management Studio SQL DDL CREATE TABLE Constraints ALTER TABLE DROP TABLE The GUI way Steen Jensen, autumn 2013.
Copyright © by Royal Institute of Information Technology Introduction To Structured Query Language (SQL) 1.
Said Salomon Unitrin Direct Insurance T-SQL Aggregate Functions Said Salomon.
1 Minggu 4, Pertemuan 8 SQL: Data Manipulation (Cont.) Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 8 Advanced SQL.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 8 Advanced SQL.
Chapter 6 SQL: Data Manipulation Cont’d. 2 ANY and ALL u ANY and ALL used with subqueries that produce single column of numbers u ALL –Condition only.
Inner join, self join and Outer join Sen Zhang. Joining data together is one of the most significant strengths of a relational database. A join is a query.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Introduction to SQL Structured Query Language Martin Egerhill.
SQL Basics. SQL SQL (Structured Query Language) is a special-purpose programming language designed from managing data in relational database management.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
Said Salomon  I has over 25 year experience as an Information Technology Professional. He has a vast array of abilities.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 8 Advanced SQL.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
ASP.NET Programming with C# and SQL Server First Edition
Learningcomputer.com SQL Server 2008 – Introduction to Transact SQL.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Said Salomon Unitrin Direct Insurance T-SQL Date and Time Functions Said Salomon.
1 Working with MS SQL Server Textbook Chapter 14.
Lecture 2 of Advanced Databases Advanced SQL Instructor: Mr.Ahmed Al Astal.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
SQL 101 for Web Developers 14 November What is a database and why have one? Tables, relationships, normalization SQL – What SQL is and isn’t – CRUD:
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
1 Intro to JOINs SQL INNER JOIN SQL OUTER JOIN SQL FULL JOIN SQL CROSS JOIN Intro to VIEWs Simple VIEWs Considerations about VIEWs VIEWs as filters ALTER.
WinGapSQL and GIS Mark Lovett & Rusty Scoven
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
SQL Data Definition Language (DDL) Using Microsoft SQL Server 1SDL Data Definition Language (DDL)
SQL SQL Server : Overview SQL : Overview Types of SQL Database : Creation Tables : Creation & Manipulation Data : Creation & Manipulation Data : Retrieving.
April 10, Platinum and Gold Partners Data Encryption and Key Management in SQL Said Salomon Database Administrator Unitrin Direct Insurance.
Today’s Topics Backup Recap Restoration and Recovery T-SQL Commands –INSERT –UPDATE –DELETE –BEGIN TRAN –COMMIT TRAN –ROLLBACK TRAN.
CS146 References: ORACLE 9i PROGRAMMING A Primer Rajshekhar Sunderraman
Chapter 4Introduction to Oracle9i: SQL1 Chapter 4 Joining Multiple Tables.
Information Technologies and Microsoft SQL Server Day 2 by Alper Özpınar
Intro to SQL Management Studio. Please Be Sure!! Make sure that your access is read only. If it isn’t, you have the potential to change data within your.
DAT602 Database Application Development Lecture 3 Review of SQL Language.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
SQL LANGUAGE and Relational Data Model TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 (Part II) INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor.
1 DBS201: More on SQL Lecture 3. 2 Agenda How to use SQL to update table definitions How to update data in a table How to join tables together.
>> Introduction to MySQL. Introduction Structured Query Language (SQL) – Standard Database Language – Manage Data in a DBMS (Database Management System)
A Guide to SQL, Eighth Edition Chapter Five Multiple-Table Queries.
INFANL01-3 ANALYSE 3 WEEK 3 March 2015 Institute voor Communication, Media en Informatietechnology.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Said Salomon Unitrin Direct Insurance T-SQL Avoiding cursors Said Salomon.
SQL LANGUAGE TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
Advanced Database & Client Server Introduction to MS SQL Server 2000 and Transact SQL -
MY SQL INTRODUCTION TO LOGIN BASIC COMMANDS OTHER COMMANDS.
Lecture 9 Using Structured Query Language (SQL) Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant.
 MySQL  DDL ◦ Create ◦ Alter  DML ◦ Insert ◦ Select ◦ Update ◦ Delete  DDL(again) ◦ Drop ◦ Truncate.
Select Complex Queries Database Management Fundamentals LESSON 3.1b.
SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English.
Web Systems & Technologies
CHAPTER 7 DATABASE ACCESS THROUGH WEB
Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha
ISC440: Web Programming 2 Server-side Scripting PHP 3
Chapter Name SQL: Data Manipulation
Introduction To Structured Query Language (SQL)
SQL Fundamentals in Three Hours
Introduction To Structured Query Language (SQL)
Chapter Name SQL: Data Manipulation Transparencies JOINS
Contents Preface I Introduction Lesson Objectives I-2
Trainer: Bach Ngoc Toan– TEDU Website:
Presentation transcript:

Said Salomon Unitrin Direct Insurance T-SQL for Beginners Said Salomon CODE CAMP

 I have over 25 year experience IT. I have a vast array of abilities in the field in the areas of Network, Desktop Support, DBA, Staff Project Management, Application Software Development, Business Analysis and Quality Assurance. I have Microsoft certifications as MCTS, MCPS, and MCNPS, and multiple certifications from the Insurance Institute of America.

 What does the T stand for?  Transact  Structured Query Language  SQL is a database computer language designed for managing data in database management systems

 A way to organize large amounts of data  A collation of spreadsheets  A database is a collations a Tables  A server is a collation of databases

 A Table is a collations of fields (columns).  Tables have rows and each rows has columns  Tables are connected together logically with keys and or indexes.

 Basics of Microsoft SQL Management Studio  How to connect to a server  How to explore a database on the server  Basic of how to use the interface to run SQL scripts  Create, Drop  Insert, Update  Select, Join

 INNER Join – Result will contain matching records from both tables  LEFT Join – Result will contain all records from the “left” table even if the join-condition does not find any matching record in the “right” table  RIGHT Join – Result will contain all records from the “right” table even if the join-condition does not find any matching record in the “left” table  FULL Join – Result will contain all records from both tables, and fill in NULLs for missing matches on either side  CROSS Join – Result will contain returns the cartesian product of the sets of records from the two joined tables (Dangerous with large tables)

SELECT [ ALL | DISTINCT ] [ TOP ( expression ) [ PERCENT ] [ WITH TIES ] ] ::= { * | { table_name | view_name | table_alias }.* | { [ { table_name | view_name | table_alias }. ] { column_name | $IDENTITY | $ROWGUID } | udt_column_name [ {. | :: } { { property_name | field_name } | method_name ( argument [,...n] ) } ] | expression [ [ AS ] column_alias ] } | column_alias = expression } [,...n ]

[ WITH [,...n ] ] INSERT [ TOP ( expression ) [ PERCENT ] ] [ INTO ] { | rowset_function_limited [ WITH ( [...n ] ) ] } { [ ( column_list ) ] [ ] { VALUES ( { DEFAULT | NULL | expression } [,...n ] ) [,...n ] | derived_table | execute_statement | | DEFAULT VALUES } } [; ] ::= { [ server_name. database_name. schema_name. | database_name.[ schema_name ]. | schema_name. ] table_or_view_name } ::= SELECT FROM ( ) [AS] table_alias [ ( column_alias [,...n ] ) ] [ WHERE ] [ OPTION ( [,...n ] ) ]

[ WITH [...n] ] UPDATE [ TOP ( expression ) [ PERCENT ] ] { | rowset_function_limited [ WITH ( [...n ] ) ] } SET { column_name = { expression | DEFAULT | NULL } | { udt_column_name.{ { property_name = expression | field_name = expression } | method_name ( argument [,...n ] ) } } | column_name {.WRITE ) } = expression = column = expression | column_name { += | -= | *= | /= | %= | &= | ^= | |= } expression { += | -= | *= | /= | %= | &= | ^= | |= } expression = column { += | -= | *= | /= | %= | &= | ^= | |= } expression } [,...n ] [ ] [ FROM{ } [,...n ] ] [ WHERE { | { [ CURRENT OF { { [ GLOBAL ] cursor_name } | cursor_variable_name } ] } } ] [ OPTION ( [,...n ] ) ] [ ; ] ::= { [ server_name. database_name. schema_name. | database_name.[ schema_name ]. | schema_name. ] table_or_view_name}

 Sample databases  Intro course  SQL Server 2008, Dev Edition  My Twitter SaidSalomon