you say you have already imported the file now..
you can query the collection using mongodb shell in terminal
1) just open your terminal and enter command "mongo" it will open a mongo shell for you
2) after that type "use city" to work with city database
3) now you can directly type your quiries
a. db.inspections.find({"id" : "10021-2015-ENFO"})
it will display the result on terminal for you to see.. if you
want the result to be in formatted and readable format
you can add .pretty() at the end of the query like..
db.inspections.find({"id" : "10021-2015-ENFO"}).pretty()
similarly for
b. db.inspections.find({"result":"Out of
Business"},{"business_name":1}).limit(10)
Hi I need help to understand what to do in this questions I have imported the file using mongodimport but I dont know the rest can someone please help me to understand and give me some examples of the...
hi i dont know and understand what this assignment wants me to do can some please explain it to me thank you Modify the print_face function to have a third parameter mouth and use it in the final print statement. def print_face(eye, face_char): print(' ', eye, ' ', eye) # Print eyes print(' ', face_char) # Print nose print(' ', face_char*5) # Print mouth return print_face('o', 'x')
HI CAN SOMEONE PLEASE HELP ME WITH THIS 2 QUESHTIONS. I dont understand them how I got them wrong please. 1. Dmitri Mendeleeve's chart of elements: A. was used as a calendar B.placed elements together with similar properties C.shifted the elements to fill in the gaps D.had many defects because of unknown elements 2. Temperature is a measure of the heat content of an object True or False
Hi i need help to answer all the questions please can someone help me thank you. I need to create it in mongodb Perform the following tasks using MongoDB queries: a. List alphabetically only the first 20 names of companies founded after the year 2010. b. List only the first 20 names of companies with offices either in California or Texas, ordered by the number of employees and sorted largest to smallest. 3. Perform the following tasks using the MongoDB...
could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...