SQL Commands Flashcards
Alter Table
Adds new column or deletes column or index
Add
Adds a new column to the table
Drop Column
Deletes the column
Create Index # on Column
Creates an index on the table
Select
Retrieves and sorts information
Insert Into
Add a row to the table
Update, Set
Change the value of a column
What is a Procedure
Stored SQL code to be used later
select *
select any
select gender
, count (*)
from Employee
group by Gender
Shows the amount of men and women (shows the amount of people for each classification of genders)
CONCAT
Adds two or more strings together
distinct
prevents duplicates from being displayed in the query.
where
filter records displayed that meet a certain condition
or requires how many sides to be true
1
and requires how many sides to be true
both sides