Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungLandlock LSM: Sandbox-Linux ohne Root-Rechte sichern(22.09.2026 um 02:00 Uhr)
Sichere ProgrammierungQuarkus + GraalVM Advanced Obfuscation(22.09.2026 um 02:00 Uhr)
Sichere Programmierung06 — Chat Works. Does the Agent Actually Retrieve Memory?(22.09.2026 um 02:03 Uhr)
Sichere ProgrammierungMCP Debate: Token Tax, Context Bloat, and What Devs Can Do(22.09.2026 um 02:03 Uhr)
Sichere ProgrammierungI gave my AI agent a kill switch tied to its own bank balance(22.09.2026 um 02:08 Uhr)
Sichere ProgrammierungLandlock LSM: Sandbox-Linux ohne Root-Rechte sichern(22.09.2026 um 02:00 Uhr)
Sichere ProgrammierungQuarkus + GraalVM Advanced Obfuscation(22.09.2026 um 02:00 Uhr)
Sichere Programmierung06 — Chat Works. Does the Agent Actually Retrieve Memory?(22.09.2026 um 02:03 Uhr)
Sichere ProgrammierungMCP Debate: Token Tax, Context Bloat, and What Devs Can Do(22.09.2026 um 02:03 Uhr)
Sichere ProgrammierungI gave my AI agent a kill switch tied to its own bank balance(22.09.2026 um 02:08 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Day Three with SQL: Inserting Data, Querying Smarter, and Working with Real Datasets

Day three was all about reinforcing the basics, not rushing forward, but getting comfortable with SQL by practicing it repeatedly on real data. I spent most of today working through SQLZoo exercises, inserting data into PostgreSQL, and…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Day three was all about reinforcing the basics, not rushing forward, but getting comfortable with SQL by practicing it repeatedly on real data.



I spent most of today working through SQLZoo exercises, inserting data into PostgreSQL, and querying a realistic dataset generated with Mockaroo. This helped bridge the gap between theory and actual usage.






Inserting Data into Tables



I practiced inserting data into tables and also learned a very useful PostgreSQL feature: importing SQL files directly.



Using the psql terminal, I learned how to run SQL files with:




\i path_to_file/file_name.sql






To test this properly, I downloaded a 1,000-row dataset from Mockaroo, adjusted some table parameters and constraints to match the data, and then imported it into my database.



Seeing a large dataset populate my tables instantly made everything feel much more real.






Querying Data with SELECT (Again, but Better)



I continued practicing the now very familiar SELECT statement, but with more structure and intention.






Sorting Results with ORDER BY



I learned how to sort query results using ORDER BY.




SELECT * FROM users ORDER BY first_name;







By default, sorting is ascending (ASC), but it can be reversed using DESC.




SELECT * FROM users ORDER BY first_name DESC;









Getting Unique Values with DISTINCT



To avoid duplicate results, I practiced using DISTINCT:




SELECT DISTINCT country FROM users;






This was especially useful when working with location-based data.






Filtering with WHERE and Logical Operators



I practiced filtering results using WHERE, along with logical operators:




  • AND

  • OR



These allow conditions to be combined logically, making queries more precise.



Comparison Operators



I also learned and practiced comparison operators such as:




  • = (equal)

  • <, > (less than, greater than)

  • <=, >=

  • <> (not equal)



These were useful for filtering ages, dates, and numeric values in the dataset.






Limiting Results with LIMIT and OFFSET



I learned how to control how many rows are returned using:




SELECT * FROM users LIMIT 10 OFFSET 20;






LIMIT controls how many rows are returned



OFFSET skips a specified number of rows



I also learned that LIMIT isn’t part of the SQL standard, which led me to discover the SQL-standard alternative.






Using FETCH Instead of LIMIT



PostgreSQL also supports the SQL-standard FETCH syntax:




SELECT * FROM users FETCH FIRST 6 ROWS ONLY;






When I saw this for the first time, I was genuinely surprised and also very grateful that LIMIT exists.






Searching with IN and BETWEEN



I practiced filtering values using sets and ranges.



Using IN




SELECT * FROM users WHERE country IN ('Nigeria', 'Ghana', 'Kenya');






Using BETWEEN




SELECT * FROM users WHERE dob BETWEEN '1990-01-01' AND '2000-12-31';






These made queries much more expressive and readable.






Pattern Matching with LIKE and ILIKE



I revisited pattern matching using:




  • LIKE (case-sensitive)

  • ILIKE (case-insensitive)



I also learned about wildcards:




  • % → matches any number of characters

  • _ → matches exactly one character



This was especially useful for querying email patterns in the Mockaroo dataset.






Grouping Results with GROUP BY



Finally, I practiced grouping records using GROUP BY.



For example, I grouped users by their countries to see how many users belonged to each location:




SELECT country_of_birth, COUNT(country_of_birth) AS "Number of Users" FROM users GROUP BY country_of_birth ORDER BY COUNT(country_of_birth);






This was my first real taste of how SQL starts to answer aggregate questions, not just retrieve rows.






Final Thoughts



Day three reinforced an important lesson: mastery comes from repetition.



Working with a real dataset made every query feel purposeful, and practicing the same concepts in different ways helped solidify my understanding. SQL is starting to feel less like syntax and more like a way of thinking.



Tomorrow, I’ll be learning and practicing even more.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Day Three with SQL: Inserting Data, Querying Smarter, and Working with Real Datasets

Thematisch verwandte Begriffe: Three, with, Inserting, Data · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-49449 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick