Forum Discussion
TariqHussain
8 years agoBoss
Below is the query which will return you TKB subject by views sorting.
SELECT subject FROM messages WHERE conversation.style='tkb' ORDER BY metrics.views DESC
Here is the documentation https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=messages#constraints-conversation.style
If you just want to get all the tkbs from Boersenlexikon board. You don't need to add conversation.style either.
SELECT subject FROM messages WHERE board.id='Boersenlexikon' ORDER BY metrics.views DESC
- CCornerstone8 years agoAcethank you for the quick reply!
would you perhaps also know the rest-api call? (not lithium query language?)- TariqHussain8 years agoBoss
CCornerstone - Can you elaborate more? do you want to use this query inside lithium using Freemarker or you want to access from the third server?
- CCornerstone8 years agoAce
of course, sorry for the unspecific question. the data must be accessed from third parties
Related Content
- 7 months ago
- 15 years ago
- 5 years ago