SQL Syntax Flashcards
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 *
selects all the columns from the specific table
SELECT DISTINCT
select all the different values from the specific columns in specific table,
a column often contains many duplicate values; and sometimes you only want to list the different (distinct) values. NOT LIST DUPLICATE
SELECT COUNT
lists the number of different (distinct) countries in table ,,,doesNOT work for firefox, NOT supported for MS access databases.
SELECT WHERE
is used to filter records. is used to extract only those records that fulfill a specified condition. USED in SELECT, UPDATE , DELETE statements.