🚨 Time is Running Out: Reserve Your Spot in the Lucky Draw & Claim Rewards! START NOW

Code has been added to clipboard!

SQL Basics: Writing a Simple Query

Reading time 1 min
Published Jan 1, 2016
Updated Oct 3, 2019

SQL Basics: Main Tips

  • SQL is used for reading, writing and modifying data in a database.
  • It's a standard tool for a variety of databases: MySQL, MS Access, SQL Server, Sybase, Oracle, Postgres, etc.
  • To practice on your SQL basics, you will need to create your test database or use an online editor for queries.
DataCamp
Pros
  • Easy to use with a learn-by-doing approach
  • Offers quality content
  • Gamified in-browser coding experience
  • The price matches the quality
  • Suitable for learners ranging from beginner to advanced
Main Features
  • Free certificates of completion
  • Focused on data science skills
  • Flexible learning timetable
Udacity
Pros
  • Simplistic design (no unnecessary information)
  • High-quality courses (even the free ones)
  • Variety of features
Main Features
  • Nanodegree programs
  • Suitable for enterprises
  • Paid Certificates of completion
Udemy
Pros
  • Easy to navigate
  • No technical issues
  • Seems to care about its users
Main Features
  • Huge variety of courses
  • 30-day refund policy
  • Free certificates of completion

SQL Simple Query Syntax

Example
SELECT * FROM Customers;

Note: if you feel that this is easy, you can skip to a more advanced SQL tutorial like SQL Data Types.

SQL Basics: Summary

  • Use SQL for reading, writing and modifying data in a database.
  • SQL works on various types of databases: MySQL, MS Access, SQL Server, Sybase, Oracle, Postgres, and others.
  • To practice writing SQL queries, you need to create a database or use an online editor.