openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 1
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 771 times and has 0 replies Next Thread
Mar 14, 2010 7:18:52 AM

supdeva
Member



Joined: Jul 2, 2009
Posts: 7
Status: Offline

Selecting Random Records in Sesame

Hello all,
Is there a way to choose Random records in sesame like in mysql ?
When you say
SELECT * FROM `table` ORDER BY RAND() LIMIT 0,1;

Or

SELECT * FROM `table` WHERE id >= (SELECT FLOOR( MAX(id) * RAND()) FROM `table` ) ORDER BY id LIMIT 1;
I am using Elmo configured with sesame RDF repository. My requirement is to get 10 records randomly from a table
Thanks and regards,
Supun.
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]