Module_4 Using DML Statements - Esp

Embed Size (px)

DESCRIPTION

Module_4 Using DML Statements - Esp

Citation preview

Brian Alderman | MCT, CEO / Founder of MicroTechPointPete Harris | Microsoft Senior Content PublisherDatabase Fundamentals1Meet Brian Alderman | @brianaldermanChief Executive Office, Founder MicroTechPointIndustry-recognized consultant Noted author and conference speakerBrians expertise and designs range across Microsoft operating systemsMore than 25 years of industry experienceBrian has been focused on helping IT Pros and Database Administrators (DBAs) better understand core Microsoft technologies for over 25 years. A frequent presenter at SharePoint Conferences around the world, he has authored or contributed to several SharePoint, SQL Server, and other technical books, and is a MCSE, MCT, and MCITP: SharePoint and SQL Server Administrator. Brian has a BS and MS in Computer Information Systems where he graduated summa cum laude from Regis University of Colorado Springs and lives in Scottsdale, AZ where he enjoys playing golf year round and traveling around the world.

LinkedIn /brianaldermanBlog http://brianalderman.wordpress.com

2Meet Pete Harris | @SQLPeteContent Development Manager in Microsofts Learning Experiences team Focuses on SQL Server and Web training

With Microsoft since 1995Part of the first team of developer training folks in the post-Microsoft University eraHas built a variety of content and spoken to customers all over the world

3Course ModulesDatabase Fundamentals01 | Introducing core database concepts (50 minutes) Define databases, example of relational database tables, and introduce common database terminology 02 | Relational Concepts (50 minutes)Normalization, referential integrity, and constraints03 | Creating databases and database objects (50 minutes)Data types, database objects, DDL statements, and creating scripts 04 | Using DML statements (50 minutes)DML statements, using the SELECT statement; using INSERT, UPDATE, and DELETE to manage data; indexes and triggers

05 | SQL Server Administration Fundamentals (50 minutes)SQL Server security; securing database and objects; performing database backups and database restores 04 | Uso de sentencias DMLBrian Alderman | MCT, CEO / Founder of MicroTechPointPete Harris | Microsoft Senior Content PublisherClick to edit Master subtitle style5La introduccin de las sentencias DMLUtilizacin de la sentencia SELECTModificacin de datos utilizando sentencias DMLLos ndices y disparadoresDescripcin general del mdulo6Las declaraciones DMLSELECT - recuperar datosINSERT - agregar datosACTUALIZACIN - modificar datosDELETE - eliminar los datosBULK INSERT - Importar un archivo de datos

Sentencias DML comunes8La instruccin SELECTUso de la instruccin SELECT bsicaLa instruccin SELECT se utiliza para recuperar filas y columnas de una tablaSELECT * FROM tablename

La instruccin SELECT requiere el nombre de la tabla y, o bien el * (recupera todas las columnas) o nombres de columnas especficos

Para limitar el nmero de filas devueltas puede incluir la clusula WHERE de la sentencia SELECT

Muestra instruccin SELECTSELECT BusinessEntityID, JobTitle, GenderFROM HumanResources.Employee WHERE BusinessEntityID = 2000-JAN-01

SELECT BusinessEntityID, Jobtitle, VacationHoursFROM HumanResources.EmployeeWHERE VacationHours > 80 OR BusinessEntityID