I n continuation to my previous post on ' Get Min/Max from each category ', this time let’s do one of the most demanded queries with filter criteria on date time field. For the purpose of simplicity and keep this article more focused, I have removed data from all the additional columns as shown below: GenerationDate DescriptionTitle DescriptionDetail FeedKey 2020-10-02 00:00:00:0000000 … … … 2020-10-21 00:00:00:0000000 … … … 2020-10-21 00:00:00:0000000 … … … 2020-10-21 00:00:00:0000000 … … … 2020-10-21 00:00:00:0000000 … … … 2020-10-22 00:00:00:0000000 … … … 2020-10-22 00:00:00:0000000 … … … Query description The idea is to fetch all the records, which occurred in past 20 days of GenerationDate . Approaches Now to achieve our expected result, there could be more than a way. One way could be: Approach 1 Find out the date which fall exactly twenty days back using ago(…) and then use conditional operator (<= and >=) to achieve this result. Above approach...
This blog is all about my technical learnings pertaining to LLM, OpenAI, Azure OpenAI, C#, Azure, Python, AI, ML, Visual Studio Code and many more.