mathmari
Gold Member
MHB
- 4,984
- 7
Klaas van Aarsen said:2 and 3 look good to me, although we should try to run them and see if the results make sense. :unsure:
I get the same results with both ways, in 2 and in 3.
Klaas van Aarsen said:I think that would show the parts for which there is no supplier.
But such parts wouldn't even be in the database.
So I don't think that is what we are looking for. (Shake)
Instead we are looking for parts for which we cannot find an order in the auftrag table.![]()
With the code I wrote above I get :
These have NULL as liefernr. I thought to check if they have a liefernr since I don't see how the parts are related with the auftrag table. So is my approach wrong? :unsure:
To see the whole table I wrote :
SELECT *
FROM teilestamm T
and we get :
Klaas van Aarsen said:Is it the number of part types that an upper part consist of?
Or the total number of parts? That seems more plausible in which case we would need to use anzahl. We do have to assume that the unit is the same I guess. :unsure:
The original statement is :
Aus wie vielen Einzelteilen bestehen die Oberteile der Relation Teilestruktur? Das Ergebnis soll eine nach Oberteilnummer absteigend sortierte Liste sein.
So we are looking for the number of part types that an upper part consist of, or not?
Klaas van Aarsen said:The sentence "The result should be a list in descending order one after the upper part number" does not seem to be grammatically correct.
It is not clear to me how we are supposed to order the results.
It doesn't really make to sort on oberteilnr though. That is just a unique number that identifies the upper part. :unsure:
We have to sort the list as for oberteilnr in descending order.
With the above code I get :
So it is correct, isn't it? :unsure: