Question: Task 1 2 : List the item ID , description, and category for each pair of items that are in the same category. ( For
Task : List the item ID description, and category for each pair of items that are in the same category. For example, one such pair would be item FS and item PF because the category for both items is FSH Order the output by category.
Code I input:
SELECT FCATEGORY, FITEMID FDESCRIPTION
FROM ITEM F ITEM S
WHERE FCATEGORY SCATEGORY
AND FITEMID SITEMID
AND SCATEGORY IN BRD 'CAT', FSH
ORDER BY FCATEGORY;
Test Feedback I recieved:
Status: FAILED!
Check:
Test: Task : List the item ID description, and category for each pair of items that are in the same category
Reason: Expected:
CATEGORY ITEMID DESCRIPTION
BRD BC Feathers Bird Cage xx
BRD KH Wild Bird Food lb
CAT CA Enclosed Cat Litter Station
CAT SP Small Pet Carrier
FSH FS Aquarium Gallon
FSH PF Pump & Filter Kit
Found:
CATEGORY ITEMID DESCRIPTION
BRD KH Wild Bird Food lb
BRD BC Feathers Bird Cage xx
CAT SP Small Pet Carrier
CAT CA Enclosed Cat Litter Station
FSH PF Pump & Filter Kit
FSH FS Aquarium Gallon
Error : AssertionError
Timestamp: ::
Can you please show me where I went wrong?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
