SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
LIC. SISTEMAS COMPUTACIONALES ADMINISTRATIVOS
FACULTAD: ADMINISTRACION
EXPERIENCIA EDUCATIVA: BASE DE DATOS
DOCENTE: CARLOS ARTURO TORRES GASTELU
TEMA: ACTIVIDAD 1
CAPTURAR BASE DE DATOS DE PRUEBA
INTEGRANTES:
GABRIELA HERNANDEZ PAXTIAN
KARINA BAIZABAL LAGUNES
GRUPO: C002
SEMESTRE: 5
INTRODUCCION
En este trabajo mostramos como se realizó la base de datos de prueba de la actividad
1 de la unidad 4.
Esta nueva base de datos se realizó mediante el Management Estudio de SQL Server,
todo fue realizado por medio de la interfaz.
Los Script que insertamos fueron ejecutados después que creamos nuestra base de
datos.
La base de datos se refiere a un banco en el cual tiene muchas funciones y relaciones
que verán mas adelante.
También se muestran los registros que insertamos en nuestra base de datos, ya que
con ellos podremos realizar consultas.
Para tener una visión más acerca de esta base de datos consulte las páginas
siguientes.
SCRIPTS DE TABLAS
ACCOUNT
CREATE TABLE [dbo].[account](
[account_id] [int] NOT NULL,
[product_cd] [varchar](10) NOT NULL,
[cust_id] [int] NOT NULL,
[open_date] [date] NULL,
[close_date] [date] NULL,
[last_activity_date] [date] NULL,
[status] [varchar](10) NULL,
[branch_id] [smallint] NULL,
[avail_balance] [decimal](10, 2) NULL,
[pending_balance] [decimal](10, 2) NULL,
[open_emp_id] [smallint] NULL,
CONSTRAINT [PK_account] PRIMARY KEY CLUSTERED
(
[account_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT
[FK_account_branch] FOREIGN KEY([branch_id])
REFERENCES [dbo].[branch] ([branch_id])
GO
ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_branch]
GO
ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT
[FK_account_customer] FOREIGN KEY([cust_id])
REFERENCES [dbo].[customer] ([cust_id])
GO
ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_customer]
GO
ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT
[FK_account_employee] FOREIGN KEY([open_emp_id])
REFERENCES [dbo].[employee] ([emp_id])
GO
ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_employee]
GO
ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT
[FK_account_product] FOREIGN KEY([product_cd])
REFERENCES [dbo].[product] ([product_cd])
GO
ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_product]
GO
BRANCH
CREATE TABLE [dbo].[branch](
[branch_id] [smallint] NOT NULL,
[name] [varchar](20) NULL,
[address] [varchar](30) NULL,
[city] [varchar](20) NULL,
[state] [varchar](2) NULL,
[zip] [varchar](12) NULL,
CONSTRAINT [PK_branch] PRIMARY KEY CLUSTERED
(
[branch_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
BUSINESS
CREATE TABLE [dbo].[business](
[cust_id] [int] NOT NULL,
[name] [varchar](40) NULL,
[state_id] [varchar](10) NULL,
[incorp_date] [date] NULL,
CONSTRAINT [PK_business] PRIMARY KEY CLUSTERED
(
[cust_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[business] WITH CHECK ADD CONSTRAINT
[FK_business_customer] FOREIGN KEY([cust_id])
REFERENCES [dbo].[customer] ([cust_id])
GO
CUSTOMER
CREATE TABLE [dbo].[customer](
[cust_id] [int] NOT NULL,
[fed_id] [varchar](12) NULL,
[cust_type_cd] [char](2) NULL,
[address] [varchar](30) NULL,
[city] [varchar](20) NULL,
[state] [varchar](20) NULL,
[postal_code] [varchar](10) NULL,
CONSTRAINT [PK_customer] PRIMARY KEY CLUSTERED
(
[cust_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
DEPARTMENT
CREATE TABLE [dbo].[department](
[dept_id] [smallint] NOT NULL,
[name] [varchar](20) NULL,
CONSTRAINT [PK_department] PRIMARY KEY CLUSTERED
(
[dept_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
EMPLOYEE
CREATE TABLE [dbo].[employee](
[emp_id] [smallint] NOT NULL,
[fname] [varchar](20) NULL,
[lname] [varchar](20) NULL,
[start_date] [date] NULL,
[end_date] [date] NULL,
[superior_emp_id] [smallint] NULL,
[dept_id] [smallint] NULL,
[title] [varchar](20) NULL,
[assigned_branch_id] [smallint] NULL,
CONSTRAINT [PK_employee] PRIMARY KEY CLUSTERED
(
[emp_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[employee] WITH CHECK ADD CONSTRAINT
[FK_employee_branch] FOREIGN KEY([assigned_branch_id])
REFERENCES [dbo].[branch] ([branch_id])
GO
ALTER TABLE [dbo].[employee] CHECK CONSTRAINT [FK_employee_branch]
GO
ALTER TABLE [dbo].[employee] WITH CHECK ADD CONSTRAINT
[FK_employee_department] FOREIGN KEY([dept_id])
REFERENCES [dbo].[department] ([dept_id])
GO
ALTER TABLE [dbo].[employee] CHECK CONSTRAINT [FK_employee_department]
GO
ALTER TABLE [dbo].[employee] WITH CHECK ADD CONSTRAINT
[FK_employee_employee] FOREIGN KEY([superior_emp_id])
REFERENCES [dbo].[employee] ([emp_id])
GO
ALTER TABLE [dbo].[employee] CHECK CONSTRAINT [FK_employee_employee]
GO
INDIVIDUAL
CREATE TABLE [dbo].[individual](
[cust_id] [int] NOT NULL,
[fname] [varchar](30) NULL,
[lname] [varchar](30) NULL,
[birth_date] [date] NULL,
CONSTRAINT [PK_individual] PRIMARY KEY CLUSTERED
(
[cust_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[individual] WITH CHECK ADD CONSTRAINT
[FK_individual_customer] FOREIGN KEY([cust_id])
REFERENCES [dbo].[customer] ([cust_id])
GO
ALTER TABLE [dbo].[individual] CHECK CONSTRAINT
[FK_individual_customer]
GO
OFFICER
CREATE TABLE [dbo].[officer](
[officer_id] [smallint] NOT NULL,
[cust_id] [int] NOT NULL,
[fname] [varchar](30) NULL,
[lname] [varchar](30) NULL,
[title] [varchar](20) NULL,
[start_date] [date] NULL,
[end_date] [date] NULL,
CONSTRAINT [PK_officer] PRIMARY KEY CLUSTERED
(
[officer_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[officer] WITH CHECK ADD CONSTRAINT
[FK_officer_business] FOREIGN KEY([cust_id])
REFERENCES [dbo].[business] ([cust_id])
GO
ALTER TABLE [dbo].[officer] CHECK CONSTRAINT [FK_officer_business]
GO
PRODUCT
CREATE TABLE [dbo].[product](
[product_cd] [varchar](10) NOT NULL,
[name] [varchar](50) NULL,
[product_type_cd] [varchar](10) NULL,
[date_offered] [date] NULL,
[date_retired] [date] NULL,
CONSTRAINT [PK_product] PRIMARY KEY CLUSTERED
(
[product_cd] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[product] WITH CHECK ADD CONSTRAINT
[FK_product_product_type] FOREIGN KEY([product_type_cd])
REFERENCES [dbo].[product_type] ([product_type_cd])
GO
ALTER TABLE [dbo].[product] CHECK CONSTRAINT [FK_product_product_type]
GO
PRODUCT TYPE
CREATE TABLE [dbo].[product_type](
[product_type_cd] [varchar](10) NOT NULL,
[name] [varchar](50) NULL,
CONSTRAINT [PK_product_type] PRIMARY KEY CLUSTERED
(
[product_type_cd] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
TRANSACTION
CREATE TABLE [dbo].[transaction](
[txn_id] [int] NOT NULL,
[txn_date] [datetime] NULL,
[account_id] [int] NOT NULL,
[txn_type_cd] [varchar](10) NULL,
[amount] [decimal](10, 2) NULL,
[teller_emp_id] [smallint] NOT NULL,
[execution_branch_id] [smallint] NOT NULL,
[funds_avail_date] [datetime] NULL,
CONSTRAINT [PK_transaction] PRIMARY KEY CLUSTERED
(
[txn_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY
= OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[transaction] WITH CHECK ADD CONSTRAINT
[FK_transaction_branch] FOREIGN KEY([execution_branch_id])
REFERENCES [dbo].[branch] ([branch_id])
GO
ALTER TABLE [dbo].[transaction] CHECK CONSTRAINT
[FK_transaction_branch]
GO
DIAGRAMA ENTIDAD RELACION
account
account_id
product_cd
cust_id
open_date
close_date
last_activity_date
status
branch_id
avail_balance
pending_balance
branch
branch_id
name
address
city
state
zip
business
cust_id
name
state_id
incorp_date
customer
cust_id
fed_id
cust_type_cd
address
city
state
postal_code
department
dept_id
name
employee
emp_id
fname
lname
start_date
end_date
superior_emp_id
dept_id
title
assigned_branch_id
individual
cust_id
fname
lname
birth_date
officer
officer_id
cust_id
fname
lname
title
start_date
end_date
product
product_cd
name
product_type_cd
date_offered
date_retired
product_type
product_type_cd
name
transaction
txn_id
txn_date
account_id
txn_type_cd
amount
teller_emp_id
execution_branch_id
funds_avail_date
REGISTROS
branch
INSERT INTO branch(branch_id, name, address, city, state, zip)
VALUES ('101','centro','Independencia #143','Veracruz','Veracruz','91712');
INSERT INTO branch(branch_id, name, address, city, state, zip)
VALUES ('102','norte','Pinos #89','Veracruz','Veracruz','91713');
INSERT INTO branch(branch_id, name, address, city, state, zip)
VALUES ('103','perisur','1 de mayo #54','Veracruz','Veracruz','91610');
INSERT INTO branch(branch_id, name, address, city, state, zip)
VALUES ('104','sur','francisco I. madero #24','Veracruz','Veracruz','91618');
department
INSERT INTO branch(dept_id, name)
VALUES ('201','Gerencia');
INSERT INTO branch(dept_id, name)
VALUES ('202','Contaduria');
INSERT INTO branch(dept_id, name)
VALUES ('203','Atencion a cliente');
employee
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('1','Michael','Smith','1/01/2010','','','201','Gerente general', '101');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('2','Susan','Sarker','1/03/2010','','1','201','Gerente', '102');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('3','Robert','Tyler','5/06/2010','5/10/2010','2','203','Cajero', '102');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('4','Susan','Hawthorne','6/12/2010','6/02/2011','2','203','Cajero', '102');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('5','John','Gooding','6/12/2010','6/02/2011','2','203','Cajero', '102');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('6','Helen','Fleming','7/01/2011','12/12/2011','2','203','Cajero', '102');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('7','Chris','Tucker','8/02/2010','','1','202','Gerente', '103');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('8','Sarah','Parker','9/04/2011','11/06/2011','7','203','Cajero', '103');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('9','Jane','Grossman','3/07/2011','12/12/2011','7','203','Cajero', '103');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('10','Tomas','Ziegler','7/07/2011','12/10/2011','7','203','contador', '103');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('11','Paula','Parker','2/03/2010','9/06/2011','7','203','contador', '103');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('12','Samantha','Jameson','17/05/2011','','1','201','Gerente', '104');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('13','John','Blake','29/05/2011','29/08/2011','12','203','Cajero', '104');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('14','Cindy','Mason','23/07/2010','23/07/2011','12','203','Cajero', '104');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('15','Frank','Portman','7/09/2011','20/10/2011','12','203','Cajero', '104');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('16','Theresa','Markham','5/03/2010','5/03/2011','12','203','Cajero', '104');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('17','Beth','Fowler','6/06/2010','28/12/2011','12','203','Cajero', '104');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('18','Rick','Tulman','1/02/2010','1/03/2011','12','202','Contador', '104');
INSERT INTO employee(emp_id, fname, lname, start_date, end_date,
superior_emp_id, dept_id, title, assigned_branch_id)
VALUES ('19','Ruben','Blades','7/08/2010','8/08/2011','12','202','Contador', '104');
product type
INSERT INTO product type(product_type_cd, name)
VALUES ('301','Ahorro');
INSERT INTO product type(product_type_cd, name)
VALUES ('302','retiro');
INSERT INTO product type(product_type_cd, name)
VALUES ('303','deposito');
INSERT INTO product type(product_type_cd, name)
VALUES ('304','credito');
product
INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired)
VALUES ('501','super nomina','301','2/01/2010','3/05/2010');
INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired)
VALUES ('504','Targeta de credito','304','8/07/2011','8/10/2011');
INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired)
VALUES ('505','Premier','301','16/05/2011','21/08/2011');
INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired)
VALUES ('506','Universitario','301','9/09/2011','21/12/2011');
INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired)
VALUES ('507','Universia','301','9/04/2011','9/06/2011');
INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired)
VALUES ('508','Accionista','301','7/09/2011','12/12/2011');
customer
INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state,
postal_code)
VALUES ('601','BZLGKR891220','FF','Fracc. Lomas del Rio M.
#99','Veracruz','Veracruz', '913456');
INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state,
postal_code)
VALUES ('602','GLMGMI900320','KK','Lopez Mateo #45','Catemaco','Veracruz',
'919957');
INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state,
postal_code)
VALUES ('603','JHLTKM871023','JH','Col. centro las vagas','Tierra blanca','Veracruz',
'913905');
INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state,
postal_code)
VALUES ('604','MJLMNR891220','MJ','Geo Pinos','Veracruz','Veracruz', '916759');
INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state,
postal_code)
VALUES ('605','LZLGMB88303','LZ','Carrizal #34','Veracruz','Veracruz', '913456');
INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state,
postal_code)
VALUES ('606','LEMGKR89403','LE','Tlaxcoco #65','Cabada','Veracruz', '910467');
account
INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date,
last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id)
VALUES ('701','501','601','4/04/2010','5/12/2010',
'5/06/2010','activada','102','600.00','100.00','3' );
INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date,
last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id)
VALUES ('702','504','601','4/04/2010','5/12/2010',
'5/06/2010','activada','102','1000.00','200.00','3' );
INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date,
last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id)
VALUES ('703','501','602','7/05/2010','7/11/2010',
'8/06/2010','activada','103','900.00','300.00','9' );
INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date,
last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id)
VALUES ('704','508','603','6/06/2010','12/12/2010',
'12/10/2010','activada','104','700.00','100.00','14' );
INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date,
last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id)
VALUES ('705','507','604','9/07/2010','4/12/2010',
'11/11/2010','activada','104','200.00','100.00','15' );
INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date,
last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id)
VALUES ('706','505','605','1/11/2010','4/03/2011',
'1/02/2011','activada','102','400.00','200.00','6' );
transaction
INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount,
teller_emp_id, execution_branch_id, funds_avail_date)
VALUES ('1','2011-02-22','701','DBT','1000.00','17','104','10-02-2011 03:34:23 p.m.');
INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount,
teller_emp_id, execution_branch_id, funds_avail_date)
VALUES ('2','10/04/2011','702','CDT','1000.00','11','103','22/04/2011 09:30:00');
INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount,
teller_emp_id, execution_branch_id, funds_avail_date)
VALUES ('3','01/06/2011','706','DBT','200.00','11','103','01/06/2011 09:00:30');
INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount,
teller_emp_id, execution_branch_id, funds_avail_date)
VALUES ('4','23/10/2011','706','DBT','100.00','19','104','23/10/2011 10:30:40');
officer
INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date)
VALUES ('801','601','Manuel','Perez','Proveedor','4-10-2011','3-12-2011');
INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date)
VALUES ('802','602','Jaime','Hernandez','Proveedor','9-02-2011','10-12-2011');
INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date)
VALUES ('803','603','Marcos','Garcia','Proveedor','8-11-2011','12-12-2011');
INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date)
VALUES ('804','604','Angelica','Lara','vendedora','9-11-2011','3-12-2011');
business
INSERT INTO business(cust_id, name, state_id, icorp_date)
VALUES ('601','Gonzalo','UYT666','4-10-2011');
INSERT INTO business(cust_id, name, state_id, incorp_date)
VALUES ('602','Miriam','HFTEG6','5/05/2011');
INSERT INTO business(cust_id, name, state_id, incorp_date)
VALUES ('603','Casimiro','JUYT67','6/03/2011');
INSERT INTO business(cust_id, name, state_id, incorp_date)
VALUES ('604','Monica','SDRE66','17/06/2011');
individual
INSERT INTO individual(cust_id, fname, lname, birth_date)
VALUES ('601','Samuel','Sanchez','5-06-1984');
INSERT INTO individual(cust_id, fname, lname, birth_date)
VALUES ('602','Carlos','Soto','6-04-1980');
INSERT INTO individual(cust_id, fname, lname, birth_date)
VALUES ('603','Lucina','Castro','3-12-1976');
INSERT INTO individual(cust_id, fname, lname, birth_date)
VALUES ('604','Jimena','Garcia','2-05-1983');

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Bd venta.sql
Bd venta.sqlBd venta.sql
Bd venta.sql
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfolio
 
Benforta
BenfortaBenforta
Benforta
 
Mocks, Spies, and Timers - Oh My!
Mocks, Spies, and Timers - Oh My!Mocks, Spies, and Timers - Oh My!
Mocks, Spies, and Timers - Oh My!
 
Sql notes
Sql notesSql notes
Sql notes
 
Dbms practical list
Dbms practical listDbms practical list
Dbms practical list
 
Sql
SqlSql
Sql
 
Select To Order By
Select  To  Order BySelect  To  Order By
Select To Order By
 
UITableView Pain Points
UITableView Pain PointsUITableView Pain Points
UITableView Pain Points
 
Ppt INFORMATIVE PRACTICES for class 11th chapter 14
Ppt INFORMATIVE PRACTICES for class 11th chapter 14Ppt INFORMATIVE PRACTICES for class 11th chapter 14
Ppt INFORMATIVE PRACTICES for class 11th chapter 14
 
Oracle helpdesk database shema
Oracle helpdesk database shemaOracle helpdesk database shema
Oracle helpdesk database shema
 
Lab
LabLab
Lab
 
Dbms lab Manual
Dbms lab ManualDbms lab Manual
Dbms lab Manual
 
SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data   SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data
 
Sql (Introduction to Structured Query language)
Sql (Introduction to Structured Query language)Sql (Introduction to Structured Query language)
Sql (Introduction to Structured Query language)
 
Actividad 1
Actividad 1Actividad 1
Actividad 1
 
dbms lab manual
dbms lab manualdbms lab manual
dbms lab manual
 
Practical Experience Building JavaFX Rich Clients
Practical Experience Building JavaFX Rich ClientsPractical Experience Building JavaFX Rich Clients
Practical Experience Building JavaFX Rich Clients
 
zekeLabs sql-slides
zekeLabs sql-slideszekeLabs sql-slides
zekeLabs sql-slides
 
Learning sql from w3schools
Learning sql from w3schoolsLearning sql from w3schools
Learning sql from w3schools
 

Andere mochten auch

Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server KARY
 
Unidad 4 actividad 2 ejercicios opcionales
Unidad 4 actividad 2 ejercicios opcionalesUnidad 4 actividad 2 ejercicios opcionales
Unidad 4 actividad 2 ejercicios opcionalesKARY
 
Unidad 4 actividad 3
Unidad 4 actividad 3Unidad 4 actividad 3
Unidad 4 actividad 3KARY
 
Bd eq.#3 actividad 1 posibles clientes y consultas
Bd eq.#3 actividad 1  posibles clientes y consultasBd eq.#3 actividad 1  posibles clientes y consultas
Bd eq.#3 actividad 1 posibles clientes y consultasKARY
 
Science Fiction Art Exhibit
Science Fiction Art ExhibitScience Fiction Art Exhibit
Science Fiction Art ExhibitEddie Swayze
 

Andere mochten auch (8)

Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
 
Unidad 4 actividad 2 ejercicios opcionales
Unidad 4 actividad 2 ejercicios opcionalesUnidad 4 actividad 2 ejercicios opcionales
Unidad 4 actividad 2 ejercicios opcionales
 
Unidad 4 actividad 3
Unidad 4 actividad 3Unidad 4 actividad 3
Unidad 4 actividad 3
 
Trabajo
TrabajoTrabajo
Trabajo
 
Bd eq.#3 actividad 1 posibles clientes y consultas
Bd eq.#3 actividad 1  posibles clientes y consultasBd eq.#3 actividad 1  posibles clientes y consultas
Bd eq.#3 actividad 1 posibles clientes y consultas
 
UNITED NUDE
UNITED NUDEUNITED NUDE
UNITED NUDE
 
Science Fiction Art Exhibit
Science Fiction Art ExhibitScience Fiction Art Exhibit
Science Fiction Art Exhibit
 
Seo training
Seo trainingSeo training
Seo training
 

Ähnlich wie Unidad 4 actividad 1

Sql vs no sql diponkar paul-april 2020-Toronto PASS
Sql vs no sql   diponkar paul-april 2020-Toronto PASSSql vs no sql   diponkar paul-april 2020-Toronto PASS
Sql vs no sql diponkar paul-april 2020-Toronto PASSDiponkar Paul
 
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)Vidyasagar Mundroy
 
Sql
SqlSql
SqlJoao
 
I am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdf
I am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdfI am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdf
I am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdfirshadkumar3
 
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Reportnyin27
 
A Tour to MySQL Commands
A Tour to MySQL CommandsA Tour to MySQL Commands
A Tour to MySQL CommandsHikmat Dhamee
 
CreacióN Tablas En Oracle
CreacióN Tablas En OracleCreacióN Tablas En Oracle
CreacióN Tablas En Oracleesacre
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson PortfolioKbengt521
 
Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)Achmad Solichin
 
Sql server 2012 transact sql dml reference
Sql server 2012 transact sql dml referenceSql server 2012 transact sql dml reference
Sql server 2012 transact sql dml referenceU.N.S.C
 
Introducción rápida a SQL
Introducción rápida a SQLIntroducción rápida a SQL
Introducción rápida a SQLCarlos Hernando
 
Chapter 07 ddl_sql
Chapter 07 ddl_sqlChapter 07 ddl_sql
Chapter 07 ddl_sqlNazir Ahmed
 
on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfformaxekochi
 
Desain dan Implementasi Basisdata (Praktikum)
Desain dan Implementasi Basisdata (Praktikum)Desain dan Implementasi Basisdata (Praktikum)
Desain dan Implementasi Basisdata (Praktikum)MSyahidNurWahid
 
Simple Strategies for faster knowledge discovery in big data
Simple Strategies for faster knowledge discovery in big dataSimple Strategies for faster knowledge discovery in big data
Simple Strategies for faster knowledge discovery in big dataRitesh Agrawal
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfoliogregmlewis
 
Introduction to SQL Antipatterns
Introduction to SQL AntipatternsIntroduction to SQL Antipatterns
Introduction to SQL AntipatternsKrishnakumar S
 
DNN Database Tips & Tricks
DNN Database Tips & TricksDNN Database Tips & Tricks
DNN Database Tips & TricksWill Strohl
 

Ähnlich wie Unidad 4 actividad 1 (20)

Sql vs no sql diponkar paul-april 2020-Toronto PASS
Sql vs no sql   diponkar paul-april 2020-Toronto PASSSql vs no sql   diponkar paul-april 2020-Toronto PASS
Sql vs no sql diponkar paul-april 2020-Toronto PASS
 
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)
 
Sql
SqlSql
Sql
 
I am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdf
I am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdfI am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdf
I am getting an errormsg 911, Level 16, State 1, Line 12 Database.pdf
 
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Report
 
A Tour to MySQL Commands
A Tour to MySQL CommandsA Tour to MySQL Commands
A Tour to MySQL Commands
 
Les09
Les09Les09
Les09
 
CreacióN Tablas En Oracle
CreacióN Tablas En OracleCreacióN Tablas En Oracle
CreacióN Tablas En Oracle
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
 
Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)
 
Sql server 2012 transact sql dml reference
Sql server 2012 transact sql dml referenceSql server 2012 transact sql dml reference
Sql server 2012 transact sql dml reference
 
SQL Tips Debugging Joins.pptx
SQL Tips Debugging Joins.pptxSQL Tips Debugging Joins.pptx
SQL Tips Debugging Joins.pptx
 
Introducción rápida a SQL
Introducción rápida a SQLIntroducción rápida a SQL
Introducción rápida a SQL
 
Chapter 07 ddl_sql
Chapter 07 ddl_sqlChapter 07 ddl_sql
Chapter 07 ddl_sql
 
on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdf
 
Desain dan Implementasi Basisdata (Praktikum)
Desain dan Implementasi Basisdata (Praktikum)Desain dan Implementasi Basisdata (Praktikum)
Desain dan Implementasi Basisdata (Praktikum)
 
Simple Strategies for faster knowledge discovery in big data
Simple Strategies for faster knowledge discovery in big dataSimple Strategies for faster knowledge discovery in big data
Simple Strategies for faster knowledge discovery in big data
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfolio
 
Introduction to SQL Antipatterns
Introduction to SQL AntipatternsIntroduction to SQL Antipatterns
Introduction to SQL Antipatterns
 
DNN Database Tips & Tricks
DNN Database Tips & TricksDNN Database Tips & Tricks
DNN Database Tips & Tricks
 

Mehr von KARY

Actividad 1
Actividad 1Actividad 1
Actividad 1KARY
 
Actividad extra ansi sql
Actividad extra ansi sqlActividad extra ansi sql
Actividad extra ansi sqlKARY
 
Unidad 4 actividad 3
Unidad 4 actividad 3Unidad 4 actividad 3
Unidad 4 actividad 3KARY
 
Unidad 4 actividad 3
Unidad 4 actividad 3Unidad 4 actividad 3
Unidad 4 actividad 3KARY
 
Unidad 3 actividad 2
Unidad 3 actividad 2Unidad 3 actividad 2
Unidad 3 actividad 2KARY
 
Unidad 3 actividad 2
Unidad 3 actividad 2Unidad 3 actividad 2
Unidad 3 actividad 2KARY
 
Unidad 3 actividad 2
Unidad 3 actividad 2Unidad 3 actividad 2
Unidad 3 actividad 2KARY
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1KARY
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1KARY
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1KARY
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1KARY
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1KARY
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1KARY
 
Bd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdBd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdKARY
 
Bd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdBd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdKARY
 
Bd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdBd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdKARY
 
Bd eq.#3 actividad 1 posibles clientes y consultas
Bd eq.#3 actividad 1  posibles clientes y consultasBd eq.#3 actividad 1  posibles clientes y consultas
Bd eq.#3 actividad 1 posibles clientes y consultasKARY
 
Bd eq.#3 actividad 1 posibles clientes y consultas
Bd eq.#3 actividad 1  posibles clientes y consultasBd eq.#3 actividad 1  posibles clientes y consultas
Bd eq.#3 actividad 1 posibles clientes y consultasKARY
 
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server KARY
 
Bd eq.#3 actividad 2 reporte instalacion mys ql
Bd eq.#3 actividad 2 reporte instalacion mys qlBd eq.#3 actividad 2 reporte instalacion mys ql
Bd eq.#3 actividad 2 reporte instalacion mys qlKARY
 

Mehr von KARY (20)

Actividad 1
Actividad 1Actividad 1
Actividad 1
 
Actividad extra ansi sql
Actividad extra ansi sqlActividad extra ansi sql
Actividad extra ansi sql
 
Unidad 4 actividad 3
Unidad 4 actividad 3Unidad 4 actividad 3
Unidad 4 actividad 3
 
Unidad 4 actividad 3
Unidad 4 actividad 3Unidad 4 actividad 3
Unidad 4 actividad 3
 
Unidad 3 actividad 2
Unidad 3 actividad 2Unidad 3 actividad 2
Unidad 3 actividad 2
 
Unidad 3 actividad 2
Unidad 3 actividad 2Unidad 3 actividad 2
Unidad 3 actividad 2
 
Unidad 3 actividad 2
Unidad 3 actividad 2Unidad 3 actividad 2
Unidad 3 actividad 2
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1
 
Unidad 3 actividad 1
Unidad 3 actividad 1Unidad 3 actividad 1
Unidad 3 actividad 1
 
Bd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdBd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbd
 
Bd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdBd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbd
 
Bd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbdBd eq.#3 actividad clase reglas smbd
Bd eq.#3 actividad clase reglas smbd
 
Bd eq.#3 actividad 1 posibles clientes y consultas
Bd eq.#3 actividad 1  posibles clientes y consultasBd eq.#3 actividad 1  posibles clientes y consultas
Bd eq.#3 actividad 1 posibles clientes y consultas
 
Bd eq.#3 actividad 1 posibles clientes y consultas
Bd eq.#3 actividad 1  posibles clientes y consultasBd eq.#3 actividad 1  posibles clientes y consultas
Bd eq.#3 actividad 1 posibles clientes y consultas
 
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
Bd eq.#3 actividad 2 reporte instalacion microsoft sql server
 
Bd eq.#3 actividad 2 reporte instalacion mys ql
Bd eq.#3 actividad 2 reporte instalacion mys qlBd eq.#3 actividad 2 reporte instalacion mys ql
Bd eq.#3 actividad 2 reporte instalacion mys ql
 

Kürzlich hochgeladen

Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Lviv Startup Club
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...amitlee9823
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxpriyanshujha201
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...lizamodels9
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...amitlee9823
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataExhibitors Data
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMANIlamathiKannappan
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756dollysharma2066
 

Kürzlich hochgeladen (20)

Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
Yaroslav Rozhankivskyy: Три складові і три передумови максимальної продуктивн...
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 

Unidad 4 actividad 1

  • 1. LIC. SISTEMAS COMPUTACIONALES ADMINISTRATIVOS FACULTAD: ADMINISTRACION EXPERIENCIA EDUCATIVA: BASE DE DATOS DOCENTE: CARLOS ARTURO TORRES GASTELU TEMA: ACTIVIDAD 1 CAPTURAR BASE DE DATOS DE PRUEBA INTEGRANTES: GABRIELA HERNANDEZ PAXTIAN KARINA BAIZABAL LAGUNES GRUPO: C002 SEMESTRE: 5
  • 2. INTRODUCCION En este trabajo mostramos como se realizó la base de datos de prueba de la actividad 1 de la unidad 4. Esta nueva base de datos se realizó mediante el Management Estudio de SQL Server, todo fue realizado por medio de la interfaz. Los Script que insertamos fueron ejecutados después que creamos nuestra base de datos. La base de datos se refiere a un banco en el cual tiene muchas funciones y relaciones que verán mas adelante. También se muestran los registros que insertamos en nuestra base de datos, ya que con ellos podremos realizar consultas. Para tener una visión más acerca de esta base de datos consulte las páginas siguientes.
  • 3. SCRIPTS DE TABLAS ACCOUNT CREATE TABLE [dbo].[account]( [account_id] [int] NOT NULL, [product_cd] [varchar](10) NOT NULL, [cust_id] [int] NOT NULL, [open_date] [date] NULL, [close_date] [date] NULL, [last_activity_date] [date] NULL, [status] [varchar](10) NULL, [branch_id] [smallint] NULL, [avail_balance] [decimal](10, 2) NULL, [pending_balance] [decimal](10, 2) NULL, [open_emp_id] [smallint] NULL, CONSTRAINT [PK_account] PRIMARY KEY CLUSTERED ( [account_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT [FK_account_branch] FOREIGN KEY([branch_id]) REFERENCES [dbo].[branch] ([branch_id]) GO ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_branch] GO ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT [FK_account_customer] FOREIGN KEY([cust_id]) REFERENCES [dbo].[customer] ([cust_id]) GO ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_customer] GO ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT [FK_account_employee] FOREIGN KEY([open_emp_id]) REFERENCES [dbo].[employee] ([emp_id]) GO ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_employee] GO ALTER TABLE [dbo].[account] WITH CHECK ADD CONSTRAINT [FK_account_product] FOREIGN KEY([product_cd]) REFERENCES [dbo].[product] ([product_cd]) GO
  • 4. ALTER TABLE [dbo].[account] CHECK CONSTRAINT [FK_account_product] GO BRANCH CREATE TABLE [dbo].[branch]( [branch_id] [smallint] NOT NULL, [name] [varchar](20) NULL, [address] [varchar](30) NULL, [city] [varchar](20) NULL, [state] [varchar](2) NULL, [zip] [varchar](12) NULL, CONSTRAINT [PK_branch] PRIMARY KEY CLUSTERED ( [branch_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] BUSINESS CREATE TABLE [dbo].[business]( [cust_id] [int] NOT NULL, [name] [varchar](40) NULL, [state_id] [varchar](10) NULL, [incorp_date] [date] NULL, CONSTRAINT [PK_business] PRIMARY KEY CLUSTERED ( [cust_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[business] WITH CHECK ADD CONSTRAINT [FK_business_customer] FOREIGN KEY([cust_id]) REFERENCES [dbo].[customer] ([cust_id]) GO
  • 5. CUSTOMER CREATE TABLE [dbo].[customer]( [cust_id] [int] NOT NULL, [fed_id] [varchar](12) NULL, [cust_type_cd] [char](2) NULL, [address] [varchar](30) NULL, [city] [varchar](20) NULL, [state] [varchar](20) NULL, [postal_code] [varchar](10) NULL, CONSTRAINT [PK_customer] PRIMARY KEY CLUSTERED ( [cust_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] DEPARTMENT CREATE TABLE [dbo].[department]( [dept_id] [smallint] NOT NULL, [name] [varchar](20) NULL, CONSTRAINT [PK_department] PRIMARY KEY CLUSTERED ( [dept_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] EMPLOYEE CREATE TABLE [dbo].[employee]( [emp_id] [smallint] NOT NULL, [fname] [varchar](20) NULL, [lname] [varchar](20) NULL, [start_date] [date] NULL, [end_date] [date] NULL, [superior_emp_id] [smallint] NULL, [dept_id] [smallint] NULL, [title] [varchar](20) NULL, [assigned_branch_id] [smallint] NULL, CONSTRAINT [PK_employee] PRIMARY KEY CLUSTERED ( [emp_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF
  • 6. GO ALTER TABLE [dbo].[employee] WITH CHECK ADD CONSTRAINT [FK_employee_branch] FOREIGN KEY([assigned_branch_id]) REFERENCES [dbo].[branch] ([branch_id]) GO ALTER TABLE [dbo].[employee] CHECK CONSTRAINT [FK_employee_branch] GO ALTER TABLE [dbo].[employee] WITH CHECK ADD CONSTRAINT [FK_employee_department] FOREIGN KEY([dept_id]) REFERENCES [dbo].[department] ([dept_id]) GO ALTER TABLE [dbo].[employee] CHECK CONSTRAINT [FK_employee_department] GO ALTER TABLE [dbo].[employee] WITH CHECK ADD CONSTRAINT [FK_employee_employee] FOREIGN KEY([superior_emp_id]) REFERENCES [dbo].[employee] ([emp_id]) GO ALTER TABLE [dbo].[employee] CHECK CONSTRAINT [FK_employee_employee] GO INDIVIDUAL CREATE TABLE [dbo].[individual]( [cust_id] [int] NOT NULL, [fname] [varchar](30) NULL, [lname] [varchar](30) NULL, [birth_date] [date] NULL, CONSTRAINT [PK_individual] PRIMARY KEY CLUSTERED ( [cust_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[individual] WITH CHECK ADD CONSTRAINT [FK_individual_customer] FOREIGN KEY([cust_id]) REFERENCES [dbo].[customer] ([cust_id]) GO ALTER TABLE [dbo].[individual] CHECK CONSTRAINT [FK_individual_customer] GO OFFICER CREATE TABLE [dbo].[officer]( [officer_id] [smallint] NOT NULL, [cust_id] [int] NOT NULL, [fname] [varchar](30) NULL,
  • 7. [lname] [varchar](30) NULL, [title] [varchar](20) NULL, [start_date] [date] NULL, [end_date] [date] NULL, CONSTRAINT [PK_officer] PRIMARY KEY CLUSTERED ( [officer_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[officer] WITH CHECK ADD CONSTRAINT [FK_officer_business] FOREIGN KEY([cust_id]) REFERENCES [dbo].[business] ([cust_id]) GO ALTER TABLE [dbo].[officer] CHECK CONSTRAINT [FK_officer_business] GO PRODUCT CREATE TABLE [dbo].[product]( [product_cd] [varchar](10) NOT NULL, [name] [varchar](50) NULL, [product_type_cd] [varchar](10) NULL, [date_offered] [date] NULL, [date_retired] [date] NULL, CONSTRAINT [PK_product] PRIMARY KEY CLUSTERED ( [product_cd] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[product] WITH CHECK ADD CONSTRAINT [FK_product_product_type] FOREIGN KEY([product_type_cd]) REFERENCES [dbo].[product_type] ([product_type_cd]) GO ALTER TABLE [dbo].[product] CHECK CONSTRAINT [FK_product_product_type] GO
  • 8. PRODUCT TYPE CREATE TABLE [dbo].[product_type]( [product_type_cd] [varchar](10) NOT NULL, [name] [varchar](50) NULL, CONSTRAINT [PK_product_type] PRIMARY KEY CLUSTERED ( [product_type_cd] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO TRANSACTION CREATE TABLE [dbo].[transaction]( [txn_id] [int] NOT NULL, [txn_date] [datetime] NULL, [account_id] [int] NOT NULL, [txn_type_cd] [varchar](10) NULL, [amount] [decimal](10, 2) NULL, [teller_emp_id] [smallint] NOT NULL, [execution_branch_id] [smallint] NOT NULL, [funds_avail_date] [datetime] NULL, CONSTRAINT [PK_transaction] PRIMARY KEY CLUSTERED ( [txn_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[transaction] WITH CHECK ADD CONSTRAINT [FK_transaction_branch] FOREIGN KEY([execution_branch_id]) REFERENCES [dbo].[branch] ([branch_id]) GO ALTER TABLE [dbo].[transaction] CHECK CONSTRAINT [FK_transaction_branch] GO
  • 10. REGISTROS branch INSERT INTO branch(branch_id, name, address, city, state, zip) VALUES ('101','centro','Independencia #143','Veracruz','Veracruz','91712'); INSERT INTO branch(branch_id, name, address, city, state, zip) VALUES ('102','norte','Pinos #89','Veracruz','Veracruz','91713'); INSERT INTO branch(branch_id, name, address, city, state, zip) VALUES ('103','perisur','1 de mayo #54','Veracruz','Veracruz','91610'); INSERT INTO branch(branch_id, name, address, city, state, zip) VALUES ('104','sur','francisco I. madero #24','Veracruz','Veracruz','91618'); department INSERT INTO branch(dept_id, name) VALUES ('201','Gerencia'); INSERT INTO branch(dept_id, name) VALUES ('202','Contaduria'); INSERT INTO branch(dept_id, name) VALUES ('203','Atencion a cliente'); employee INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('1','Michael','Smith','1/01/2010','','','201','Gerente general', '101'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('2','Susan','Sarker','1/03/2010','','1','201','Gerente', '102'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('3','Robert','Tyler','5/06/2010','5/10/2010','2','203','Cajero', '102'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('4','Susan','Hawthorne','6/12/2010','6/02/2011','2','203','Cajero', '102'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('5','John','Gooding','6/12/2010','6/02/2011','2','203','Cajero', '102'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('6','Helen','Fleming','7/01/2011','12/12/2011','2','203','Cajero', '102'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('7','Chris','Tucker','8/02/2010','','1','202','Gerente', '103'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('8','Sarah','Parker','9/04/2011','11/06/2011','7','203','Cajero', '103'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('9','Jane','Grossman','3/07/2011','12/12/2011','7','203','Cajero', '103');
  • 11. INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('10','Tomas','Ziegler','7/07/2011','12/10/2011','7','203','contador', '103'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('11','Paula','Parker','2/03/2010','9/06/2011','7','203','contador', '103'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('12','Samantha','Jameson','17/05/2011','','1','201','Gerente', '104'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('13','John','Blake','29/05/2011','29/08/2011','12','203','Cajero', '104'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('14','Cindy','Mason','23/07/2010','23/07/2011','12','203','Cajero', '104'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('15','Frank','Portman','7/09/2011','20/10/2011','12','203','Cajero', '104'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('16','Theresa','Markham','5/03/2010','5/03/2011','12','203','Cajero', '104'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('17','Beth','Fowler','6/06/2010','28/12/2011','12','203','Cajero', '104'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('18','Rick','Tulman','1/02/2010','1/03/2011','12','202','Contador', '104'); INSERT INTO employee(emp_id, fname, lname, start_date, end_date, superior_emp_id, dept_id, title, assigned_branch_id) VALUES ('19','Ruben','Blades','7/08/2010','8/08/2011','12','202','Contador', '104'); product type INSERT INTO product type(product_type_cd, name) VALUES ('301','Ahorro'); INSERT INTO product type(product_type_cd, name) VALUES ('302','retiro'); INSERT INTO product type(product_type_cd, name) VALUES ('303','deposito'); INSERT INTO product type(product_type_cd, name) VALUES ('304','credito');
  • 12. product INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired) VALUES ('501','super nomina','301','2/01/2010','3/05/2010'); INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired) VALUES ('504','Targeta de credito','304','8/07/2011','8/10/2011'); INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired) VALUES ('505','Premier','301','16/05/2011','21/08/2011'); INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired) VALUES ('506','Universitario','301','9/09/2011','21/12/2011'); INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired) VALUES ('507','Universia','301','9/04/2011','9/06/2011'); INSERT INTO product(product_cd, name, product_type_cd, date_offered, date_retired) VALUES ('508','Accionista','301','7/09/2011','12/12/2011'); customer INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state, postal_code) VALUES ('601','BZLGKR891220','FF','Fracc. Lomas del Rio M. #99','Veracruz','Veracruz', '913456'); INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state, postal_code) VALUES ('602','GLMGMI900320','KK','Lopez Mateo #45','Catemaco','Veracruz', '919957'); INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state, postal_code) VALUES ('603','JHLTKM871023','JH','Col. centro las vagas','Tierra blanca','Veracruz', '913905'); INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state, postal_code) VALUES ('604','MJLMNR891220','MJ','Geo Pinos','Veracruz','Veracruz', '916759');
  • 13. INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state, postal_code) VALUES ('605','LZLGMB88303','LZ','Carrizal #34','Veracruz','Veracruz', '913456'); INSERT INTO customer(cust_id, fed_id, cust_type_cd, address, city, state, postal_code) VALUES ('606','LEMGKR89403','LE','Tlaxcoco #65','Cabada','Veracruz', '910467'); account INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date, last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id) VALUES ('701','501','601','4/04/2010','5/12/2010', '5/06/2010','activada','102','600.00','100.00','3' ); INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date, last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id) VALUES ('702','504','601','4/04/2010','5/12/2010', '5/06/2010','activada','102','1000.00','200.00','3' ); INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date, last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id) VALUES ('703','501','602','7/05/2010','7/11/2010', '8/06/2010','activada','103','900.00','300.00','9' ); INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date, last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id) VALUES ('704','508','603','6/06/2010','12/12/2010', '12/10/2010','activada','104','700.00','100.00','14' ); INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date, last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id) VALUES ('705','507','604','9/07/2010','4/12/2010', '11/11/2010','activada','104','200.00','100.00','15' ); INSERT INTO account(account_id, product_cd, cust_id, open_date, close_date, last_activity_date, status, branch_id, avail_balance, pending_balance, open_emp_id) VALUES ('706','505','605','1/11/2010','4/03/2011', '1/02/2011','activada','102','400.00','200.00','6' ); transaction INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount, teller_emp_id, execution_branch_id, funds_avail_date) VALUES ('1','2011-02-22','701','DBT','1000.00','17','104','10-02-2011 03:34:23 p.m.'); INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount, teller_emp_id, execution_branch_id, funds_avail_date) VALUES ('2','10/04/2011','702','CDT','1000.00','11','103','22/04/2011 09:30:00');
  • 14. INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount, teller_emp_id, execution_branch_id, funds_avail_date) VALUES ('3','01/06/2011','706','DBT','200.00','11','103','01/06/2011 09:00:30'); INSERT INTO transaction(txn_id, txn_date, account_id, txn_type_cd, amount, teller_emp_id, execution_branch_id, funds_avail_date) VALUES ('4','23/10/2011','706','DBT','100.00','19','104','23/10/2011 10:30:40'); officer INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date) VALUES ('801','601','Manuel','Perez','Proveedor','4-10-2011','3-12-2011'); INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date) VALUES ('802','602','Jaime','Hernandez','Proveedor','9-02-2011','10-12-2011'); INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date) VALUES ('803','603','Marcos','Garcia','Proveedor','8-11-2011','12-12-2011'); INSERT INTO officer(officer_id, cust_id, fname, lname, title, start_date, end_date) VALUES ('804','604','Angelica','Lara','vendedora','9-11-2011','3-12-2011'); business INSERT INTO business(cust_id, name, state_id, icorp_date) VALUES ('601','Gonzalo','UYT666','4-10-2011'); INSERT INTO business(cust_id, name, state_id, incorp_date) VALUES ('602','Miriam','HFTEG6','5/05/2011'); INSERT INTO business(cust_id, name, state_id, incorp_date) VALUES ('603','Casimiro','JUYT67','6/03/2011'); INSERT INTO business(cust_id, name, state_id, incorp_date) VALUES ('604','Monica','SDRE66','17/06/2011'); individual INSERT INTO individual(cust_id, fname, lname, birth_date) VALUES ('601','Samuel','Sanchez','5-06-1984'); INSERT INTO individual(cust_id, fname, lname, birth_date) VALUES ('602','Carlos','Soto','6-04-1980'); INSERT INTO individual(cust_id, fname, lname, birth_date) VALUES ('603','Lucina','Castro','3-12-1976'); INSERT INTO individual(cust_id, fname, lname, birth_date) VALUES ('604','Jimena','Garcia','2-05-1983');