I want to create a student database that has details about students - id, name, address, transcript, phone etc. I created a structure like this:
{
"ssn" : "121-23-1232",
"name": "Grace Johnson",
"address": [
{"Street Address": "190 Pinehill place",
"City": "Belmont",
"State": "CA",
"ZipCode": "08250"
}
],
"phone": "605-123-1111",
"transcript": [
{"Math":"B",
"English":"A",
"Physics": "B",
"Psychology": "C",
"Physical Education": "A"
}
]
}
However is this method of creation correct if I want to be able to access the students who live in a particular city..How would I write it? Also suppose I want to get all students who receive an A in Physics...
Your help is greatly appreciated.