0% found this document useful (0 votes)
19 views

Assignment Mongo db1

The document inserts multiple employee documents into a MongoDB collection with fields like name, salary, skills and experience. It inserts 10 employee documents with details.

Uploaded by

bidafo2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Assignment Mongo db1

The document inserts multiple employee documents into a MongoDB collection with fields like name, salary, skills and experience. It inserts 10 employee documents with details.

Uploaded by

bidafo2019
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

>use Compony

>db.createCollection("Employee")
Company> db.Employee.insertMany([{ "Employee ID": "2", "First Name": "Sagar", "Last
Name": "Vyahare", "Email": "sagarvyavhare@gmail.com", "Phone No.": "+917430237215",
"Address": { "House No": "322", "Street": "tathwade", "City": "Pune", "State":
"maharastra", "Country": "India", "Pin-code": "412018" }, "Salary": 60000,
"Designation": "Software Engineer", "Skills": [".NET", "JavaScript", "SQL"],
"Experience": 2, "Project name": "Project X", "Project experience": "Developed
backend systems", "Date of Joining": "2021-01-15", "Birthdate": "2001-01-25" },
{ "Employee ID": "3", "First Name": "Vishal", "Last Name": "Patil", "Email":
"Vishalpail@gmail.com", "Phone No.": "+997430255215", "Address": { "House No":
"22", "Street": "balajinagar", "City": "Pune", "State": "maharastra", "Country":
"India", "Pin-code": "412018" }, "Salary": 30000, "Designation": "Fontend
Developer", "Skills": ["HTML", "JavaScript", "CSS","React"], "Experience": 1,
"Project name": "UI Design", "Project experience": "Developed frontend systems",
"Date of Joining": "2021-01-15", "Birthdate": "2001-01-01" } ,{ "Employee ID": "4",
"First Name": "Manish", "Last Name": "Shah", "Email": "mahishshah@gmail.com",
"Phone No.": "+917433745637", "Address": { "House No": "12", "Street":
"Shiwajinagar", "City": "Pune", "State": "maharastra", "Country": "India", "Pin-
code": "412005" }, "Salary": 20000, "Designation": "Frontend intern", "Skills":
["HTML", "JavaScript", "css"], "Experience": 0, "Project name": "Project b",
"Project experience": "Fresher", "Date of Joining": "2023-08-15", "Birthdate":
"2003-05-25" } ,{ "Employee ID": "5", "First Name": "Magesh", "Last Name":
"Ladage", "Email": "mangeshladage@gmail.com", "Phone No.": "+9174302275543",
"Address": { "House No": "36", "Street": "swarupnagar", "City": "Solapur", "State":
"maharastra", "Country": "India", "Pin-code": "410021" }, "Salary": 65000,
"Designation": "HR", "Skills": ["Communication", "Interpersonal Skills", "Data
Science"], "Experience": 5, "Project name": "AI", "Project experience": "Tesm
Lead", "Date of Joining": "2017-01-15", "Birthdate": "1988-01-25" }, { "Employee
ID": "6", "First Name": "Monoj", "Last Name": "Mane", "Email":
"manojmane@gmail.com", "Phone No.": "+91985577215", "Address": { "House No": "9",
"Street": "Manglunagar", "City": "Pune", "State": "maharastra", "Country": "India",
"Pin-code": "412013" }, "Salary": 30000, "Designation": "Frontnd Developer",
"Skills": ["HTML", "JavaScript", "CSS","NODE JS"], "Experience": 3, "Project name":
"Project X", "Project experience": "Developed frontend systems", "Date of Joining":
"2021-01-15", "Birthdate": "2001-01-25" },{ "Employee ID": "7", "First Name":
"Anil", "Last Name": "Patil", "Email": "anilpatil@gmail.com", "Phone No.":
"+919855734323", "Address": { "House No": "56", "Street": "bhartiwadi", "City":
"Pune", "State": "maharastra", "Country": "India", "Pin-code": "412056" },
"Salary": 80000, "Designation": "HR", "Skills": ["Communication","Data Analysis"],
"Experience": 5, "Project name": "AI", "Project experience": "Hired Emplyees",
"Date of Joining": "2025-01-15", "Birthdate": "1991-01-25" },{ "Employee ID": "8",
"First Name": "Monoj", "Last Name": "Mane", "Email": "manojmane@gmail.com", "Phone
No.": "+91985577215", "Address": { "House No": "9", "Street": "Manglunagar",
"City": "Pune", "State": "maharastra", "Country": "India", "Pin-code": "412013" },
"Salary": 30000, "Designation": "Frontnd Developer", "Skills": ["HTML",
"JavaScript", "CSS","NODE JS"], "Experience": 3, "Project name": "Project X",
"Project experience": "Developed frontend systems", "Date of Joining": "2021-01-
15", "Birthdate": "2001-01-25" } ,{ "Employee ID": "9", "First Name": "dylial",
"Last Name": "sygle", "Email": "danny123@gmail.com", "Phone No.": "+09132343233",
"Address": { "House No": "55", "Street": "st.john ", "City": "mankind", "State":
"LA", "Country": "US", "Pin-code": "23422345" }, "Salary": 120000, "Designation":
"Team leader", "Skills": ["Interpersonal Skills", "Data Analysis", "Interpersonal
Skills",'Team leading'], "Experience": 4, "Project name": "Project X", "Project
experience": "Developed fullstack systems", "Date of Joining": "2018-01-15",
"Birthdate": "1996-01-20" },{ "Employee ID": "10", "First Name": "Stive", "Last
Name": "martin", "Email": "stive123@gmail.com", "Phone No.": "+9198xxxxxx",
"Address": { "House No": "12", "Street": "bhavnagar", "City": "dilhi", "State":
"dilhi", "Country": "India", "Pin-code": "612013" }, "Salary": 80000,
"Designation": "Software tester", "Skills": ["sylynium", "Testing",
"pinterresting"], "Experience": 3, "Project name": "Project X", "Project
experience": "Testing Projects", "Date of Joining": "2020-01-15", "Birthdate":
"2000-06-22" }])
{
acknowledged: true,
insertedIds: {
'0': ObjectId('656aadb335f588e519c30781'),
'1': ObjectId('656aadb335f588e519c30782'),
'2': ObjectId('656aadb335f588e519c30783'),
'3': ObjectId('656aadb335f588e519c30784'),
'4': ObjectId('656aadb335f588e519c30785'),
'5': ObjectId('656aadb335f588e519c30786'),
'6': ObjectId('656aadb335f588e519c30787'),
'7': ObjectId('656aadb335f588e519c30788'),
'8': ObjectId('656aadb335f588e519c30789')
}
}

You might also like