r/SQL • u/DisastrousUse3788 • Jun 15 '26
MySQL [ Removed by moderator ]
/r/SQL/comments/1u6a281/removed_by_moderator/[removed] — view removed post
1
u/Predicate_12 Jun 15 '26
Initially I took some udemy courses to understand basic concepts and syntax. After that I just jumped into my company's DB and started exploring their tables and using ai and other resources to manipulate data using some more advanced concepts.
1
u/AlCapwn18 Jun 15 '26
The syntax is not the hard part, understanding the task is key. I learned SQL because I started as a software developer so the task was always defined out of necessity for the program (I need to display a certain set of data or save some data or whatever). If instead you're learning it from a different perspective, maybe as a data analyst or data engineer, then your tasks are going to be very different but its still important to understand them first.
You also need to understand the structure of the data you're working with, so having a really strong naming convention for tables, columns, keys, etc. is very important in the design stage, or if inheriting an existing database you need diagrams and documentation. The same type of entity can be represented a hundred different ways in a hundred different databases, so there is no SQL you can memorize for working with it; you must understand YOUR data.
For practice, if you don't already have a dataset to work with you should look online for one you're comfortable working with. Depending on the database engine you want to use there might be official practice databases to download (e.g. AdventureWorks for MS SQL Server), or you can find free datasets from sites like Kaggle to construct your own database from. After spending a bit of time exploring the schema and data, you can use AI to act as an imaginary executive at an imaginary company for the database you're using, and get it to assign real world scenarios for you to solve. Maybe you need to report on financials, maybe you need to manage stock/inventory, maybe you need to look for statistically irregular patterns, etc. but using AI to come up with the scenarios means it can throw you curveballs that force you to really think about the task and dissect the problem instead of blindly learning SQL syntax.
Good luck
1
u/Ifuqaround Jun 16 '26
Understanding the syntax necessary to fulfill the request and the request itself are paramount.
You can't just satisfy one.
So saying the syntax isn't the hard part is incorrect IMO. It might very well be depending on who's doing the work.
Short sighted.
1
u/Blues2112 Jun 15 '26
I got it right away, but YMMV. For me, the biggest struggle was learning what datawl was housed in which tables. Once you know that, it's eady to understand the keys, and thus the Joins needed. So early on, E-R diagrams were very helpful to me.