0% found this document useful (0 votes)
13 views

Select Distinct City From Customers Selects Only The Distinct Values From The "City" Columns From The "Customers" Table

This document provides an overview of SQL and some common SQL commands. SQL is a language used to communicate with relational database management systems and is not case sensitive. Some key SQL commands covered are SELECT, UPDATE, DELETE, and INSERT which are used to extract, update, delete and insert data respectively from databases. Additional commands manage the structure of databases and tables like CREATE, ALTER, and DROP.

Uploaded by

PujaSamanta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Select Distinct City From Customers Selects Only The Distinct Values From The "City" Columns From The "Customers" Table

This document provides an overview of SQL and some common SQL commands. SQL is a language used to communicate with relational database management systems and is not case sensitive. Some key SQL commands covered are SELECT, UPDATE, DELETE, and INSERT which are used to extract, update, delete and insert data respectively from databases. Additional commands manage the structure of databases and tables like CREATE, ALTER, and DROP.

Uploaded by

PujaSamanta
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

SQL Structured query language

RDBMS Relational database management system


Not case sensitive
Commands:

Select coumn-name, column-name


From table-name;
Select * from CUSTOMERS;
This command will select all the data from customers table. Customers is
table name.

SELECT - extracts data from a database

UPDATE - updates data in a database

DELETE - deletes data from a database

INSERT INTO - inserts new data into a database

CREATE DATABASE - creates a new database

ALTER DATABASE - modifies a database

CREATE TABLE - creates a new table

ALTER TABLE - modifies a table

DROP TABLE - deletes a table

CREATE INDEX - creates an index (search key)

DROP INDEX - deletes an index

Select Distinct city from customers;


selects only the distinct values from the "City" columns from the
"Customers" table.

You might also like