Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    4

    Post Unanswered: Random Sample Report

    Hi, your help/input will be greatly appreciated.

    I have a db that contains list of clients assigned to specific staff. Our audit team needs to randomly select a number of records on a period basis. I can run this report in SQL using the below code. I want the user to be able to run a Crystal Report. Any suggestions?

    Select Top (5) percent cclientid, csalesrepcode
    from sales
    Order by Newid()

    Denise

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Can you not base the report of the SQL you've posted?
    George
    Home | Blog

  3. #3
    Join Date
    Dec 2008
    Posts
    4
    I get an error message.

  4. #4
    Join Date
    Jul 2007
    Posts
    54
    Go into the Crystal help and look up the function Rnd - that should get you started.

    HTH,
    Caspar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •