DEV Community

elanyon
elanyon

Posted on

Essential SQL Commands for Data Science

Essential SQL Commands for Data Science

Structured Query Language, or SQL as it is more commonly known, is a standardized language used to query or retrieve data from a relational database. Additionally, it can be used to modify the data in various ways, including filtering rows and columns and basic data manipulation.

A relational database is a collection of clearly defined tables that enable data access, editing, updating, and other operations without requiring changes to the database tables themselves. Relational databases' standard (API) is SQL.

Returning to SQL programming, it is possible to use it to perform a variety of operations on data, including querying, inserting, updating, and deleting database records. MySQL Database, Oracle, and other relational databases are examples.
Basics of SQL To modify data tables, SQL provides a set of straightforward commands. Here are a few of these commands:

Basics of SQL
To modify data tables, SQL provides a set of straightforward commands. Here are a few of these commands:
CREATE DATABASE :This command creates a new database.
USE: The database is activated using this command.
CREATE TABLE :This command creates a new table.
INSERT INTO command : adds new data to a database.
SELECT : pulls information out of a database.
UPDATE : Performs a database update.
DELETE : removes information from a database.
ALTER DATABASE : Changes a database.
ALTER TABLE : changes a table.
DROP TABLE : eliminates a table.
CREATE INDEX : creates a searchable index for an element.
DROP INDEX : Removes an index

Top comments (0)