Free database for l...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Free database for learning SQL?

32 Posts
22 Users
0 Reactions
173 Views
 Earl
Posts: 1902
Free Member
Topic starter
 

I wanna teach my kids a bit of SQL. Just the basics what is a table/index/view. How to write Select/Inset etc...

Is there a very light weight free db (for Win10 ) that I can type in SQL into? Or is there a free cloud db we can play with?


 
Posted : 20/04/2021 7:42 pm
 Earl
Posts: 1902
Free Member
Topic starter
 

Where did this go?


 
Posted : 20/04/2021 9:14 pm
Posts: 5182
Full Member
 

MS SQL Server Express has always been free. Or else SQL Server Developer is in the "always free" tier on Azure - https://azure.microsoft.com/en-gb/free/#12-months-free


 
Posted : 20/04/2021 9:21 pm
Posts: 981
Free Member
 

sqllite, its a flat file you can save like a document, no servers required


 
Posted : 20/04/2021 9:22 pm
Posts: 4954
Free Member
 

Your poor kids...
I like a bit of programming, I can see the fun stuff you can do with kids, but SELECT * FROM * I am calling social services


 
Posted : 20/04/2021 9:35 pm
Posts: 7656
Full Member
 

Extremely lightweight would be sqllite.
Slightly heavier would be postgres or mysql.

I would be tempted to go for sqlserver dev edition though since SSMS does make life easier.


 
Posted : 20/04/2021 9:43 pm
 tor5
Posts: 0
Free Member
 

SQL in a browser


 
Posted : 20/04/2021 9:47 pm
Posts: 2755
Full Member
 

was about to post the same tor5
#thumbsup


 
Posted : 20/04/2021 9:53 pm
 Earl
Posts: 1902
Free Member
Topic starter
 

Much thanks folks - I'll check them out tomorrow.


 
Posted : 20/04/2021 10:13 pm
Posts: 23277
Free Member
 

Is this the coding equivalent of the naughty step?


 
Posted : 20/04/2021 10:14 pm
 Earl
Posts: 1902
Free Member
Topic starter
 

Your poor kids…

ha - the reason I want it lite is because I make them create a new VM on their laptops for each topic I get them to learn. And they don't exactly have workstations.

I can't hang a picture frame straight so I got to pass something on.


 
Posted : 20/04/2021 10:56 pm
Posts: 7954
Full Member
 

On-line SQL scratch pad?


 
Posted : 20/04/2021 10:57 pm
Posts: 0
Free Member
 

PostgreSQL/PGAdmin is free and pretty easy to set up. I'm a data science professor and I used it this semester to teach a basic SQL course remotely. Everyone could set it up on their own machine and use it wherever, even if they didn't have a consistent internet connection. Outside of some inconsistent file permissions across operating systems, it worked pretty smoothly.

Before teaching a class in it, I'd basically never used SQL before and I actually like it a good deal. I think it does a good job of making students think about the logic of the comparison they are making and the relations between variables/levels of analysis.

Some of my students though, really don't love it. They seem to prefer R/Python even though I think of them as more complex.


 
Posted : 21/04/2021 12:11 am
 icic
Posts: 91
Free Member
 

I find https://www.w3schools.com/ a great free resource.

They also have other languages like python that would be worth learning too.

If you are going down the MS SQL server route you may want to look at dbatools: https://dbatools.io/ , these are built using PowerShell and are a greate way of working smarter, i.e. least administrative effort, help is your friend etc.


 
Posted : 21/04/2021 7:25 am
Posts: 3171
Free Member
 

Go the full monty and teach them all about Boyce–Codd. Fun, fun, fun 😉 🙂


 
Posted : 21/04/2021 8:25 am
 Earl
Posts: 1902
Free Member
Topic starter
 

'3rd normal form' sticker along the chainstay 🙂


 
Posted : 21/04/2021 8:46 am
Posts: 8722
Free Member
 

Think you can install a SQLite database with DBeaver which is my own personal favourite database thingy tool. Plus can easily hook it up to RDS/Aurora if you wanted something different.

Mentioned above too but w3schools is an excellent resource - my go-to for most SQL stuff which I don't know (I'm by no means a SQL expert but need to do bits in my current job, mainly because nobody else wants to!).

Also mentioned above, social services need to be involved.


 
Posted : 21/04/2021 9:46 am
Posts: 77347
Free Member
 

No love for MySQL? Learn a bit of Linux whilst they're at it.


 
Posted : 21/04/2021 2:15 pm
Posts: 0
Free Member
 

ha – the reason I want it lite is because I make them create a new VM on their laptops for each topic I get them to learn. And they don’t exactly have workstations.

Why not just install a VM with a sqlserver already embedded


 
Posted : 21/04/2021 2:52 pm
Posts: 0
Free Member
 

Check out SQL murder mysteries: https://mystery.knightlab.com/

There is a similar thing for terminal.


 
Posted : 21/04/2021 3:48 pm
 Earl
Posts: 1902
Free Member
Topic starter
 

@tomlg - that looks cool. Definitely having a look.

As for social services.. I'm a believer that kids are amazing - mine - yours - everybody's. They can learn anything given the right steps. And for me - learning how to teach someone is a big part of the experience.

At my son's 8th (?) birthday - I taught the kids how to count in binary as a party game. Some got it straight away, some didn't so between them they taught each other. They were all eager to know it and in the next little while, they were testing each other while lining up for class in the morning.


 
Posted : 21/04/2021 4:15 pm
Posts: 1310
Free Member
 

SELECT * FROM * I am calling social services

That made me laugh. I have nothing more to add, I deal with SQL on a daily basis but I'm nowhere near good enough at it to do complicated stuff.


 
Posted : 21/04/2021 4:36 pm
Posts: 77347
Free Member
 

I taught the kids how to count in binary as a party game

Sigh. There's always one.


 
Posted : 21/04/2021 4:39 pm
Posts: 8771
Full Member
 

No love for MySQL? Learn a bit of Linux whilst they’re at it.

Exactly. Linux From Scratch.


 
Posted : 21/04/2021 4:58 pm
Posts: 7656
Full Member
 

No love for MySQL?

Would go for MariaDB rather than an Oracle product.


 
Posted : 21/04/2021 5:24 pm
Posts: 981
Free Member
 

No love for MySQL? Learn a bit of Linux whilst they’re at it.

TBH postgres is better in nearly every way now


 
Posted : 21/04/2021 6:16 pm
Posts: 0
Free Member
 

TBH postgres is better in nearly every way now

Doesn't make it better to just learn SQL from though...
However for the OP's purpose I'd just find and DL a VM with a sql server and perhaps something to use it for... (like a CMS they can play with)

Random example (not specifically recommended)
https://marketplace.cloud.vmware.com/services/details/turnkey-joomla-appliance/?slug=true


 
Posted : 21/04/2021 7:15 pm
 Earl
Posts: 1902
Free Member
Topic starter
 

Learn a bit of Linux whilst they’re at it.

My 14y daughter wrote a little cube colour game in HTML/CSS/JS and my son (12y) created a vm, install a apache server on mint to host it so she could show her friends. I knew the extra £1 per month for a static IP was more useful than just Minecraft.

Yea it takes a lot of patience and I have to resist the temptation to just jump in and help. But I don't actually know that stuff either so I'm learning at the same time.

Funny thing is sometimes when I don't give him permission to do something he says 'sudo' then does it anyway.


 
Posted : 21/04/2021 9:27 pm
Posts: 1226
Full Member
 

https://xkcd.com/149/


 
Posted : 22/04/2021 7:14 am
Posts: 8722
Free Member
 

Funny thing is sometimes when I don’t give him permission to do something he says ‘sudo’ then does it anyway.

You need to edit sudoers. That'll learn him.


 
Posted : 22/04/2021 9:13 am
Posts: 6874
Full Member
 

Thirty posts in and no one's mentioned Northwind Traders? Pfffffffffff.

https://www.geeksengine.com/article/northwind.html


 
Posted : 22/04/2021 9:36 am
 pdw
Posts: 2206
Free Member
 

Personally I'd avoid sqlite, particularly for learning. The DB-in-a-file aspect is nice, but it's too compromised in other respects. I spent hours debugging why a join wasn't working before discovering that it had done something stupid with dynamic typing so that two values that looked identical weren't considered equal. Better to learn on something that does typing properly.

PostgreSQL is my preference, but these days there's not a lot to choose between MariaDB and Postgres, and MariaDB is far more widely used.

EDIT: why I hate sqlite


 
Posted : 22/04/2021 10:21 am
Posts: 3284
Full Member
 

Postgres or Maria are the go to free options. Oracle and sqlserver both offer free with limits (that won't bother you), but both of them are scarily humungous. Sqllite is a bit odd because it's not really a server, but the SQL concepts are the same.

Don't bother with setting it up on a VM, learn docker, it will save you hours.


 
Posted : 22/04/2021 10:30 am

6 DAYS LEFT
We are currently at 95% of our target!