問題があること(SQL)方法connentと2台の間で何かを得るために
TableAの
(`manufacturerID`, `company_name`, `address`, `city`, `state`, `post_code`, `area_code`, `phone_number`)
('AA04', 'Ken', '6000 16th Ave N', 'San Diego', 'CA', '92101', '213', '981-8745'),
('AA05', 'Lenar', '1230 9th Ave N', 'Baltimore', 'MD', '21202', '301', '321-0987');
TableBのおもちゃの製品はケンによって製造されているどのように多くの
(`productID`, `product_name`, `price`, `sale_price`, `in_stock`, `on_order`, `categoryID`, `manufacturerID`)
('CT200', 'China Puppy', 15, 13.5, 20, 40, 4, 'AA04'),
('CT201', 'Wooden Puppy', 18, 14.5, 15, 25, 4, 'AA04'),
('CT202', 'Tanjore Doll', 17, 13.5, 20, 40, 2, 'AA01'),
?
それは私の答え
SELECT COUNT(`manufacturerID`)
FROM `toyproducts`
WHERE `manufacturerID` = 'AA04'
ですが、正解は何ですか?
私は、この質問に対する答えに 'JOIN'を見ることを期待しています。 –
@ a_horse_with_no_name、どのDBMSを使用していますか? – Ash
phpmyadmin私はすでに回答を得ました –