A course in data structures and algorithms is the best place to start. MIT has free materials available here. This is assuming you want to actually be good at creating SQL code which is efficient =) ...
Structured Query Language, or SQL, is used to analyze large datasets. Today’s best SQL courses offer hands-on training for mastering database management. Structured Query Language, or SQL, is the ...