SQL Beginner's Tutorial: Relational Databases & SQL

Hi Everyone!!!

Is anyone ready to learn some SQL? I know I'm ready to teach some of the basics and maybe some slightly-more-advanced techniques. I'm not an expert by any stretch of the imagination, so these might sound like very novice tutorials to someone that's been using SQL for a number of years.


Source

Wait, did I hear some of you right? You don't know what SQL is? Well, SQL is the language that is used to interact with the SQL Relational Database.


Source

What? You don't know what a Relational Database is? Ok, now you're pulling my leg, aren't you??

No? Ok, then let's step back another couple of stairs and start at the very beginning.


Video Source

Relational Databases at their Core

So, when it comes down to it, a Relational Database is a way to store data (information) in a way that is relatively easy to access. In a nutshell, it's like an Excel Workbook or other type of Spreadsheet. Where a spreadsheet would have a worksheet with rows and columns, a Database has a table with rows and columns that can store data. Each column represents an item in a collection of fields based by name.

eg. A table might be a collection of assets and attributes for a game character (height, weight, eye color, lock-picking skills, etc.) that apply to a game engine. A column might be called "lock_picking_skill" and store a numeric value that applies to a percentage of possible skill points available to a maximum of 100.0%.


Not the Right kind of Table!

Each row in this example, if we follow it through, would be a different character. So the task in most cases is to incorporate all of the specific details as they might relate to what the table is supposed to show.

I don't know of more than a small handful of businesses that don't use Relational Databases in their company. Those that do are either very small or very disorganized (generally speaking). Databases allow you to keep all records of clients, customers, invoices, products, prices, orders, shipments, accounting information, and so much more. Most of the clients I work with have an ERP (Enterprise Resource Planning) system in place to store all information about the Business itself and, often, much more. These ERP Systems are quite massive and usually contain far more tables (sometimes hundreds) that a client will not even use or know about.

These database and ERP systems are so vital to their company's revenue that a DBA (DataBase Administrator) is one of the more sought-after positions around; and clients will pay through the nose for a good one. If you're looking for a career path that could be very lucrative, you should really consider a DBA role. Mind that it's a very hard position, first, to get into (so much to learn) and, second, to perform (so many vital tidbits that could literally destroy a company if they went bad). It's not for the faint-hearted.


Source

SQL as a Relational Database

So now that I think you've been inundated enough for one Post with what a Relational Database is, at least an overhead view of it, and what it can do for you or your business, I think I will move on to discuss SQL before signing off. Don't worry, I won't fry your brain too much. I'll try to be quick to end this first SQL Tutorial.

Ok, so SQL is short for Structured Query Language. What does that mean? A query is a question, if you're not familiar with the word (I was vaguely aware of what it meant when I started using SQL myself, so no shame in not knowing). So here we have a language that is structured to answer some question... if it helps to think of it in those terms, that is.

In our usage, it means we have a Database language to retrieve data from a set of tables that will tell us what we want to know. We will use the game engine as a foundation for my following example:

Let's say we want to store information about in-game weapons and their strengths. We decide we need a table that holds a unique item code, a description that the user will see when the mouse hovers over it, a customization for color, an amount of ammunition, and speed of the shot. We will assume the table looks like the Image 1 below. Let's now assume we want a full list of all of the items (Image 2 below). You need a way to pull that information. This is where SQL comes into play.


[Image 1]


[Image 2]

I hope this is beginning to make sense!! The next Tutoria I will begin to dive into SQL directly and explain some of the terms and jargon.

Thanks! See you on the flip-side!

Sort:  

Upvoted on behalf of the dropahead Curation Team!

Thanks for following the rules. Your post will be Resteemed by @dropahead!

DISCLAIMER: dropahead Curation Team does not necessarily share opinions expressed in this article, but find author's effort and/or contribution deserves better reward and visibility.

Help us giving you bigger upvotes by:

Upvote this comment!
Upvote the latest dropahead Daily Report!
Join the dropahead Curation Trail
to maximize your curation rewards!
Vote dropahead Witness with SteemConnect
Proxy vote dropahead Witness
with SteemConnect
Delegate/donate STEEM POWER to @dropahead
Do the above and we'll have more STEEM POWER to give YOU bigger rewards next time!

News from dropahead: Bye bye 25+ and 50+! Welcome 20+ 40+ and 60+!

Would you be willing to do a voice recording about this post?

What did you have in mind? Me just reading the post? And what would you want me to do with it afterwards?

I mean, recording myself while I read it he post would be easy enough, but I’m not sure how it will help.

I do want to create video tutorials sometime, but just don’t know how it would go since I have sensitive information on my PC.

There are a few options. We can recorded on my computer and you can talk me through it step by step. I can attempt to do it on my computer too while recording. Up to you.

I was just wondering if you were thinking only audio, only video, or both. I'm sure I can do something like that... then it's just figuring out to what extent.

thats a great content thanks for sharing..✌✌👌👌👌

Thanks! Hope it helps people to begin their journey towards using SQL confidently. Keep an eye out for the next segments.

absolutely keep concious.

my dear....your all content very needable..✌✌✌

Gave you a follow :)

thank you so much😍😍😍😍

I hope it makes sense so far. Any questions?

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by dbzfan4awhile from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews/crimsonclad, and netuoso. The goal is to help Steemit grow by supporting Minnows and creating a social network. Please find us in the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP. Be sure to leave at least 50SP undelegated on your account.

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.030
BTC 62567.98
ETH 2460.02
USDT 1.00
SBD 2.62