Download presentation

Presentation is loading. Please wait.

Published byEliezer Ensor Modified over 2 years ago

1
2009NOEA/IT - Databaser/VWiSOL1 VW i SQL

2
2009NOEA/IT - Databaser/VWiSOL2 VW i SQL 1: select navn from lev where lby = 'berlin' 2: select model from bil where fabrik='wolfsburg'

3
2009NOEA/IT - Databaser/VWiSOL3 VW i SQL 3: select distinct lnr from bil,lvb where bil.bnr=lvb.bnr and model='jetta’ 4: select distinct model from bil,lvb where bil.bnr=lvb.bnr and lnr='l1'

4
2009NOEA/IT - Databaser/VWiSOL4 VW i SQL 5: select navn from lev where exists (select * from bil,lvb where bil.bnr=lvb.bnr and lvb.lnr=lev.lnr and model='golf’ and exists (select * from bil,lvb where bil.bnr=lvb.bnr and lvb.lnr=lev.lnr and model='passat'))

5
2009NOEA/IT - Databaser/VWiSOL5 Alternativt – 5b (select navn from lev,lvb,bil where lev.lnr=lvb.lnr and lvb.bnr=bil.bnr and model='passat') intersect (select navn from lev,lvb,bil where lev.lnr=lvb.lnr and lvb.bnr=bil.bnr and model='golf')

6
2009NOEA/IT - Databaser/VWiSOL6 VW i SQL 6: select distinctnavn fromlev, lvb, vare wherebetegn = 'møtrik' andlev.lnr=lvb.lnr andlvb.vnr=vare.vnr

7
2009NOEA/IT - Databaser/VWiSOL7 VW i SQL 7: select distinctnavn fromlev, lvb, bil wherefabrik = 'wolfsburg' andlev.lnr=lvb.lnr andlvb.bnr=bil.bnr

8
2009NOEA/IT - Databaser/VWiSOL8 VW i SQL 8: select distinctmodel fromlev, lvb, bil wherenavn = 'dohrman' andlev.lnr=lvb.lnr andlvb.bnr=bil.bnr

9
2009NOEA/IT - Databaser/VWiSOL9 VW i SQL 9: select distinct vare.vnr,betegn,vaegt from bil,lev,vare,lvb where bil.bnr=lvb.bnr and lev.lnr=lvb.lnr and vare.vnr=lvb.vnr and lby<>fabrik and vaegt>10

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google