Está en la página 1de 1

select * from Profesores

--AGREGAMOS VALORES A LA TABLA DE PROFESORES--


insert into dbo.Profesores (Nombre,Apellido,DNI,Dirección,IDProfesor,Género)
values ('Josefina','Gutierrez',25456859,'Cochabamba 140','P1','F')

insert into dbo.Profesores (Nombre,Apellido,DNI,Dirección,IDProfesor,Género)


values ('Agustín','Petri',19654123,'Santiago del Estero 555','P2','m')

insert into dbo.Profesores (Nombre,Apellido,DNI,Dirección,IDProfesor,Género)


values ('Mónica','Perez',14142258,'Huergo 1790','P3','F')

--AGREGAMOS VALORES A LA TABLA DE ALUMNOS--


insert into dbo.Alumnos (Nombre,Apellido,DNI,Curso,Dirección,IDProfesor,IDAlumno)
values ('Jorge','Fernandez',10192956,'Data Analytics','9 de Julio
747','P1','A1')

--MODIFICAMOS UN DATO DE LA TABLA PROFESORES--


update dbo.Profesores set Dirección = 'Cochabamba 130' where IDProfesor = 'P1'
update dbo.Profesores set Género = 'M' where Nombre = 'Agustín'

También podría gustarte