Questions I need to review on quizzes Flashcards
(17 cards)
statement: insert new data
INSERT INTO
select entries where a column value is between two values
SELECT * FROM <table name> WHERE <col name> BETWEEN <val 1> AND <val 2>
returns only different values
SELECT DISTINCT
sorts result set
ORDER BY
insert new record
INSERT INTO <table name> VALUES (<value * as many columns to fill>)
insert new value in a specific column
INSERT INTO <table name> (<col name>) VALUES (<value>)</value>
change column value from a specific column value
UPDATE <table name> SET <col name>=<new> WHERE <col name>=<old></old></new>
delete where column is a specific value
DELETE FROM <table name> WHERE <col name> = <value></value>
return number of records
SELECT COUNT(*) FROM <table name>
limit the returned items to a number of columns
SELECT * FROM <table name> LIMIT <numer></numer>
join that extracts data of matching rows from both tables
full outer join
blob stands for
binary large object
a cursor in sql is
read only
data type used to store JSON objects
NVarchar
update auto increment value of a table
ALTER TABLE <table name> AUTO_INCREMENT = <value></value>
grab current time of the system
current_timestamp()