Writing an SQL query to SELECT item from the follo

2020-02-07 10:11发布

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

1条回答
别忘想泡老子
2楼-- · 2020-02-07 10:38

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
查看更多
登录 后发表回答