You are on page 1of 1

23:35 21/04/2024 Skill Assessment

Back to Results

Data Management in SQL (PostgreSQL)

Question 2

Advanced

Intermediate

Novice

1 2 3 4 5 6 7 8 9 10 11 12 13

There was an error in your code BETA

Powered By
Explain Error

From the vendors table, return the vendors in AUSTIN city.

--vendors
| vendor_name | vendor_city | vendor_state |
|---------------------------|-------------------|-----------------|
| CHONZIE INC | ASHEVILLE | NC |
| INREACH ONLINE CLE | AUSTIN | TX |
| HENDERSONVILLE JEEP CH | HENDERSONVILLE | NC |
| ....................... | ............... | .. |

Complete the code to return the output

SELECT vendor_name,vendor_city,vendor_state
FROM vendors
WHERE vendor_city IN "AUSTIN";
WHERE vendor_city = 'AUSTIN';

Expected Output Your Output

syntax error at or near ""AUSTIN""


vendor_name vendor_city vendor_state LINE 3: WHERE vendor_city IN "AUSTIN";
^
INREACH ONLINE CLE AUSTIN TX

SPEAKWRITE LLC AUSTIN TX

Incorrect answer

Difficulty MEDIUM

Skill Extracting & aggregating data from a database

Report Issue

https://assessment-v2.datacamp.com/15e09043-62d9-4b3e-a10c-638c40a5ea4c/review?returnUrl=https%253A%252F%252Fapp.datacamp.com%252Fcertificat… 1/1

You might also like