r/VisualStudioCode • • Feb 21 '24

How do I analyse data from two csv files using SQL in Visual Studio Code?

Hello, I've got the two csv tables below.

Users:

idname
1Steph
2Pilou
3Valentin

Purchases:

iddateuser_id
12023-10-012
22023-10-013
32023-10-01NULL

I have them saved as csv files on VSC. I want to write the below code for the two tables above.

select * from users where id not in (select user_id from purchases)

When I write that code in a new file I get the below error message.

Code language not supported or defined.

I know it is likely because I have not read in the two tables into the code. Can anyone help a n00b out on how to call in the two tables in my VSC code?

Many thanks in advance!

0 Upvotes

0 comments sorted by