Question: Task 2 0 : List every column in the ITEM table and its associated data type. My Answer: SELECT COLUMN _ NAME, DATA _ TYPE

Task 20: List every column in the ITEM table and its associated data type.
My Answer:
SELECT COLUMN_NAME, DATA_TYPE FROM
INFORMATION_SCHEMA.COLUMNS WHERE
TABLE_NAME = 'ITEM';
Result:
Status: FAILED!
Check: 1
Test: **Task 20:** List every column in the `ITEM` table and its associated data type
Reason: Expected:
+-------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------+------+-----+---------+-------+
| ITEM_ID | char(4)| NO | PRI | NULL ||
| DESCRIPTION | varchar(30)| YES || NULL ||
| ON_HAND | decimal(10,0)| YES || NULL ||
| CATEGORY | char(3)| YES | MUL | NULL ||
| LOCATION | char(1)| YES || NULL ||
| PRICE | decimal(7,2)| YES || NULL ||
+-------------+---------------+------+-----+---------+-------+
Found:
+-------------+-----------+
| COLUMN_NAME | DATA_TYPE |
+-------------+-----------+
| ITEM_ID | char |
| DESCRIPTION | varchar |
| ON_HAND | decimal |
| CATEGORY | char |
| LOCATION | char |
| PRICE | decimal |
+-------------+-----------+
Error : AssertionError -
Timestamp: 2024-03-1817:34:03.420467

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!