Questions
Questions
Write a select statement that adds SALARY, COMM and BONUS together ( handling NULL
amounts) to get total income and create a FULLNAME column that displays the name
like this ( Ricetto, Darcy ) from the EMPLOYEE TABLE
255
2555555
65535
68954
Write a statement to Insert a new record into the ACT table with the following
data: actno = 555 actkwd = Nov2 actdesc = midterm
ATTRIBUTE
DATA TYPE
RELATION
PROCEDURE
GRANULARITY
UNIQUENESS
SORTING
SPEED
Write a statement to delete a record from a table called LOGIC_GATE where the
MANUFACTURING_DATE of the record is in 2023 AND the PROCESSOR_DESCR starts with
INTEL and the QUANTITY isn't NULL.
0.518
0.829
0.522
0.714
BNF
IRD
LBF
RTR
Create the ALTER statement to add the PRIMARY KEY on the first three columns of the
table : CREATE TABLE HR( HR_LIST_ID INT, RECRUITMENT_NUMBER VARCHAR(10),
POSITION_LOCATION VARCHAR(40), LOGGING VARCHAR(255))
WHERE
HAVING
SORT
ORDER
THESAURUS
DICTIONARY
INDEX
CONTEXT
Write a statement to remove a DATABASE called MIDTERM and check whether it is there
so the statement doesn't error out
SLASH
COMMA
TILDA
HASHTAG
DELETE
REMOVE
DROP
CLEANUP
Write a statement to ALTER a table called DAYSOFTHEWEEK and change its name to
DAYS_IN_THE_WEEK
ALLOCATE
APPLY
RENAME
CHANGE
10
255
What condition would you use in the WHERE clause if you wanted to specify a list of
values?
ON
THROUGH
LIST
IN
What is the acronym that describes the category that a CREATE TABLE statement falls
in?
DRL
DDL
DBL
DTL
VARCHAR
BLOB
DATE
CLOB
Write a select statement that averages the salary column from the staff table and
finds the COUNT COMM and COUNT BONUS. Include the ID and DEPT column. Limit the
SALARY by the AGGREGATED SALARY >30000
Fill in the blank with adding the COLUMN NOVEL_ID AND the FOREIGN KEY on that
column that REFERENCES the AUTHORS table and the ID NUMBER(10) column in that table
: CREATE TABLE LITURATURE(LITURATURE_ID NUMBER(10), NOVEL_NAME VARCHAR(300),
___________________________________)"
3.6
2.184
2.2
2.188
What condition would you use in the WHERE clause if you wanted records with R in
the 4th spot and S 6th spot?
Write a statement to create a table STAFF_COPY which is an exact copy of the STAFF
table, and populate it with data from the STAFF table
Write the statements to drop the FIRSTNAME column from the EMPLOYEE table and ADD a
LOCATION (VARCHAR 10) to the EMPLOYEE table
What can I add to the end of a SELECT statement to force the WHERE clause to be
CASE sensitive?
What condition would you use in the WHERE clause if you wanted a wildcard search
with a specific number of characters?
UNDERSCORE
ASTERISK
PERCENT
TILDA
Fill in the blank to force the SALARY from greatest to least and the COMM from
least to greatest AND the GROUPING required : SELECT SUM(SALARY+ COMM), EMP_ID FROM
EMP ____________________________________________
"What is the acronym used to describe INSERTS, UPDATES, DELETES, CREATES AND
SELECTS"
SQL
BYOD
CRUD
SQIT
91
92
92.3
92.33
What is the command to change a string to the opposite of upper case in a SELECT?
BOTTOM
MIN
CAMEL
LOWER
IS NULL
IS BLANK
IS NOT BLANK
IS NOT NULL
PRECEDENCE
RELATIONSHIPS
SEMANTICS
CONSTRAINTS
What would I wrap around the column EXAM_VALUES to find out the number of
characters of each exam value and remove any leading or trailing spaces?
What column type would you use to store the value : 294.88f
VARCHAR
NUMBER
DATE
FLOAT
Fill in the blank if I only want employees who have a JOINED DATE in the month of
July : SELECT ______ FROM EMPLOYEE WHERE _________JOINED_DATE = _________