Question

MONGODB Questions (NOSQL) Task 9: Describe a scenario and write a query that uses any two...

MONGODB Questions (NOSQL)

Task 9: Describe a scenario and write a query that uses any two of these functions: $concat, $substr, $toLower, $toUpper

Scenario:

Task 10: Describe a scenario and write a query that uses any two of these functions: $add, $divide, $mod, $multiply, $subtract

Scenario:

Task 11: Describe a scenario and write a query that uses $redact, $$descend and $$prune command

Scenario:

Homework Answers

Answer #1

Task 9:

Scenario: Consider that we have a student database which contains student name, age, class, ect. Consider we have different student name in the database such as john, mike, miller. We need to perform some of the SQL functions.

The SQL query to convert the name mike into lowercase is as follows,

SELECT name from student

WHERE LOWER (First_name) = 'mike';

The SQL query to convert the name john into uppercase is as follows,

SELECT name from student

WHERE UPPER (First_name) = 'john';

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Organizing Organizing is an important task of managers. Once the organization’s goals and plans are in...
Organizing Organizing is an important task of managers. Once the organization’s goals and plans are in place, the organizing function sets in motion the process of seeing that those goals and plans are pursued. When managers organize, they’re defining what work needs to get done and creating a structure that enables work activities to be completed efficiently and effectively by organizational members hired to do that work. As Starbucks continues its global expansion and pursues innovative strategic initiatives, managers must...
Please answer the whole question. Springtown Pediatric Association is a partnership of six pediatrician owners, two...
Please answer the whole question. Springtown Pediatric Association is a partnership of six pediatrician owners, two nurse practitioners, ten nurses, three accounting clerks, two receptionists, and an office manager. The office manager and all of the accounting clerks have their own PCs, and the receptionists share a PC. These PCs are connected through a local area network. They are password protected, and the managing partner keeps a record of all passwords. The practice uses a standard medical-services software package that...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT