SQL Flashcards
What formats can be stored in database?
Text, Number, Date-time
Before deleting a record or records from a table
You MUST use a where statement
The record must not be referenced via its foreign key by any other entity
Which is the key used with SELECT to return only unique values?
DISTINCT
Which of the following would be the correct operator to use with a partial string match utilizing the wildcard?
Like
Which SQL statement is used to update data in a database?
UPDATE
With SQL, how do you select all the columns from a table named ‘Persons’?
SELECT * FROM Persons
With SQL, how do you select all the records from a table named ‘Persons’ where the FirstName is equal to ‘Peter’?
SELECT * FROM Persons WHERE FirstName=’Peter’
With SQL, how can you insert a new record into the ‘Persons’ table?
INSERT INTO Persons VALUES (‘Jimmy’,’Jackson’)