solution to a)

This commit is contained in:
Andreas Zweili 2017-06-03 07:30:41 +01:00
parent eb859ffcfc
commit 70d19e4670
1 changed files with 16 additions and 0 deletions

View File

@ -11,3 +11,19 @@ select t.TNr, t.Bezeichnung, t.Typ,
s.Position, s.OTeil, s.Menge from teile t
inner join struktur s
on t.TNr = s.OTeil;
select * from struktur
where struktur.OTeil=60;
select * from dbo.teile
where teile.TNr in (2,41,62);
select t1.TNr,
t1.Bezeichnung,
s1.UTeil,
t2.Bezeichnung
from teile t1 inner join struktur s1
on t1.TNr = s1.OTeil
inner join teile t2
on t2.TNr = s1.UTeil
where t1.TNr=60