mySQL tutorial for writing SQL statements and DB scripts - mysql

Thanks in advance.
Is there a tutorial (preferablly free) out there that'll walk me through how to write mySQL statements?
I'm not interested in learning about installing and configuring mySQL since this is something handled by experts and I wouldn't have permissions to do this anyway.
Specifically, what I'm looking for is a tutorial that utilizes a database (Sakila perhaps?) that actually teaches how to write mySQL commands, AND that has questions for me to answer (via written SQL statements) with the accompanying correct results so I can verify my work. I was hoping for at least a beginning and intermediate mySQL tutorial. But without the correct answers / results, I can't possibly know if the SQL statements I'm writing are correct results or not.
I haven't really seen many tutorials that focus strictly on learning SQL statements and writing scripts, and I've seen none that have a thorough Q&A (with results) section.
If I have to pay for a tutorial, that's fine. I just want to find one that focuses on learning to write SQL statements and scripts and that stays away from configuring and administering type learning.
Any help you can provide is greatly appreciated.
KJ

I started out with an oreilly online course.
I know its not a tutorial, but if you are prepared to pay, its the better choice
For what you get its not that expensive and you'll come out of it with a very strong base.
If you are looking for strictly database:
Database Administration Certificate
Or a mix with a programming language (gives better insight to usage)
PHP/SQL Programming Certificate
Also I found a really nice site with a lot of common and useful sql queries that you can use to learn some neat tricks
Common MySQL Queries
I hope this helps you and good luck

Related

Beginner using MYSQL Workbench

Good day everyone and thank you in advance.
I'm studying database design and we started with SQL basics, specifically relational operators. Next, we will be doing proper-ish, basic python + SQL.
In order to learn the work, I figured the best would be to use a SQL program to help me visualize the relational operators' effects on a database. First I used SQL Fiddle, which seemed okay, but the next morning all my work was gone, and it seems they are having technical problems. So I switched to MYSQL Workbench, easily created all the tables, but now I can't seem to run a simple script. More specifically, I do not know how to. The only examples available on the web are outdated, and or I lack the knowledge to properly search for the answers.
I know it's a dumb, low-level question, but I would really appreciate it if I can just figure this out and run basic scripts on the database.
Screenshot: https://i.stack.imgur.com/Sh3Qf.png

SQL vs MySQL vs. SMSS vs. RDBMS

I am starting into studying SQL and am having trouble understanding the relationships between the various components.
To my understanding, SQL is a langauge (akin to PHP, JS, etc.) which is used to interact with databases.
MySQL seems to be a specific software, a specific RDBMS, but how exactly does it relate with SQL and SSMS? Is it the thing that actually stores the data, or does it simply manage them by interpreting SQL commands? I'm mostly confused on what the SSMS does then.
Any help or tips on such subjects would be appreciated, though I understand if this topic is not specific enough and needs to be removed.

Sample datasets for practice - Oracle pl/sql

I am a new user of SQL, I use Oracle pl/sql as a Programming software. I have done an introductory course to SQL that included some datasets. However I'd like to continue practicing, some real life problems that include requests of querying very simple statements to difficult ones that include indexes, etc.
Does anyone have any links/sites where I can further pursue SQL training for free? I've done a Stakexchange and Google search with not much luck.
As you probably know, Oracle ussually comes with some sample schemas like HR, SH... listed here
Also, you can install HammerOra benchmarking tool. It's commonly used to test TPC-C and TPC-H on different RDBMS. It will install some schemas on your DB with variable size.
You can also install some virtual appliances.
There are more there, but I think the coolest is StackOverflow DB, too bad is MSSQL.

SQL Server Built in SP's - Cliff Notes

I hope We've all used SP_HELP. I used SP_HELPTEXT today for the first time. Mostlyl I learn these from co-workers who already know them or some random stackoverflow finding.
Is there some sort of exhaustive list on SQL Servers built in SP's and their function? I may be writing more code than I have to.
Thanks for the help.
Matt

Is there a MySQL tool that generates SQL queries for you?

Is there any software for Windows that allows you to setup your tables and then tell the software what you want to SELECT given the conditions and it will tell you the SQL query that you need? Thanks.
Probably you'll find software that will do this for you in a GUI, but eventually you will be required to write the queries yourself, unless you're developing something really trivial.
A GUI tool for SELECT statements is a too-high level of abstraction for most scenarios, and you would have to face the "Law of Leaky Abstractions" eventually.
Visualization tools are quite handy for defining the database schema, and there are some very good tools for that. However queries remain quite tricky to visualize, in my opinion. I think you'll be able to mentally visualize queries, given enough practice. Nevertheless, I'm quite sure you will be able to get started doing SQL queries within a few days, even non-trivial ones.
In addition, you can use Stackoverflow if you require assistance with complicated queries. I'm quite sure that the community here will suggest better SQL than any GUI tool!
These sound like they will do what you want:
SQL Maestro
dbForge Query Builder for MySQL
Having said that, I do agree with the other answers here - learning to manually write SQL will give you a lot more control. I highly recommend the (free) MySQL Workbench for that.
The people at sqlmanager.net build some tools to deal with databases, but I agree with Daniel: if you have very complex queries to work with, it's probably more work telling the tool what to do that creating the queries manually - especially as you'll have to verify what the tool did, so if you can do that, you could have done it by hand in the first place :)
As said before by daniel vassallo, you should learn how to create those sql queries "by hand". where i work we use a program that does exactly this (it's used by accountants only) and it creates horrible sql select statements and we have constantly whining accountants that think that the problem is allways on the server side even when we show them that those queries get them the wrong data... it's a never ending circle :(
Use HeidiSQL to manage your database, and keep an eye on what's going on in the SQL log. You'll soon pick it up.