代做CSCI235 – Database Systems, SP424, Assignment 3代做Java程序

CSCI235 – Database Systems, SP424, Assignment 3

[Assignment 3 (15% of total marks)

Due date: Thursday, 21 November 2024, 9:00 pm Singapore time.

Scope:

The objectives of this assignment are to implement a hierarchical data structure using BSON documents, utilize the query language of the MongoDB database system, perform. data operations on BSON documents, and work with aggregations and cursors.

Assessment criteria:

Marks will be awarded for:

•    Correct,

•    Comprehensive, and

•    Appropriate

application of the materials covered in this subject.

Only electronic submission through Moodle at: https://moodle.uowplatform.edu.au/ is accepted. All email submission will be deleted and mark 0 (“zero”) will be awarded.

For all the implemented tasks, your report or output must include a listing of all JSON scripts and its output.

The submission procedure is explained at the end of this specification.

Assignment Specification:

Preliminary actions

In this implementation task, you may use the virtual machine that runs MongoDB Enterprise Edition database server 3.6.5. or the actual installation of MongoDB in your computer system.

Download and unzip a file Assignment3-all-files.zip. You should get the specification of the Assignment 3 and a Java script. file, customerOrder.js.

Task 1 (5.0 marks)

Task 1 Implementation of BSON documents

Consider the following conceptual schema of a sample MongoDB database.

1.  Start the MongoDB client and connect to the database server.

2.  Perform. the following steps:

(a)  Create a new MongoDB database named with your UOW student number.

(b)  Create a collection named after the prefix of your UOW email address (e.g., "sjapit").

(c)  Insert  documents  into  the  collection  according  to  the  conceptual  schema provided above.  Ensure the documents  represent the  hierarchical structure effectively. You do not need to enforce all identification constraints from the schema. Insert at least one document for each class of objects defined in the schema, with meaningful values for each property.

(d)  Display the contents of the collection in a "pretty" format to verify the document structure.

3.  Save a report of these actions in a file named solution1.lst. To do this, copy the output from your terminal and paste it into the solution1.lst file, ensuring the actions appear in the same order as listed above.

Deliverables:

Submit a PDF of the solution1.lst file. The report should contain no errors and must include all processed methods and inserted documents displayed in a pretty format.

Task 2 (5.0 marks)

Retrieving information from BSON documents

Start mongo client and connect to the MongoDB database server. Next, process a script. file customerOrder.js to insert BSON documents into a collection customerOrder. Make yourself familiar with the contents of the collection.

a) Find all customer orders' detail by customer from Singapore who have ever made order after 1 October 2024.

b) Find the first name, last name, emails, and address of customers from Singapore who have ever bought a personal computer.

c)  Find the first name, last name and email of customer who have no telephone.

d) Find the first name, last name, date of birth (DOB), and the language of customers who speak both English and Mandarin.

e) Find the first name, last name, address, and balance of customer whose balance is in a range between 1000 and 2500.

f)  Find the first name, last name, and email of customer who bought MicroSD. Do not list the object id of the customer.

Save the listings of processed queries and the results of processing in a file solution2.lst. To create a report, you can process the queries one by one and later ‘Copy’ the contents of Terminal window and ‘ Paste’ it into a file solution2.lst. The results of query processing must be included into a file solution2.lst in the same order as the respective queries listed above.

Deliverables

Generate a file solution2.lst with a report from processing the queries listed above. The report MUST have no errors. The report must list all methods processed by mongo command line shell. Please save your solution2.lst in pdf format before submission.

Task 3 (5.0 marks)

Aggregation and Data manipulations on BSON documents

If you have not done it yet, start mongo client and connect to the MongoDB database server. Next, process a script. file customerOrders.js to insert BSON documents into a collection person. Make yourself familiar with the contents of the collection.

Use a query language of MongoDB database system to retrieve the following information from a collection customerOrder.

a) List the first name and last name of customer who made the order ord001.

b) Find the order number (orderNumber) of the order that was attended by a staff whose staff number = stf890.

c)  Find the first and last name of customer who have made orders on 15-NOVEMBER- 2024.

d) Find the total number of orders made by each customer. For each customer, list his/her email address and the total number of orders performed.

e) Change the staff number of order number ord005 to stf789.

f)  Delete from a collection the documents that contain information about the customers whose first name is Andrew, and the last name is Smith or customers who live in Singapore.

Save the listings of processed queries and the results of processing in a file solution3.lst. To create a report, you can process the queries one by one and later ‘Copy’ the contents of Terminal window and ‘ Paste’ it into a file solution3.lst. The results of query processing must be included into a file solution3.lst in the same order the as respective queries listed above.

Deliverables

Generate a file solution3.lst with a report from processing the queries listed above. The report MUST have no errors. The report must list all methods processed by mongo command line shell. Please save your solution3.lst in pdf format before submission.




热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图