Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

ICT3612 Assignment 3 2024 - DUE 15 July 2024

Document preview thumbnail
Preview 3 out of 25 pages

ICT3612 Assignment 3 2024 - DUE 15 July 2024 QUESTIONS AND ANSWERS

Content preview

ICT3612 Assignment
3 2024 - DUE 15 July
2024
QUESTIONS WITH COMPLETE ANSWERS




[School]
[Course title]

,ICT3612 Assignment 3 2024 - DUE 15 July 2024

Question 1 (2 marks)

Which of the following is an aggregate expression that will find the oldest date
in the invoiceDate column?

1. MIN(invoiceDate)

2. MAX(invoiceDate)

3. HIGH(invoiceDate)

4. LOW(invoiceDate)

2. MAX(invoiceDate)

This aggregate function retrieves the maximum (oldest) date from the invoiceDate
column.



Question 2 (2 marks)

Which of the following LIMIT clauses will return a maximum of five rows
starting with the eleventh row in the result set? Downloaded by Corona Virus
() lOMoARcPSD| 15 ICT3612/102/0/2024

1. LIMIT 10, <= 5

2. LIMIT 11, <= 5

3. LIMIT 10, 5

4. LIMIT 11, 5

The correct answer for Question 2 is:

, 4. LIMIT 11, 5

This LIMIT clause will start at the eleventh row and return a maximum of five
rows from that point onward in the result set.



Question 3 (2 marks)

When coded in a WHERE clause, which search condition will return invoices
when paymentDate isn’t null and invoiceTotal is greater than or equal to 500?

1. paymentDate IS NULL AND invoiceTotal > 500

2. paymentDate IS NOT NULL OR invoiceTotal >= 500

3. NOT (paymentDate IS NULL AND invoiceTotal <= 500)

4. paymentDate IS NOT NULL AND invoiceTotal >= 500

The correct answer for Question 3, which will return invoices when paymentDate
isn’t null and invoiceTotal is greater than or equal to 500, is:

4. paymentDate IS NOT NULL AND invoiceTotal >= 500

This condition ensures that both paymentDate is not null (indicating payment has
been made) and invoiceTotal is $500 or more.



Question 4 (1 mark)

Which of the following is not a comparison operator in a SQL statement?

1. <>

2. !=

Document information

Uploaded on
June 27, 2024
Number of pages
25
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$3.00

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
msmartie11
3.9
(30)
Sold
246
Followers
224
Items
1232
Last sold
10 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions