Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started