10000 GitHub - rinkigoyal/SCTest
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rinkigoyal/SCTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SCTest

db.Position.aggregate([ { $sort: { tradeDate: -1 } // Sort by tradeDate in descending order }, { $group: { _id: { isin: "$isin", book: "$book" }, // Group by unique isin and book combination tradeDate: { $first: "$tradeDate" }, // Get the latest tradeDate for each group isin: { $first: "$isin" }, // Get the isin for each group book: { $first: "$book" }, // Get the book for each group _id_combination: { $first: "$_id" } // Get the _id combination for each group } }, { $sort: { tradeDate: -1 } // Sort by tradeDate in descending order again } ])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0