Answered step by step
Verified Expert Solution
Link Copied!

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
VARCHAR2
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 VARCHAR2(25);
MODIFY TABLE ATHLETE ADD Position VARCHAR(25);
ALTER TABLE TEAM ADD Position VARCHAR2(25);
ALTER TABLE TEAM MODIFY Position VARCHAR2(25);
ALTER TABLE ATHLETE ADD Position VARCHAR2(25);
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 1900 and 2021.
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 4 or 5 stars?
Group of answer choices:
SELECT *
FROM REVIEW;
SELECT ReviewText
FROM REVIEW
WHERE Stars=4 OR 5;
SELECT ReviewText
FROM REVIEW;
SELECT ReviewText
FROM REVIEW
WHERE Stars=4 OR Stars=5;
SELECT *
FROM REVIEW
WHERE Stars=4 OR Stars=5;
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

Using Language That Works

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago