Concept explainers
Use below command to build and load initial data to inventory collections.. There must be 8 documents in this collection. Run below command from command shell but show the result by taking screen shot from MongoDB Atlas
You can use any of your existing
db.inventory.insertMany( [
{ item: "journal", qty: 25, size: { h: 14, w: 21, uom: "cm" }, status: "A" },
{ item: "notebook", qty: 50, size: { h: 8.5, w: 11, uom: "in" }, status: "P" },
{ item: "paper", qty: 100, size: { h: 8.5, w: 11, uom: "in" }, status: "D" },
{ item: "planner", qty: 75, size: { h: 22.85, w: 30, uom: "cm" }, status: "D" },
{ item: "specialcard ", qty: 77, size: { h: 22.85, w: 30, uom: "cm" }, status: "A" },
{ item: "christmascard ", qty: 65, size: { h: 22.85, w: 30, uom: "cm" }, status: "D" },
{ item: "mothersdaycard", qty: 25, size: { h: 21.85, w: 30, uom: "cm" }, status: "D" },
{ item: "postcard", qty: 45, size: { h: 10, w: 15.25, uom: "cm" }, status: "A" },
] );
3.Write the MongoDB Shell code to remove all inventory documents from the collection inventory, whose ‘qty is greater than 70.
Step by stepSolved in 2 steps with 2 images
- You will normalize the following data (each user gets different data), and insert the following data items into your database, creating and linking all the foreign keys properly. Encode instructor with a role of 1 and a learner with a role of 0.Xanthe, si106, InstructorCalley, si106, LearnerKirstie, si106, LearnerKorbyn, si106, LearnerSadiqa, si106, LearnerJael, si110, InstructorAbraham, si110, LearnerConstance, si110, LearnerOlivia, si110, LearnerYasmeen, si110, LearnerUzayr, si206, InstructorArmaan, si206, LearnerErika, si206, LearnerNickson, si206, LearnerQainat, si206, Learnerarrow_forwardCompulsory Task 1 Follow these steps: HHyperion Dev Create a Python file called database_manip.py. Write the code to do the following tasks: O Create a table called python_programming. Insert the following new rows into the python_programming table: id 55 66 77 12 2 O name O Carl Davis Dennis Fredrickson Jane Richards Peyton Sawyer Lucas Brooke grade 61 Review work 88 78 45 Select all records with a grade between 60 and 80. O Change Carl Davis's grade to 65. O Delete Dennis Fredrickson's row. o Change the grade of all people with an id below than 55. Submit your Python file that includes your code in your task folder. 99 Completed the task(s)? Ask an expert to review your work! Copyright © 2021 Hyperion Dev. All rights reserved.arrow_forwardHelp understanding / installing phpmyadmin and if i need wamp server aswell and where to copy and paste this code in order to create a databasearrow_forward
- Question 2: the question is in the picture below. please assist in answering this question!!!arrow_forwardTask 3: The Driver Relationship team wants to create some workshops and increase communication with the active drivers in InstantRide. Therefore, they requested a new database table to store the driver details of the drivers that have had at least one ride in the system. Create a new table, ACTIVE_DRIVERS, from the DRIVERS and TRAVELS tables which contains the following fields: DRIVER_ID CHAR(5) (Primary key) DRIVER_FIRST_NAME VARCHAR(20) DRIVER_LAST_NAME VARCHAR(20) DRIVER_DRIVING_LICENSE_ID VARCHAR(10) DRIVER_DRIVING_LICENSE_CHECKED BOOL DRIVER_RATING FLOAT ANSWER IN MYSQL PLEASEarrow_forwardCreate a new database (named MyUniversity) Student (sid: integer, sname: string(100 chars), GPA: real, dateOfBirth: date, Did: integer, FirstYear: integer) Department (did: integer, dname: string(30 chars), capacity: integer) Course (cid: integer, cname: string(50 chars), credit: integer) Enroll (studentID: integer, courseID: integer, departmentID: integer, enrollmentDate: date, finalGrade: real) studentID, courseID, and departmentID in Enroll are foreign keys referencing the primary keys of the student, course, and department relations, respectively. Did in Student is a foreign key referencing the primary key of the department relation. Using SQL, develop and execute the following queries: For each student with GPA between 2.5 (included) and 3.5 (included), display the student’s name, GPA,and his/her department ID. Sort the results by the students’ IDs in descending order. For each student who joined the Computer Science department between 2018 (included) and 2020(included), display…arrow_forward
- The MongoDB shell is an interactive ______interface to MongoDB. You can use the mongo shell to query and update data as well as perform administrative operations. A. NodeJS B. JavaScript C. C D. SQLarrow_forwardAssignment Create a database in Access. In the database include the following tables: • Student info which has the following fields o First Name o Last Name o StudentID (primary key) • Courses table which includes the following fields: o CourselD (primary key) o Course Name o CRN • Schedule which contains the following fields: o StudentID o CourselD Create the proper relationships between the tables. Fill the tables with at least 5 students and 2 different classes. You can generate the data randomly by using the Mockaroo site Or you can review Extra Material for more links on how to generate random data Create a report to print out the course and the names of the students taking that course (so group by course). Make sure the report is well formatted, looks professional, include a professional header and a footer.arrow_forwardhe Car Maintenance team wants to add new maintenance tasks to the MAINTENANCES table which was created in Chapter 8, Activity 1. However, the team also wants to insert the tasks in a batch into the database. In other words, they want to insert the rows all together without inserting one-by-one. Therefore, you will need to create a script to add the following tasks and ensure that they are added together: Car ID: 1001, Maintenance Type: 2, Due: 2022-06-01 Car ID: 1003, Maintenance Type: 2, Due: 2022-06-01arrow_forward
- Create a user Nurse. (Screenshot 1) Create a database Hospital. (Screenshot 2) Grant Nurse privileges to Hospital (Screenshot 3) As Nurse, create a table Patients with the following structure. (Screenshot 4) PatientID RoomNo FirstName LastName Admission Temperature double(10,2) int(8) Primary Key and not null int(4) varchar(14) not null varchar(14) not null datetime Use a command to describe the table(Screenshot 5) Insert 2 patients randomly to the above table(Screenshot 6) Show all the contents of the table. (Screenshot 7)arrow_forwardDevise a datasheet in access based on a subject table that allows a user to enter information about a subject. Your subject table should have at least ten (10) fields, including:- A primary key field to identify the record ([aut*-RecordIdentifier]).- A single field alternate key.- AT least one date field.- At least one number field.- The standard fields.- Any other fields that you think are appropriate.arrow_forwardHelp Mearrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education