Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 Mostrar el no de tt y el nombre de tt,
- donde el profesor EULER es director.
- select t.* from tt t, dirige d, profesor p
- where t.nott= d. nott and d.idprof= p.idprof
- and p.nombre = "EULER"
- and p.apPaterno like "HERN%";
- 2 Mostrar l afecha de presentacion de aquellos tts
- dirigidos por el profesor IDALIA
- select p.fecha, p.nott
- from presentacion p, tt x, dirige d, profesor w
- where p.nott = x.nott
- and x.nott = d.nott
- and d.idprof = w.idprof
- and w.nombre like "Andr_%"
- and w.apPaterno like "Orti%"
- order by x.nott;
- 3 Mostrara la calidficacion de los sinodales de aquellso tts
- que han sido dirigidos por el profesor Zagal
- select p.nott, p.CalifSinodales, x.titulo
- from presentacion p, tt x, dirige d, profesor w
- where p.nott = x.nott
- and x.nott = d.nott
- and d.idprof = w.idprof
- and w.nombre like "Robert%"
- and w.apPaterno like "Zaga%";
- 4 Mostrar el nombre del director de aquellos tts que
- tengan como titulo la palabra REDES
- select t.nott, t.titulo,p.nombre,
- p.apPaterno, p.apMaterno
- from tt t, profesor p, dirige d
- where p.idprof = d.idprof
- and d.nott = t.nott
- and t.titulo like "%BASES DE DATOS%"
- order by p.apPaterno;
- 5 Cuantos TTs (en numero ) es director el profesor barranco
- select count(*)
- from profesor p, dirige d
- where p.idprof= d.idprof
- and p.nombre="Fabiola"
- and p.apPaterno like "Ocampo%";
- 6 mostrar el tipo de tt, ademas el dictamen de
- aquellos tts, donde la profesora Fabiola Ocampo a sido sinodal
- select p.tipo, p.dictamen, p.nott
- from presentacion p, tt t, sinodalia s, profesor x
- where p.nott=t.nott
- and t.nott=s.nott
- and ( s.s1 = x.idProf
- or s.s2 = x.idProf
- or s.s3 = x.idProf)
- and x.nombre like "fabiola%";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement