鸡西氛颈旅行社

COMP643代做、代寫(xiě)SQL語(yǔ)言程序

時(shí)間:2024-06-14  來(lái)源:  作者: 我要糾錯(cuò)



COMP643 Advanced Database Management 
Assignment 3 
Worth: 20% of course marks for COMP643. 
Due: Friday, 14th June 2024 5:00 p.m. 
Late Penalty: Work not received by the due time attracts an immediate penalty, up to 25% of 
the points available. No work will be accepted after Sunday 16
Submission: via COMP643 on LEARN 
IMPORTANT 
 
The use of Artificial Intelligence (AI) tools, such as ChatGPT, to complete this assessment is 
prohibited. Assessment answers will be analysed for evidence of the use of AI and penalties may be 
administered. 
 
The University policy on Academic Integrity can be found here. 
 
PART 1 – QUERYING AND UPDATING THE DOCUMENT DATABASE (50 POINTS) 
MongoDB is an open-source document-oriented database that is designed to store large scale data. 
It is categorised as a NoSQL (Not only SQL) database because the storage and retrieval of data in the 
MongoDB is not in the form of tables and querying does not have to be done using SQL. Additional 
learning materials for MongoDB can be found on COMP643 LEARN Page. 
In Assignment 2, Part 2, you used a database to process orders for roses. A subset of this database 
have been converted to MongoDB. You can download the JSON file (“rosesdb.json”) for creating this 
database in your local machine. 
Based on this document database, write queries in MongoDB for each of the following tasks. Submit 
the queries in a text file, each query MUST be labelled with the question number (e.g, 1a). 
a. Display the customer id and customer name of all customers with a balance of $0.00 and who 
are not from “Christchurch” sorted by customer id. 
(4 points) 
 
b. Display the customer id, customer name, customer city and customer balance of all customers 
sorted by customer name in ascending order. (3 points) 
 
c. Display the product name and product price for every product in the system. Sort the results by 
product name. Duplicates should be removed. (3 points) 
 
d. Display the product name and total for all orders made by customer number 1001 sorted by 
total in descending order. (4 points) 
 2 | P a g e 
 
 
e. Display the product name and product price for all products that cost greater than or equal to 
$50.00. (3 points) 
 
f. For each customer, display the customer’s name, the number of order and the order total. (5 
points) 
 
g. Display the number of distinct products in the system. (3 points) 
 
h. Display the product name and the product price for the product with highest price. (4 points) 
 
i. Display the customer name for all customers who have never ordered a product. (2 points) 
 
j. Display all cities customers are based in and the number of customers in each city. (3 points) 
 
k. Display the product name and total for all the product(s) ordered by “John”. (3 points) 
 
l. Display the product name and the number of times each product has been ordered. (3 points) 
 
m. Insert a new customer, (10013, “Hans”, “Dunedin”, 0.00). (5 points) 
 
n. Insert a new order for Hans, (“Wenlock”, 40, 3, 120.00) and update the customer balance for 
Hans to 120.00. (5 points) 
 
 
PART 2 – EVALUATIONS OF THE DOCUMENT DATABASE (30 POINTS) 
Lincoln Rose Farm is expanding to 20 different cities in New Zealand. The plan is to have a collection 
of 1,000 roses in each location and to cater for over 20,000 customers nationwide. Write a one-page 
summary (excluding references) to discuss the suitability of a document database to store and 
manage customer orders. Your discussion should consider three factors. These factors may include 
data model (schema flexibility), usability and performance, data integrity and accuracy, functionality, 
security and cost. All references must follow APA 7
th
 Edition reference format. 
Submit your discussion as a PDF. 
Part 3 Marking Criteria 
Description Marks 
Discussion of suitability of a document database using each of 
the three selected factors. 
24 
Spelling, punctuation, grammar and references 6 
Total 30 
 
請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

















 

標(biāo)簽:

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:代寫(xiě)ECON2101: Microeconomics 2
  • 下一篇:代做COMP9021、代寫(xiě)python語(yǔ)言編程
  • 無(wú)相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲(chóng)
    油炸竹蟲(chóng)
    酸筍煮魚(yú)(雞)
    酸筍煮魚(yú)(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚(yú)
    香茅草烤魚(yú)
    檸檬烤魚(yú)
    檸檬烤魚(yú)
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 幣安app官網(wǎng)下載 幣安app官網(wǎng)下載

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2023 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    城固县| 万盛区| 江北区| 罗江县| 理塘县| 梅州市| 富锦市| 喀喇| 南丹县| 三明市| 云林县| 阿克苏市| 易门县| 东宁县| 新丰县| 轮台县| 建昌县| 洛阳市| 大关县| 景洪市| 昌吉市| 昌黎县| 金溪县| 都昌县| 上饶市| 哈密市| 岐山县| 商洛市| 且末县| 饶阳县| 临泽县| 勐海县| 南阳市| 淮北市| 秀山| 黑水县| 广水市| 河东区| 闽侯县| 简阳市| 图木舒克市|