• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/20

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

20 Cards in this Set

  • Front
  • Back
What does SQL stand for?

A. Structured Question Language

B. Structured Query Language

C. Strong Question Language
B. Structured Query Language
Which SQL statement is used to extract data from a database?

A. EXTRACT

B. SELECT

C. GET

D. OPEN
B. SELECT
Which SQL statement is used to update data in a database?

A. SAVE

B. UPDATE

C. MODIFY

D. SAVE AS
B. UPDATE
Which SQL statement is used to delete data from a database?

A. COLLAPSE

B. REMOVE

C. DELETE
C. DELETE
Which SQL statement is used to insert new data in a database?

A. INSERT NEW

B. ADD RECORD

C. INSERT INTO

D. ADD NEW
C. INSERT INTO
With SQL, how do you select a column named "FirstName" from a table named "Persons"?

A. EXTRACT FirstName FROM Persons

B. SELECT Persons.FirstName

C. SELECT FirstName FROM Persons
C. SELECT FirstName FROM Persons
With SQL, how do you select all the columns from a table named "Persons"?

A. SELECT Persons

B. SELECT [all] FROM Persons

C. SELECT *.Persons

D. SELECT * FROM Persons
D. SELECT * FROM Persons
With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?

A. SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'

B. SELECT * FROM Persons WHERE FirstName<>'Peter'

C. SELECT * FROM Persons WHERE FirstName='Peter'

D. SELECT [all] FROM Persons WHERE FirstName='Peter'
C. SELECT * FROM Persons WHERE FirstName='Peter'
With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?

A. SELECT * FROM Persons WHERE FirstName LIKE 'a%'

B. SELECT * FROM Persons WHERE FirstName='a'

C. SELECT * FROM Persons WHERE FirstName='Peter'
A. SELECT * FROM Persons WHERE FirstName LIKE 'a%'
he OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true
CorrectIncorrect


A. True
B. False
A. True
With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"?

A. SELECT FirstName='Peter', LastName='Jackson' FROM Persons

B. SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'

C. SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'
B. SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'
With SQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"?

A. SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'

B. SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'

C. SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons
B. SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'
Which SQL statement is used to return only different values?

A. SELECT DIFFERENT

B. SELECT DISTINCT

C. SELECT UNIQUE
B. SELECT DISTINCT
Which SQL keyword is used to sort the result-set?

A. SORT BY

B. SORT

C. ORDER BY

D. ORDER
C. ORDER BY
With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"?

A. SELECT * FROM Persons SORT 'FirstName' DESC

B. SELECT * FROM Persons ORDER FirstName DESC

C. SELECT * FROM Persons SORT BY 'FirstName' DESC

D. SELECT * FROM Persons ORDER BY FirstName DESC
D. SELECT * FROM Persons ORDER BY FirstName DESC
With SQL, how can you insert a new record into the "Persons" table?

A. INSERT INTO Persons VALUES ('Jimmy', 'Jackson')

B. INSERT VALUES ('Jimmy', 'Jackson') INTO Persons

C. INSERT ('Jimmy', 'Jackson') INTO Persons
A. INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table?

A. INSERT ('Olsen') INTO Persons (LastName)

B. INSERT INTO Persons (LastName) VALUES ('Olsen')

C. INSERT INTO Persons ('Olsen') INTO LastName
B. INSERT INTO Persons (LastName) VALUES ('Olsen')
How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table?

A. UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'

B. MODIFY Persons SET LastName='Nilsen' WHERE LastName='Hansen'

C. UPDATE Persons SET LastName='Hansen' INTO LastName='Nilsen'

D. MODIFY Persons SET LastName='Hansen' INTO LastName='Nilsen
A. UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table?

A. DELETE FROM Persons WHERE FirstName = 'Peter'

B. DELETE FirstName='Peter' FROM Persons

C. DELETE ROW FirstName='Peter' FROM Persons
A. DELETE FROM Persons WHERE FirstName = 'Peter'
With SQL, how can you return the number of records in the "Persons" table?

A. SELECT COUNT() FROM Persons

B. SELECT COLUMNS() FROM Persons

C. SELECT COLUMNS(*) FROM Persons

D. SELECT COUNT(*) FROM Persons
A. SELECT COUNT() FROM Persons