Search
 
SCRIPT & CODE EXAMPLE
 

SQL

where with multiple conditions in mongodb

-- mongodb
db.people.find(
    { status: "A",
      age: 50 }
)
-- sql
SELECT *
FROM people
WHERE status = "A"
AND age = 50

-- mongodb
db.people.find(
    { $or: [ { status: "A" } , { age: 50 } ] }
)
-- sql
SELECT *
FROM people
WHERE status = "A"
OR age = 50
Comment

$match multiple conditions mongodb

-- mongodb
db.posts.find(
    { status: "A",
      comments: 50 }
)
Comment

PREVIOUS NEXT
Code Example
Sql :: distinct sql 
Sql :: psql execute sql file 
Sql :: python uuid sqlalchemy 
Sql :: sql server previous month 
Sql :: mysql execute file 
Sql :: mysql multiple order by 
Sql :: postgres like case insensitive 
Sql :: rename a column in sql server 
Sql :: get number of columns sql 
Sql :: query distinct 
Sql :: row to json in sql server 
Sql :: mysql 8 geo to json 
Sql :: sql server drop column 
Sql :: set all auto_increment values in sql 
Sql :: null value in column violates not-null constraint 
Sql :: how to ascending order in sql 
Sql :: intellij mysql set timezone 
Sql :: complete date is 1 year or not sql server 
Sql :: sql in 
Sql :: change column name mysql 
Sql :: update table mysql 
Sql :: mysql create user with grant privileges 
Sql :: command to give readonly access to a postgres sql user 
Sql :: declare value in sql 
Sql :: psql select * from table 
Sql :: pg_pretty_size 
Sql :: delete * from where id = 1; 
Sql :: error 1054 mysql 
Sql :: Write an SQL query to fetch worker names with salaries = 50000 and <= 100000. 
Sql :: oracle show errors compilation 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =