You can code and run SQL commands online at web sites such as these:
However, downloading and using a SQL database on your client computer is much better way of learning SQL.
There are many different database software products avaialable. Some are open source while others are proprietary. Below are web site links to download many of these database software products, i.e. database engines.