Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| info:cursos:mongodbuniversity:m001:cap3 [15/12/2018 08:58] – [operators] mate | info:cursos:mongodbuniversity:m001:cap3 [15/12/2018 10:16] (actual) – [Challenge Problem] mate | ||
|---|---|---|---|
| Línia 124: | Línia 124: | ||
| Si queremos buscar correctamente, | Si queremos buscar correctamente, | ||
| <code javascript> | <code javascript> | ||
| - | |||
| - | |||
| - | <code javascript></ | ||
| - | <code javascript></ | ||
| == regex operator | == regex operator | ||
| Línia 134: | Línia 130: | ||
| === operators | === operators | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| === ejemplos | === ejemplos | ||
| - | <code javascript></ | + | en ese caso la REGEX usada funciona: |
| + | * ''/'' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | <code javascript> | ||
| + | </code> | ||
| + | |||
| + | == Challenge Problem | ||
| + | Connect to our class Atlas cluster from the mongo shell or Compass and view the results.scores collection. How many documents contain at least one score in the results array that is greater than or equal to 70 and less than 80? | ||
| + | <code javascript> | ||
| + | |||
| + | <code javascript> | ||
| + | |||
| + | == Final Exam | ||
| + | <button collapse=" | ||
| + | |||
| + | < | ||
| + | |||
| + | * 4: Please connect to the M001 class Atlas cluster. You may answer this question using either the mongo shell or Compass. | ||
| + | |||
| + | For this question we will use the citibike database. | ||
| + | |||
| + | How many documents in the citibike.trips collection have the key tripduration set to null? Ignore any documents that do not contain the tripduration key.< | ||
| + | * 6: Please connect to the M001 class Atlas cluster from the mongo shell or Compass and view the video.movies collection. How many movies match the following criteria? | ||
| + | |||
| + | The cast includes either of the following actors: "Jack Nicholson", | ||
| + | The viewerRating is greater than 7. | ||
| + | The mpaaRating is " | ||
| + | |||
| + | </ | ||