Question
Pegasystems Inc.
NL
Last activity: 4 Oct 2018 13:54 EDT
Custom SQL
Hi,
I need to randomly select a sample from Customer table. To do this, I want to run a CUSTOM sql in a report definition.
What is the best practice and steps to create an SQL that can be used inside a Report Definition?
SELECT MUSTERI_NO FROM
( SELECT MUSTERI_NO FROM V_MUSTERI_BILGI
ORDER BY dbms_random.value )
WHERE rownum < (select count(MUSTERI_NO)/10 FROM V_MUSTERI_BILGI)
***Updated by moderator: Lochan to add Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.