我有一个类似于以下
的数据库{
00001: {
"destination": "A",
"name": "John Doe",
"status" : "1",
"taken" : "0"
},
00002: {
"destination": "A",
"name": "Doe John",
"status" : "1",
"taken" : "0"
},
00003: {
"destination": "Undefined",
"name": "Dell MacApple",
"status" : "0",
"taken" : "0"
},
00004: {
"destination": "B",
"name": "John Macintosh",
"status" : "1",
"taken" : "1"
}
}
我是否可以创建一个只打印满足特定条件的子项的复杂查询?
例如,如果我只想要"status" is "1"
"taken" is "0"
"destination" is "A"
的用户,那么我是否可以打印name
?
我是否可以获得John Doe and Doe John meet these requirements
的输出?