This is a query to change a value in users collection in MongoDB. How do you convert this command to conventional SQL Command as DML (Data Manipulation)query  :   Mongo DB version: db.users.update( { age: { $gt: 25 } }, { $set: { status: "C" } })

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter6: Updating Data
Section: Chapter Questions
Problem 11TD
icon
Related questions
Question

This is a query to change a value in users collection in MongoDB. How do you convert this command to conventional SQL Command as DML (Data Manipulation)query  :

 

Mongo DB version:
db.users.update( { age: { $gt: 25 } }, { $set: { status: "C" } })
 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Functions
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning