SQL Fun.damentals

https://tryhackme.com/room/sqlfundamentals

Structured Query Language

Within a database you'll find tables. Within tables, there are columns and rows. Columns are the "categories" while rows are the one specific thing.

Primary Keys & Foreign Keys

These provide a link between databases

SQL Commands

To get started:

all sql commands must end with this ---> ;

Create Operation

Read Operation (select)

Update Operation

Delete Operation

Clauses

Distinct Clause

Group by clause

Order by clause

Having Clause

Picture 1
Picture 2
Picture 3

OR operator

OR statement

More Operators

Functions

LEnGTH()

SUM()

COUNT()

MAX() & MIN()

SUBSTRING()

CONCAT()

GROUP_CONCAT()

Final question in this room

Using the tools_db database, what are the tool names where the amount does not end in 0, and group the tool names concatenated by " & ".

I had to use chatgpt to look into this as I couldnt figure how to find amount that doesn't end in 0

Last updated