• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
LENGUAJE ESTANDAR SQL
 

LENGUAJE ESTANDAR SQL

on

  • 2,150 views

ING. EDGAR SANDOVAL

ING. EDGAR SANDOVAL

Statistics

Views

Total Views
2,150
Views on SlideShare
2,148
Embed Views
2

Actions

Likes
2
Downloads
85
Comments
0

1 Embed 2

http://www.slideshare.net 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    LENGUAJE ESTANDAR SQL LENGUAJE ESTANDAR SQL Presentation Transcript

    • EJEMPLO DDL CREATE TABLE quot;INVESTIGADORquot; ( quot;DNI_INVESTIGADORRquot; CHAR(9) NOT NULL ENABLE, quot;NOMBRE_INVESTIGADORquot; CHAR(50) NOT NULL ENABLE, quot;CIUDADquot; CHAR(15), quot;TELEFONOquot; CHAR(12), CONSTRAINT quot;INVESTIGADOR_PKquot; PRIMARY KEY (quot;DNI_INVESTIGADORRquot;) ENABLE ) /
    • EJEMPLO DML •SELECT * •FROM INVESTIGADOR; •WHERE CIUDAD=TULUA
    • EJEMPLO DE DCL CREATE TABLE quot;INVESTIGADORquot; ( quot;DNI_INVESTIGADORRquot; CHAR(9) NOT NULL ENABLE, quot;NOMBRE_INVESTIGADORquot; CHAR(50) NOT NULL ENABLE, quot;CIUDADquot; CHAR(15), quot;TELEFONOquot; CHAR(12), CONSTRAINT quot;INVESTIGADOR_PKquot; PRIMARY KEY (quot;DNI_INVESTIGADORRquot;) ENABLE ) / alter table quot;INVESTIGADORquot; rename column quot;DNI_INVESTIGADORRquot; to quot;DNI_INVESTIGADORquot; /
    • MOTOR DE ACCES SELECT DEPARTAMENTO.NOMBRE, DEPARTAMENTO.NUMEROD, EMPLE ADO.NOMBRE FROM DEPARTAMENTO, EMPLEADO WHERE (((DEPARTAMENTO.NOMBRE)='INVESTIGACION') AND ((DEPARTAMENTO.NUMEROD)=[EMPLEADO].[NUMEROD]));
    • EJEMPLO DE RENOMBRAMIENTO • select nombre,ciudad,tipoparticipacion from asignado_a, investigador Where (asignado_a.codigoinvestigador=investigador.codigoinv estigador) • select i.nombre, i.ciudad, a.tipoparticipacion from asignado_a a, investigador i where (a.codigoinvestigador=i.codigoinvestigador)
    • TALLER • REALIZAR EL TALLER NUMERO 1