The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Need help with SQL
Â
QUESTION 1
Â
Given the table STUDENT(StudentID, Name, Advisor), which of the following SQL statements would be used to add new student data to the STUDENT table?
Â
INSERT DATA STUDENT SET StudentID=123, Name='Jones', Advisor='Smith';
Â
INSERT INTO STUDENT VALUES (123, 'Jones', 'Smith');
Â
INSERT INTO STUDENT (New Student Data) VALUES (123, 'Jones', 'Smith');
Â
INPUT DATA STUDENT SET StudentID=123, Name=' Jones', Advisor='Smith';
Â
INPUT INTO STUDENT (123, 'Jones', 'Smith');
Â
Â
QUESTION 2
Â
The order of the columns returned by an SQL SELECT statement is determined by the:
Â
ORDER BY clause.
Â
Â
SORT BY clause.
Â
Â
order they are listed in following SELECT.
Â
Â
order they are listed in following WHERE.
Â
Â
order they are listed in following FROM.
Â
Â
r
QUESTION 3
Â
Which SQL keyword is used to eliminate duplicate rows in the results of an SQL SELECT query?
Â
Â
UNIQUE
Â
Â
SORT
Â
Â
ORDER BY
Â
Â
DISTINCT
Â
Â
REDUCE
Â
Â
1 points  Save Answer
Â
Â
Which SQL keyword is used to specify a condition that rows must meet to be included in the results of an SQL SELECT query?
Â
Â
SELECT
Â
Â
FROM
Â
Â
WHERE
Â
Â
ORDER BY
Â
Â
GROUP BY
Â
Â
Question 5
Â
Â
Which of the following is the correct SQL clause to restrict the results of a SELECT query to only records that have a value in the range of 10 to 50 in the Hours column?
Â
Â
WHERE Hours = MIN(10) and MAX(50)
Â
Â
WHERE Hours IN [10, 50]
Â
Â
WHERE Hours = 10 and Hours = 50
Â
Â
WHERE Hours BETWEEN 10 AND 50
Â
Â
WHERE Hours RANGE 10 TO 50
Â
Â
Â
QUESTION 6
Â
Which symbol is used in standard SQL as a wildcard to represent a single, unspecified character?
Â
Â
% (percent sign)
Â
Â
! (exclamation mark)
Â
Â
_ (underscore)
Â
Â
? (question mark)
Â
Â
; (semi-colon)
Â
Â
Â
QUESTION 7
Â
Which symbol is used in standard SQL as a wildcard to represent a series of one or more unspecified characters?
Â
Â
% (percent sign)
Â
Â
! (exclamation mark)
Â
Â
_ (underscore)
Â
Â
? (question mark)
Â
Â
; (semi-colon)
Â
Â
Â
QUESTION 8
Â
Which SQL keyword can be used in conjunction with wildcards to select partial values?
Â
Â
SELECT
Â
Â
SEARCH
Â
Â
FIND
Â
Â
SUBSTRING
Â
Â
LIKE
Â
r
QUESTION 9
Â
Which of the following is the correct SQL clause to sort the results of a SELECT query in reverse-alphabetic order using the Department field?
Â
Â
SORT BY Department
Â
Â
REVERSE Department
Â
Â
ORDER BY Department DESC
Â
Â
SORT BY Department DESC
Â
Â
SORT BY Department REVERSE
Â
Â
QUESTION 10
Â
Which of the following is not one of the five SQL built-in functions?
Â
Â
MODE
Â
Â
SUM
Â
COUNT
Â
MAX
Â
AVG
Â
QUESTION 11
Â
Given the table CUSTOMER(CustID, Name, PhoneNum, AcctBalance), what is the standard SQL query phrase to retrieve the Name and Phone Number of customers?
Â
Â
SELECT CUSTOMER-Name AND CUSTOMER-PhoneNum
Â
Â
SELECT (CUSTOMER-Name AND CUSTOMER-PhoneNum
Â
Â
SELECT Name, PhoneNum
Â
SELECT (Name, PhoneNum)
Â
SELECT *
Â
QUESTION 12
Â
Given the table CUSTOMER(CustID, Name, PhoneNum, AcctBalance), what is the standard SQL query phrase to retrieve data for customers with an account balance greater than 50?
Â
Â
WHERE CUSTOMER-AcctBalance > 50
Â
Â
WHERE (CUSTOMER-AcctBalance > 50)
Â
WHERE AcctBalance > 50
Â
WHERE (AcctBalance > 50)
Â
HAVING AcctBalance > 50
Â
QUESTION 13
Â
Which SQL keyword is used to apply conditions to restrict groups that appear in the results of a SELECT query that uses GROUP BY?
Â
Â
WHERE
Â
HAVING
Â
LIKE
Â
SORT
Â
DISTINCT
Â
r
QUESTION 14
Â
Given the tables STUDENT(StudentID, StudentName, AdvisorID) and ADVISOR(AdvisorID, AdvisorName, Office, Phone), which of the following SQL statements would be used to implant a join between the two tables?
Â
Â
WHERE STUDENT MATCH ADVISOR
Â
WHERE STUDENT.AdvisorID MATCH ADVISOR.AdvisorID
Â
WHERE STUDENT = ADVISOR
Â
Â
WHERE STUDENT JOIN ADVISOR
Â
Â
WHERE STUDENT.AdvisorID = ADVISOR.AdvisorID
Â
Â
QUESTION 15
Â
Which of the following SQL commands would be used to remove only the data from a table named STUDENT while leaving the table structure intact?
Â
Â
DROP TABLE STUDENT;
Â
DELETE TABLE STUDENT;
Â
Â
REMOVE TABLE STUDENT;
Â
Â
SELECT * FROM STUDENT THEN DROP;
Â
Â
DELETE FROM STUDENT;
Â
r
QUESTION 16
Â
The SQL keyword(s) ________ mean(s) that a value must be supplied before a new row can be created.
Â
Â
Â
QUESTION 17
Â
The SQL command used to add new data to a table is ________.
Â
Â
Â
Â
QUESTION 18
Â
The values of existing data can be modified using the SQL ________ command, which can be used to change several column values at once.
Â
Â
Â
QUESTION 19
Â
The values of existing data can be removed from a table using the SQL ________ command, which can even be used to remove all the data in the table at one time.
Â
Â
Â
QUESTION 20
Â
A complete table, including both the table structure and any data in the table, can be removed from the database by using the SQL ________ command.
Â
Â
Â
QUESTION 21
Â
Given the table CUSTOMER(CustID, Name, PhoneNumber, AccountBalance), write the standard SQL query to retrieve the Name and Phone Number of customers with a balance greater than 50.
Â
Â
QUESTION 22
Â
Given the table CUSTOMER(CustID, Name, PhoneNumber, AccountBalance), write the standard SQL query to retrieve the Name and Phone Number of customers whose name begins with 'S'.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly