Path: newssvr20.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!prodigy.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: andy.smetana@srs.gov (Andy Smetana) Newsgroups: comp.databases.oracle.tools Subject: Displaying groups in arbitrary order Date: 8 Aug 2003 06:29:15 -0700 Organization: http://groups.google.com/ Lines: 39 Message-ID: NNTP-Posting-Host: 192.33.240.30 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1060349356 31802 127.0.0.1 (8 Aug 2003 13:29:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Aug 2003 13:29:16 GMT Xref: newssvr20.news.prodigy.com comp.databases.oracle.tools:82469 I am using Reports 9i and have a query that returns the following information: Task (varchar2), ID (num), component (varchar2), text_value (varchar2) The data is ordered by Task, ID. The required report layout has 1 to 4 Task groups across the page and the number is intermixed: Task component, text_value . . Task . . Task Task Task . . . . . . Task Task . . . . and so forth. Each Task has a fixed number of records associated with it and all of the Task names are also know so I can handle the formatting by conditionally suppressing different report blocks based on the value(s) of Task/ The problem is the Task need to be displayed in a know but arbitrary order. Displaying the Task in ascending order will work for many but not all Tasks. I know of two potential ways to handle this problem: 1) Change the query to ORDER BY DECODE ( list of 50 - 100 items) 2) Create a report block for each Task. ie 50 to 100 report blocks It seems like there should be an easier way to do this. Any suggestions?