100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Other

INF3707 Assignment 4 memo 2024

Rating
-
Sold
-
Pages
9
Uploaded on
06-09-2024
Written in
2024/2025

INF3707 Assignment 4 memo 2024

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
September 6, 2024
Number of pages
9
Written in
2024/2025
Type
Other
Person
Unknown

Subjects

Content preview

UNISA  2024  INF3707-24-Y  Welcome Message  Assessment 4

QUIZ




Started on Thursday, 5 September 2024, 6:27 PM
State Finished
Completed on Thursday, 5 September 2024, 7:17 PM
Time taken 49 mins 55 secs
Grade 80.00 out of 100.00


Question 1

Complete

Mark 4.00 out of 4.00




The user Alice wants to grant all users query privileges on her Orders table. Which SQL statement accomplishes this?


a. Grant select on Orders to all_users
b. Grant select on Orders to_all
c. Grant query on Orders to_public
d. Grant select on Orders to public




Question 2
Complete

Mark 4.00 out of 4.00




Which of the following will display the new retail price of each book as 20 percent more than its originally cost?


a. SELECT title, retail*.2 "New Retail Price" FROM books
b. SELECT title, retail+.20 "New Retail Price" FROM books
c. SELECT title, cost*.20 "New Retail Price" FROM books
d. SELECT title, cost*1.20 "New Retail Price" FROM books

, Question 3

Complete

Mark 4.00 out of 4.00




What does the following query?

SELECT isbn, title FROM books

WHERE (pubid, category) IN
(SELECT pubid, category

FROM books WHERE title LIKE ‘%ORACLE%’);


a. It determines which publisher published a book belonging to the oracle category and then lists all other books
published by the same publisher.

b. It lists all publishers and categories containing the value oracle

c. It lists the ISBN and title of all books belonging to the same category and having the same publisher as any book
with the phrase ORACLE in its title

d. The query contains a multiple row operator and because the inner query only returns one value, the select statement
will fail and return an error message.




Question 4
Complete

Mark 0.00 out of 4.00




Where can subqueries be used? Choose the best answer.


a. Field names in the SELECT statement
b. For constraints statements only
c. The GROUP BY clause in the SELECT statement
d. The WHERE clause in only the SELECT statement




Question 5

Complete

Mark 4.00 out of 4.00




Which of the following commands eliminates only the user ELPOEZ’s ability to enter new books in the BOOKS table?


a. Revoke insert on books from elopez
b. Revoke insert from elopez
c. Revoke insert into from elopez
d. Drop insert into books from elopez

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
foxNotes Acsess Business Academy
Follow You need to be logged in order to follow users or courses
Sold
112
Member since
2 year
Number of followers
63
Documents
35
Last sold
3 months ago
saveNotes

5.0

5 reviews

5
5
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions