diff --git a/mdbinstall.log b/mdbinstall.log new file mode 100644 index 0000000..68ff505 --- /dev/null +++ b/mdbinstall.log @@ -0,0 +1,35 @@ +=== Verbose logging started: 2024-02-21 16:20:52 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\WINDOWS\system32\msiexec.exe === +MSI (c) (30:A0) [16:20:52:466]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg + +MSI (c) (30:A0) [16:20:52:466]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg + +MSI (c) (30:60) [16:20:52:518]: Resetting cached policy values +MSI (c) (30:60) [16:20:52:518]: Machine policy value 'Debug' is 0 +MSI (c) (30:60) [16:20:52:518]: ******* RunEngine: + ******* Product: mongodb-windows-x86_64-7.0-signed.msi + ******* Action: + ******* CommandLine: ********** +MSI (c) (30:60) [16:20:52:519]: Client-side and UI is none or basic: Running entire install on the server. +MSI (c) (30:60) [16:20:52:519]: Grabbed execution mutex. +MSI (c) (30:60) [16:20:52:582]: Cloaking enabled. +MSI (c) (30:60) [16:20:52:582]: Attempting to enable all disabled privileges before calling Install on Server +MSI (c) (30:60) [16:20:52:588]: Incrementing counter to disable shutdown. Counter after increment: 0 +MSI (s) (78:B4) [16:20:52:606]: Running installation inside multi-package transaction C:\Users\Prashanth\lab-advanced-querying\mongodb-windows-x86_64-7.0-signed.msi +MSI (s) (78:B4) [16:20:52:606]: Grabbed execution mutex. +MSI (s) (78:44) [16:20:52:612]: Resetting cached policy values +MSI (s) (78:44) [16:20:52:612]: Machine policy value 'Debug' is 0 +MSI (s) (78:44) [16:20:52:612]: ******* RunEngine: + ******* Product: C:\Users\helip\lab-advanced-querying\mongodb-windows-x86_64-7.0-signed.msi + ******* Action: + ******* CommandLine: ********** +MSI (s) (78:44) [16:20:52:613]: Note: 1: 2203 2: C:\Users\Prashanth\lab-advanced-querying\mongodb-windows-x86_64-7.0-signed.msi 3: -2147287038 +MSI (s) (78:44) [16:20:52:614]: MainEngineThread is returning 2 +MSI (s) (78:B4) [16:20:52:617]: User policy value 'DisableRollback' is 0 +MSI (s) (78:B4) [16:20:52:617]: Machine policy value 'DisableRollback' is 0 +MSI (s) (78:B4) [16:20:52:617]: Incrementing counter to disable shutdown. Counter after increment: 0 +MSI (s) (78:B4) [16:20:52:617]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 +MSI (s) (78:B4) [16:20:52:618]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 +MSI (s) (78:B4) [16:20:52:619]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 +MSI (c) (30:60) [16:20:52:621]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 +MSI (c) (30:60) [16:20:52:623]: MainEngineThread is returning 2 +=== Verbose logging stopped: 2024-01-21 16:20:52 === diff --git a/queries.md b/queries.md index c1ab2c4..9a6a1ee 100644 --- a/queries.md +++ b/queries.md @@ -4,75 +4,112 @@ ### 1. All the companies whose name match 'Babelgum'. Retrieve only their `name` field. +query : {name:'Babelgum'} +projection :{name:1} ### 2. All the companies that have more than 5000 employees. Limit the search to 20 companies and sort them by **number of employees**. +query :{number_of_employees: { $gt: 5000 }} +sort : {number_of_employees: 1} +limit: 20 ### 3. All the companies founded between 2000 and 2005, both years included. Retrieve only the `name` and `founded_year` fields. +query : {founded_year:{$gte : 2000, $lte :2005}} +project :{ name:1 , founded_year: 1} ### 4. All the companies that had a Valuation Amount of more than 100.000.000 and have been founded before 2010. Retrieve only the `name` and `ipo` fields. +query: {"ipo.valuation_amount": {$gt: 100000000},founded_year: {$lt: 2010}} +projection: {name: 1,ipo: 1} ### 5. All the companies that have less than 1000 employees and have been founded before 2005. Order them by the number of employees and limit the search to 10 companies. +query: {number_of_employees: {$lt: 1000},founded_year: {$lt: 2005}} +sort: { number_of_employees: 1 } +limit: 10 ### 6. All the companies that don't include the `partners` field. +query: {partners:{$exists: false}} ### 7. All the companies that have a null type of value on the `category_code` field. +query: {category_code: null} ### 8. All the companies that have at least 100 employees but less than 1000. Retrieve only the `name` and `number of employees` fields. +query: {number_of_employees: {$gte: 100,$lt: 1000}} +projection: {name: 1,number_of_employees: 1} ### 9. Order all the companies by their IPO price in a descending order. +sort: { "ipo.valuation_amount": -1 } ### 10. Retrieve the 10 companies with most employees, order by the `number of employees` +sort: { number_of_employees: -1 } +limit: 10 ### 11. All the companies founded on the second semester of the year. Limit your search to 1000 companies. +query: {founded_month: {$gte: 7,$lte: 12}} +limit: 1000 ### 12. All the companies founded before 2000 that have an acquisition amount of more than 10.000.000 +query: {founded_year: {$lt: 2000},"acquisition.price_amount": {$gt: 10000000}} ### 13. All the companies that have been acquired after 2010, order by the acquisition amount, and retrieve only their `name` and `acquisition` field. +query: {"acquisition.acquired_year": {$gt: 2010}} +projection: {name: 1,acquisition: 1,} +sort: { "acquisition.price_amount": 1 } ### 14. Order the companies by their `founded year`, retrieving only their `name` and `founded year`. +projection: { name: 1, founded_year: 1} +sort: { founded_year: 1 } ### 15. All the companies that have been founded on the first seven days of the month, including the seventh. Sort them by their `acquisition price` in a descending order. Limit the search to 10 documents. +query: {founded_day: {$lte: 7}} +sort: { "acquisition.price_amount": -1 } +limit: 10 ### 16. All the companies on the 'web' `category` that have more than 4000 employees. Sort them by the amount of employees in ascending order. +query: {category_code: "web",number_of_employees: {$gt: 4000}} +sort: { number_of_employees: 1 } ### 17. All the companies whose acquisition amount is more than 10.000.000, and currency is 'EUR'. +query: {"acquisition.price_amount": {$gt: 10000000},"acquisition.price_currency_code": "EUR"} ### 18. All the companies that have been acquired on the first trimester of the year. Limit the search to 10 companies, and retrieve only their `name` and `acquisition` fields. +query: {"acquisition.acquired_month": {$lte: 3}} +projection: {name: 1,acquisition: 1,} +limit: 10 ### 19. All the companies that have been founded between 2000 and 2010, but have not been acquired before 2011. +query: {founded_year: {$gte: 2000,$lte: 2010},"acquisition.acquired_year": {$not: {$lt: 2011}}}