Find the document with ename as JONES
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Follow the reading materials and write scripts to create collections for the data in the following relational table:
2. Find the document with ename as JONES
3. For all the documents inserted by Question 1, find their timestamps
4. Find the last three employees documents inserted in Question 1
5. Find the ObjectID of all the documents in the employees collection created in Question 1
6. Find the ename, hiredate, and job fields of all the documents in the employees collection in Question 1
USING MONGODB
![EMPNO ENAME JOB
MGR HIREDATE SAL COMM DEPTNO
(null)
(null)
(null)
(null)
(null)
300
500
7839 KING
7566 JONES
SALESMAN
MANAGER
(null) 17-NOV-81
7839 02-APR-81
5050
10
20
2975
3050
1250
2850
1650
1300
1300
2450
7902 FORD
7369 SMITH
SALESMAN
SALESMAN
7566 03-DEC-81
7902 17-DEC-80
20
20
7698 BLAKE
MANAGER
7839 01-MAY-81
30
7499 ALLEN
7521 WARD
7654 MARTIN SALESMAN
7782 CLARK
SALESMAN
SALESMAN
7698 20-FEB-81
7698 22-FEB-81
30
30
7698 28-SEP-81
7839 09-JUN-81
1400
30
10
(null)
(null)
MANAGER
3050
1550
1150
7788 SCOTT
SALESMAN
7566 19-APR-87
20
7844 TURNER SALESMAN
7876 ADAMS
7698 08-SEP-81
7788 23-MAY-87
30
20
SALESMAN
(null)
7900 JAMES
7934 MILLER
SALESMAN
SALESMAN
7698 03-DEC-81
7782 23-JAN-82
1400
1750
(null)
(null)
30
10](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa453b4a0-91de-4fd4-8e36-9da8c4d0f21b%2F995c9576-83a1-440e-868e-6992860c0e00%2Fplb0jt_processed.png&w=3840&q=75)
Transcribed Image Text:EMPNO ENAME JOB
MGR HIREDATE SAL COMM DEPTNO
(null)
(null)
(null)
(null)
(null)
300
500
7839 KING
7566 JONES
SALESMAN
MANAGER
(null) 17-NOV-81
7839 02-APR-81
5050
10
20
2975
3050
1250
2850
1650
1300
1300
2450
7902 FORD
7369 SMITH
SALESMAN
SALESMAN
7566 03-DEC-81
7902 17-DEC-80
20
20
7698 BLAKE
MANAGER
7839 01-MAY-81
30
7499 ALLEN
7521 WARD
7654 MARTIN SALESMAN
7782 CLARK
SALESMAN
SALESMAN
7698 20-FEB-81
7698 22-FEB-81
30
30
7698 28-SEP-81
7839 09-JUN-81
1400
30
10
(null)
(null)
MANAGER
3050
1550
1150
7788 SCOTT
SALESMAN
7566 19-APR-87
20
7844 TURNER SALESMAN
7876 ADAMS
7698 08-SEP-81
7788 23-MAY-87
30
20
SALESMAN
(null)
7900 JAMES
7934 MILLER
SALESMAN
SALESMAN
7698 03-DEC-81
7782 23-JAN-82
1400
1750
(null)
(null)
30
10
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education