Getting started with SQL

Permabanned
Joined
8 Feb 2004
Posts
4,539
Hi

Looking to learn the basics of SQL, are their any free options for setting up a very rudimentary data base and playing around with tables. Preferably some tutorials I can follow to understand the basic - not looking to go complex.

Thanks
 
Permabanned
Joined
9 Aug 2009
Posts
12,236
Location
UK
You can download SQL Server developer edition from here:
https://www.microsoft.com/en-gb/sql-server/sql-server-downloads

You'll use SQL Server Management Studio as your graphical user interface, you can get it here:
https://docs.microsoft.com/en-us/sq...-management-studio-ssms?view=sql-server-ver15

If you want to write some C# to use your database, here's a tutorial:
https://www.youtube.com/watch?v=Et2khGnrIqc

You'll need Visual Studio installed for that, you can get the Community edition from here:
https://visualstudio.microsoft.com/downloads/
 
Associate
Joined
28 Mar 2019
Posts
1,117
Location
Channel Islands
Hi

Looking to learn the basics of SQL, are their any free options for setting up a very rudimentary data base and playing around with tables. Preferably some tutorials I can follow to understand the basic - not looking to go complex.

Thanks

Something like this maybe? Should be easy enough to follow along with the video.
Any normal computer can run SQL, it's light weight and most database engines are freeware.


As a side note, it will take much longer than 4 hours to follow along, so recommend maybe 1 hour of following along for each 30 minutes of video.
 
Soldato
Joined
20 Oct 2008
Posts
12,096
If you want to start creating SQL databases the platform and implementation don't matter very much, what you need to know is how to structure the tables.

Do some reading on database normalis(z)nation and make sure you understand how to get to at least 3NF.
 
Associate
Joined
26 Aug 2011
Posts
186
Don't worry about servers, home labs or raspberry pis. Just install SQL server on your own machine, download the Adventureworks database and follow some of the many Microsoft documentation pages and other tutorials online.

Generally though, if you are having to ask on a forum how to do something like this you will probably struggle. You could have figured all of this out by Googling it yourself. That's a huge part of learning.
 
Soldato
Joined
21 Jul 2005
Posts
20,045
Location
Officially least sunny location -Ronskistats
Then you get loads of services starting, local files to mess with. Fine if you have to, but you will learn more and appreciate a separate place to host the back ends, containers etc. if you use a repurposed machine or a pi like we said. :)

I know people cringe but we are not talking corporate grade here to start out. I learned my basics on Access then started to split the FE and BE, linking databases - the language is similar and you can get comfortable with it easily. You can then set up mySQL or postgresql and take it to the next level. There are so many ways you can implement a 'database' to the needs it would be more helpful to target what you need it for, unless its simply to mess with.
 
Associate
Joined
26 Aug 2011
Posts
186
Then you get loads of services starting, local files to mess with. Fine if you have to, but you will learn more and appreciate a separate place to host the back ends, containers etc. if you use a repurposed machine or a pi like we said. :)

I know people cringe but we are not talking corporate grade here to start out. I learned my basics on Access then started to split the FE and BE, linking databases - the language is similar and you can get comfortable with it easily. You can then set up mySQL or postgresql and take it to the next level. There are so many ways you can implement a 'database' to the needs it would be more helpful to target what you need it for, unless its simply to mess with.

If he/she is literally just trying it out then there's not much point going to all that effort. Just install it, play around and if you like it, build a server or whatever. If you must have it seperated, run it in a VM

As I said though, this person should have figured those basic steps out for themselves. Doesn't bode well for future learning if they're already stuck.
 
Associate
Joined
27 Jul 2012
Posts
717
Depends on your level, but if you are brand new to coding in general and just literally want to get running some commands, something like http://sqlfiddle.com/ is great.

If you're a little more experienced then why not install docker and just build the postgres image? This would be my preference
 
Associate
Joined
12 Jun 2021
Posts
40
Location
Wales
I used to install SQL Server (the free edition) on my personal PC. Decent enough GUI - you can build and edit tables through the GUI if I remember correctly, and you can write scripts, stored procedures, triggers and all of that. As others have said, the downside is that it runs as a service on your machine and as my machine got longer in the tooth it definitely slowed down startup times etc.

I've just installed SQLite and a GUI for it (DB Browser for SQLite) on my machine - it doesn't give all the functionality (e.g. stored procedures) of the proper SQL platforms, but it's great for playing around and learning. Runs as a file so no need to install a server and should be easy enough to delete when you're done. To be honest, if you just want to try something and knock a few things together I would pretty much recommend it to play with and see if you like it and get the hang of it.

I've never tried mySQL or PostgreSQL, but as they're both open source (I think) I expect you'd be able to download and install either on your machine and they'll work somewhat like SQL Server - running as a service and with the full suite of SQL capabilities. I've not done it and I've not researched for this post, but they're both pretty big names in SQL so they're worth mentioning but I'm afraid you'll need to DYOR on them.

Good luck.
 
Back
Top Bottom