Create Database Scrum
October 6, 2022 | Author: Anonymous | Category: N/A
Short Description
Download Create Database Scrum...
Description
CREATE CREATE DATABASE DATABASE SCRUM SCRUM GO GO USE SCRUM USE SCRUM GO GO (name name= =SCRUM_dat SCRUM_dat, , filename filename= ="c:\data\SCRUM.mdf" "c:\data\SCRUM.mdf", , size= =50 50, , size maxsize= =80 80, , maxsize Filegrowth =5) Filegrowth= Log on Log on (name name= =SCRUM_log SCRUM_log, , filename= = "c:\data\SCRUM.ldf" , filename size size= =5MB MB, , maxsize= 25MB MB, , maxsize=25 Filegrowth =5MB) Filegrowth= MB) go go
CREATE TABLE roles roles CREATE TABLE ( id_rol int id_rol int IDENTITY( IDENTITY(1,1), ), rol rol varchar( varchar (20 20) ) not not null, null, CONSTRAINT PK_roles PRIMARY PRIMARY KEY (id_rol id_rol) ) CONSTRAINT PK_roles ) INSERT INTO roles roles VALUES ('ScrumMaster' 'ScrumMaster') ) INSERT INTO INSERT INTO roles roles VALUES ('ProductOwner' 'ProductOwner') ) INSERT INTO INSERT INTO INSERT INTO roles roles VALUES ('Team' 'Team') ) INSERT INTO roles roles VALUES ('Steakholders' 'Steakholders') ) INSERT INTO SELECT * FROM FROM roles roles SELECT
CREATE TABLE CREATE TABLE pais pais ( id_pais int IDENTITY( IDENTITY(1,1), ), pais pais varchar( varchar (25 25), ), id_pais int CONSTRAINT PK_pais CONSTRAINT PK_pais PRIMARY PRIMARY KEY (id_pais id_pais) ) ) INSERT INTO INSERT INTO pais pais VALUES ('El Salvador') Salvador') INSERT INTO INTO pais pais VALUES ('Guatemala' 'Guatemala') ) INSERT INSERT INSERT INTO INTO pais pais VALUES ('Costa Rica') Rica') INSERT INTO INSERT INTO pais pais VALUES ('Japon' 'Japon') ) INSERT INTO pais pais VALUES ('Estados Unidos') Unidos') INSERT INTO INSERT INTO INSERT INTO pais pais VALUES ('Argentina' 'Argentina') ) INSERT INSERT INTO INTO pais pais VALUES ('Mexico' 'Mexico') ) --------sentencias INSERT para ver su uso y limitaciones PAIS----- SELECT pais FROM FROM pais pais SELECT pais SELECT SELECT nombre, nombre,apellido apellido, ,id_pais id_pais, ,sexo sexo FROM FROM personas personas WHERE WHERE sexo sexo = 'M' 'M' OR OR id_pais id_pais = 1
SELECT apellido, apellido,sueldo sueldo FROM FROM personas personas WHERE WHERE sueldo sueldo > 500 SELECT SELECT SELECT nombre, nombre,apellido apellido, ,sueldo sueldo FROM FROM personas personas WHERE WHERE sueldo sueldo > 500 AND AND sueldo sueldo
View more...
Comments