Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am having a really hard time writing a SELECT query to get a hold of the data in the following table...

Here is a picture of the table...

http://i44.tinypic.com/29dxx81.png

I am trying to display the names of the parts (pname) for all item parts that have a quantity larger than 10... However, the quantity seems to appear only when the submenu is expanded, and I am having trouble SELECT'ing it...

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
515 views
Welcome To Ask or Share your Answers For Others

1 Answer

Have you tried:

SELECT pname from [TableName] WHERE quantity >= 10

EDIT:

SELECT pname from Parts 
INNER JOIN Shipments
ON Parts.ForeignKey = Shipments.ForeignKey
WHERE quantity >= 10

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...