I always tell people to worry about the data structures that you want the database to maintain for you, and not worry about the SQL.
You can always use Google to look up the SQL, or now ChatGPT to generate it for you.
SQL is a not-that-great language and it intentionally hides what's going on.
It is also different enough between databases that you need to pay attention.
So learning to design/think in terms of SQL is probably not worth doing.
The set of data structures that you use to model and index a dataset is worth understanding, and designing in that space is a skill worth learning.
replies(4):