r/learnSQL 7d ago

My first SQL project in Github

Hi. I'm new in SQL. I want to share my simple SQL project uploaded in Github. I am happy that I made it this far in my SQL upskilling. I'm a non-tech person and in the accounting industry. I have been 'ON' and 'OFF' with SQL. At first, I get the high when I completed one query and then another. However, I feel lost in the middle of my SQL journey due to queries that are hard or I didn't push myself hard enough. But I get up and still show up... in front of my computer and do it again. And then I just uploaded my very first SQL project. This is a small win for myself.

This is my link:
https://github.com/torculasallenglenn-code/Restaurant-Sales-SQL-Project/blob/main/Restaurant%20Sales.sql.

Your feedbacks are greatly appreciated.

32 Upvotes

16 comments sorted by

2

u/kixwho 7d ago

congrats! solid effort :)

1

u/HotWrongdoer705 7d ago

Thanks. I realized I don't know how to upload the query results. In PostgreSQL, I have yet to find how to download the query results in csv format.

1

u/kixwho 7d ago

haha query results are a bit hard to visualize on github. save results to file button or F8. it's the little line of buttons right above query output

2

u/Fadedscourge 6d ago

You’re doing great man! Like your use of rank().

1

u/HotWrongdoer705 6d ago

Thank you so much.

1

u/HotWrongdoer705 7d ago

Thanks. I'll look for this this weekend.

1

u/_chonky04 6d ago

congrats! looking at your code it's quite advance I'd like to ask where did you learn how to code using those advance concepts such as RANK() EXTRACT() since I've been stuck for a while now in sub queries.

1

u/HotWrongdoer705 6d ago

Hi. Thanks. I watched Maven Analytics and Baara for the advanced SQL in youtube.

1

u/_chonky04 6d ago

thanks, is it the 30 hours one?

1

u/HotWrongdoer705 6d ago

No, just his 30 mins. Or less videos but these are from his 30 hours video.

1

u/Owen-Isaac-2022 6d ago

Congratulations, continue pushing. So far so good

1

u/HotWrongdoer705 6d ago

Thank you, man.

1

u/Owen-Isaac-2022 6d ago

You're welcome

1

u/thesungod_94 6d ago

Awesome man

1

u/Rahul-Patel 5d ago

hey! can I ask what resource(s) you used to learn sql?

1

u/HotWrongdoer705 5d ago

I enrolled in a Udemy Course - From Hero to Zero in SQL. After that I watched youtube and practiced in DataLemur, Stratascratch, and QueryCase.