Hi guys !!!
We continue with "Querying CosmosDB" series. You can read previous parts in Part1 and Part 2.
Now we added event notes to some documents. It's means some speakers added short notes or tags to theirs events. You can download a new version of our JSON Example (JSON Example 2)
Results
Query
Results
Query
Results
Query
Results
Bye !!!!
To be Continue.......
We continue with "Querying CosmosDB" series. You can read previous parts in Part1 and Part 2.
Now we added event notes to some documents. It's means some speakers added short notes or tags to theirs events. You can download a new version of our JSON Example (JSON Example 2)
Show me please !!
Ok. Fine !! Retrieve a list of all events with notes.Query
SELECT c.event_name, c.speaker, c.event_notes FROM c
where IS_DEFINED(c.event_notes)Results
I don't want all notes, just with 'pool' word.
Query
SELECT c.speaker, c.event_name, c.event_notes FROM c
JOIN notes IN c.event_notes
where IS_DEFINED(c.event_notes) AND CONTAINS(notes,"pool")
Results
I don't care about event name or speakers. Let me list just notes!!!
Query
SELECT notes FROM c
JOIN notes IN c.event_notes
Results
Please just a list, not object list!!!
Query
SELECT VALUE notes FROM c
JOIN notes IN c.event_notes
Results
Bye !!!!
To be Continue.......
Comments