Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer the questions below: Which SQL command is used to delete both the data and metadata in a table? Group of answer choices: DELETE
Please answer the questions below:
Which SQL command is used to delete both the data and metadata in a table?
Group of answer choices:
DELETE
DROP
REDACT
UNDO
UNWRITE
Based on the relational schema shown above, what is the most likely data type for the field TotalTeams?
Group of answer choices:
BOOLEAN
CHAR
NUMBER
DATE
VARCHAR
Assume we have already created the three tables in the schema shown above. Which of the following is the correct SQL syntax to add a column tracking the position of each athlete?
Group of answer choices:
ADD Position VARCHAR;
MODIFY TABLE ATHLETE ADD Position VARCHAR;
ALTER TABLE TEAM ADD Position VARCHAR;
ALTER TABLE TEAM MODIFY Position VARCHAR;
ALTER TABLE ATHLETE ADD Position VARCHAR;
Which type of constraint is used to limit the range of values that can be stored in a column? For example, a constraint that customer birthdays must fall between the years and
Group of answer choices:
CHECK
KEY
NOT NULL
UNIQUE
RANGE
Which SQL logical operator is used to do partial text matching?
Group of answer choices:
DISTINCT
STRING
LIKE
~
Which of the following is NOT an example of a wildcard operator in SQL
Group of answer choices:
They are all wildcard operators
Based on the relational schema above, which SQL query will return the text for all review with or stars?
Group of answer choices:
SELECT
FROM REVIEW;
SELECT ReviewText
FROM REVIEW
WHERE Stars OR ;
SELECT ReviewText
FROM REVIEW;
SELECT ReviewText
FROM REVIEW
WHERE Stars OR Stars;
SELECT
FROM REVIEW
WHERE Stars OR Stars;
Assume that one hotel's name in the database shown above was misspelled Best Worstern" instead of "Best Western" Which SQL command will correct this error?
Group of answer choices:
UPDATE HOTEL
SET HotelName 'Best Western';
UPDATE HOTEL
SET HotelName 'Best Western'
WHERE HotelName 'Best Worstern';
UPDATE HOTEL
SET HotelName 'Best Worstern';
UPDATE HOTEL
SET HotelName 'Best Western'
WHERE HotelName IS NULL;
UPDATE HOTEL
SET HotelName 'Best Worstern'
WHERE HotelName 'Best Western';
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started