Questions in topic: "random" https://knowledge.亚搏在线safe.com/questions/topics/single/41734.html The latest questions for the topic "random" InlineQuerier SQL random statement ("Random()","Rand()",or "RND()"?) in conjunction with "LIMIT" https://knowledge.亚搏在线safe.com/questions/58994/inlinequerier-sql-random-statement-random-rand-or.html

Hello All,

Question regarding the InlineQuerier transformer that harnesses SQL.I'm trying to select a random subset of records from a table.Here's the SQL code in MS-Access that works (different syntax).

SELECT TOP 200 *FROM (SELECT Rnd(ID) AS RandomID,* FROM TableNameHere)  AS TableNameRandomSelectionORDER BY RandomID;

I think the InlineQuerier uses SQLite...correct me if I'm wrong.I'm uncertain as to which random function I should use and where to implement it within the code string.

RND()?RANDOM()?RAND()?

And can I add an argument to this function?I need to generate a random sample of records based off the table's primary key ("ID" in this case).

This code works,but it only returns the first 200 records in the table (not the random sample I'm looking for),but I feel like I'm close and just need to work a random function in there...

SELECT *FROM TableNameLIMIT 200
sql inlinequerier random Thu,30 Nov 2017 21:09:48 GMT bwasserstein
I have a failure in my workspace that happens only sometimes.How can I figure out the problem? https://knowledge.亚搏在线safe.com/questions/41735/i-have-a-failure-in-my-workspace-that-happens-only-1.html

In one case,I am getting a random problem with Esri Geodatabase:

2017-03-16 12:10:36| 2.1| 0.0|ERROR |Could not open the Enterprise Geodatabase.The error number from ArcObjects is: '-2147155644'.The error message from ArcObjects is: {Cannot connect to database because the database client software failed to load.Be sure the database client software is installed and configured correctly.}

In another case I am having a random problem with Oracle:

2017-03-15 19:48:48| 248.5|  0.2|ERROR |Execution of statement `INSERT INTO "WELL_HELLO"."TABLE" (  "PKEY_HELLO",.....) VALUES (  :"PKEY_HELLO",.....)' did not succeed;error was `ORA-03135: connection lost contact Process ID: 12345 Session ID: 4321 Serial number: 98765'.(serverType=`ORACLE8I',serverName=`someserver',userName=`SOMEUSER',password=`***',dbname=`')

These workspaces are run on FME Server.How can I figure out the problem?

failures random Fri,24 Mar 2017 00:57:39 GMT fmelizard