首页 > 其他分享 >COMP643 Advanced Database Management

COMP643 Advanced Database Management

时间:2024-06-12 09:45:27浏览次数:7  
标签:customer COMP643 product Management name points each Display Advanced

COMP643 Advanced Database Management

Assignment 3 Worth: 20% of course marks for COMP643.

Due: Friday, 14 th 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 th June 2024 5:00 p.m.

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 beadministered.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 theMongoDB is not in the form of tables and querying does not have to be done using SQL. Additionallearning 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 databasehave been converted to MongoDB. You can download the JSON file (“rosesdb.json”) for creating thisdatabase 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).

  1. Display the customer id and customer name of all customers with a balance of $0.00 and whoare not from “Christchurch” sorted by customer id.

(4 points)

  1. Display the customer id, customer name, customer city and customer balance of all customerssorted by customer name in ascending order. (3 points)
  1. Display the product name and product price for every product in the system. Sort the results byproduct name. Duplicates should be removed. (3 points)
  1. Display the product name and total for all orders made by customer number 1001 sorted bytotal in descending order. (4 points)2 | P a g e
  1. Display the product name and product price for all products that cost greater than or equal to$50.00. (3 points)
  1. For each customer, display the customer’s name, the number of order and the order total. (5points)
  1. Display the number of distinct products in the system. (3 points)
  2. Display the product name and the product price for the product with highest price. (4 points)
  3. Display the customer name for all customers who have never ordered a product. (2 points)
  4. Display all cities customers are based in and the number of customers in each city. (3 points)
  5. Display the product name and total for all the product(s) ordered by “John”. (3 points)
  6. Display the product name and the number of times each product has been ordered. (3 points)
  7. Insert a new customer, (10013, “Hans”, “Dunedin”, 0.00). (5 points)
  8. 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 collectionof 1,000 roses in each location and to cater for over 20,000 customers nationwide. Write a one-pagesummary (excluding references) to discuss the suitability of a document database to store andmanage customer orders. Your discussion should consider three factors. These factors may includedata model (schema flexibility), usability and performance, data integrity and accuracy, functionality,security and cost. All references must follow APA 7th Edition reference format.

Submit your discussion as a PDF.

Part 3 Marking Criteria

Description

Marks

Discussion of suitability of a document database using each ofthe three selected factors.24Spelling, punctuation, grammar and references

标签:customer,COMP643,product,Management,name,points,each,Display,Advanced
From: https://www.cnblogs.com/qq99515681/p/18243190

相关文章

  • DISM(Deployment Image Servicing and Management)和wimlib虽然都可以用来处理Windows映
    DISM(DeploymentImageServicingandManagement)和wimlib都是用于Windows系统的映像管理工具,它们可以用来处理Windows映像文件(.wim文件),但在功能和使用上有一些不同点。下面是它们的比较:DISM(DeploymentImageServicingandManagement)内置工具:DISM是Windows操作系统......
  • 吴恩达机器学习第二课 Advanced Learning Algorithms
    AdvancedLearningAlgorithmsweek11.1神经元和大脑1.2需求预测构建自己神经网络的时候:需要决定隐藏层的个数和每个隐藏层的神经元个数1.3图像感知像素的亮度值从0~255变化人脸识别:训练一个神经网络,以一个特征向量作为输入,输出图片中人的身份2.1神经网络中的网......
  • SQL Server Management Studio (SSMS) 20.1 - 微软数据库管理工具
    SQLServerManagementStudio(SSMS)20.1-微软数据库管理工具请访问原文链接:https://sysin.org/blog/ssms/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org笔者注:SQLServer2014及之前版本内置SQLServerManagementStudio(SSMS),SQLServer2016及以后版本......
  • 国产大模型参加高考,同写2024年高考作文,及格分(通义千问、Kimi、智谱清言、Gemini Advan
    大家好,我是章北海今天高考,上午的语文结束,市面上又要来一场大模型参考的文章了。我也凑凑热闹,让通义千问、Kimi、智谱清言一起来写一下高考作文。公平起见,不加任何其他prompt,直接把题目甩过去。感觉写的都很一般,通篇口水文,都能拿个及格分吧。有点好奇,就加了几个国外选手参赛:Ge......
  • Revit二次开发-使用Advanced Installer打包插件安装包
    插件开发属于客户端开发,当我们交付产品给客户的时候,肯定用安装包的形式交付是最佳方案。所以我摸索了一下怎么用AdvancedInstaller来打包插件安装包。AdvancedInstaller简介AdvancedInstaller是一款功能强大且用户友好的Windows安装包制作工具,专门用于创建安装包(MSI、EX......
  • Body AdvancedBrep Geometry
    BodyAdvancedBrepGeometryBodyBrepGeometry是通过边界表示模型(包括NURBS)表示产品的三维形状。应使用保持该几何表示的IfcShapeResentation的以下属性值:IfcShapeRepresentation.RepresentationIdentifier ='Body'IfcShapeRepresentation.RepresentationType ='Advanced......
  • Advanced .Net Debugging 9:平台互用性
    一、介绍这是我的《Advanced.NetDebugging》这个系列的第九篇文章。这篇文章的内容是原书的第二部分的【调试实战】的第七章【互用性】。互用性包含两个方面,第一个方面就是托管代码调用COM,此情况叫做COM互用性(也叫做COMInterop);第二个方面就是托管代码调用从DLL中......
  • 南澳大学INFS 2042 Data Structures Advanced Assignment 2 – Contact Tracing
    INFS2042DataStructuresAdvancedAssignment2–ContactTracingINFS2042DataStructuresAdvancedAssignment2–ContactTracingwechat:help-assignment1.IntroductionTotrackandreducethespreadofadiseaseduringanepidemicorpandemicsituat......
  • ARM-V9 RME(Realm Management Extension)系统架构之系统安全能力的信任根服务
    安全之安全(security²)博客目录导读目录一、信任根服务1、非易失性存储2、根看门狗3、随机数生成器4、加密服务5、硬件强制安全性本节定义了系统架构必须支持的一般安全属性和能力,以确保RME安全性。本章扩展了可能属于系统认证配置文件的一部分的其他安全规范,例如基......
  • GEE 27 高级栅格可视化 Advanced Raster Visualization(Part6)
    Overview ThischaptershouldhelpusersofEarthEnginetobetterunderstandrasterdatabyapplyingvisualizationalgorithmssuchashillshading,hillshadows,andcustomcolormaps.Wewillalsolearnhowimagecollectiondatasetscanbeexploredbyani......