I have Probleme in ctrating Loop code in report 6i

Hi all
am using oracle 6i and am working on library system and I have to create report so it will give me the Books Details
and incase the book has number of copies morethan 1 the reoprt should duplicate the records according to the total number of book copy
So How I can add loop code the the report so it will display the requiered data
this is the code which I wrote it the report
book_id_from and book_id_to they are to parameters to spacify the range of books data display
SELECT LIB_BOOKS.SERIAL,
RPAD(LIB_BOOKS.BOOK_NAME,2)DISPLAY_COL2,
LIB_CLASSIFICATIONS.CLASS_TYPE,
RPAD(LIB_BOOKS.AUTHOR_NAME,2)DISPLAY_COL4,
LIB_BOOKS.PUBLISH_DATE,
LIB_CLASSIFICATIONS.CLASS_NO,
LIB_BOOKS.TOTAL_COPY
from LIB_CLASSIFICATIONS,LIB_BOOKS
where LIB_CLASSIFICATIONS.class_id = LIB_BOOKS.class_id
and TOTAL_COPY > 1
AND LIB_BOOKS.BOOK_ID BETWEEN :P_book_id_from AND :P_book_id_to;
any help will be apreciated
regards

use inline query
select t.SERIAL,
min(t.DISPLAY_COL2),
min(t.CLASS_TYPE),
min(t.DISPLAY_COL4),
min(t.PUBLISH_DATE),
min(t.CLASS_NO),
min(t.TOTAL_COPY)
from
(SELECT LIB_BOOKS.SERIAL,
RPAD(LIB_BOOKS.BOOK_NAME,2) DISPLAY_COL2,
LIB_CLASSIFICATIONS.CLASS_TYPE,
RPAD(LIB_BOOKS.AUTHOR_NAME,2) DISPLAY_COL4,
LIB_BOOKS.PUBLISH_DATE,
LIB_CLASSIFICATIONS.CLASS_NO,
LIB_BOOKS.TOTAL_COPY
from LIB_CLASSIFICATIONS,LIB_BOOKS
where LIB_CLASSIFICATIONS.class_id = LIB_BOOKS.class_id
and TOTAL_COPY > 1
AND LIB_BOOKS.BOOK_ID BETWEEN :P_book_id_from AND :P_book_id_to) t
connect by level <= t.total_copy
group by t.serial, level;hope this works
Edited by: Mohammed H. on Oct 12, 2008 1:37 PM

Similar Messages

  • I have problem with the eror code 1009  when its on the net

    i want to know about eror 1009 when phone is
    on the net

    and what did a Google search for "iPhone error 1009" give you?

  • I have problem with running excel macro in report generation tool kit

    I am trying to use Excel Run Macro.vi but run into a problem: Exception occured in Microsoft Excel, The macro 'personal.xls!Macro1' cannot be found.. Help Path is C:\Program Files\Microsoft Office\Office\1033\xlmain9.chm and context 0 in Excel Run Macro.vi->example.vi
    Also I tried to save the macro under the file that is active and I get the same results.
    I saved the macro as *.bas file and ran it using Excel Import Module and did not see any erreos and it did not do anything.
    Where a re some god examples that use the excel marco feature using the new report generation vis?

    masoud,
    Try this example out and let me know if you have any more questions. Also, this is in LabVIEW 6.1 format. If you need it in a different format, please let me know.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask
    Attachments:
    Module1.bas ‏1 KB
    TestAddMacro.vi ‏34 KB

  • Match code in report selection screen does not show any values for 0FISCPER

    Hi Experts,
    I have problem with selection screen in several reports. When I use match code for fiscal period selection I get only # as a possible value. I have checked the master data they seem to be correct. I work with 7.0 BW system. Can you please give me any hint what I should check?
    Thank you,
    Michal

    Hi,
    maybe I ask different way - how do you add characteristic values for a characteristic in the BEx? Is it automated somehow in SAP (e.g. from master data)? For the fiscal period I use custommer exit to fill in the default value, which is the current fiscal period. But this is something different, right?
    <removed by moderator>
    Michal
    Edited by: Arun Varadarajan on Nov 14, 2008 3:55 PM

  • Problems with parameter button in Crystal Report Server  2008

    Dear all,
    I have problems with parameter button in Crystal Report Server 2008.
    when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button'  on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter'  First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
    Could any one help me with this?
    I appreciate looking forward to your reply
    Ketya

    Try posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server

  • I'm doing a scan around a line by sampling data 360 degrees for every value of z(z is the position on the line). So, that mean I have a double for-loop where I collect the data. The problem comes when I try to plot the data. How should I do?

    I'm doing a scan around a line by sampling data 360 degrees for every value of z(z is the position on the line). So, that mean I have a double for-loop where I collect the data. The problem comes when I try to plot the data. How should I do?

    Jonas,
    I think what you want is a 3D plot of a cylinder. I have attached an example using a parametric 3D plot.
    You will probably want to duplicate the points for the first theta value to close the cylinder. I'm not sure what properties of the graph can be manipulated to make it easier to see.
    Bruce
    Bruce Ammons
    Ammons Engineering
    Attachments:
    Cylinder_Plot_3D.vi ‏76 KB

  • I have problem in this unzip java codes

    hi all,I have problem in this unzip java codes,I think either the pathway that i put C:.......is wrong or the codes are wrong because when i run it, the zipped folder is not unzipped. So anyone has another set of example or know how to correct it? Thanks!Please post the solution here!
    This is the set of codes that i have:
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    public class Unzip {
    public static final void copyInputStream(InputStream in, OutputStream out)
    throws IOException
    byte[] buffer = new byte[1024];
    int len;
    while((len = in.read(buffer)) >= 0)
    out.write(buffer, 0, len);
    in.close();
    out.close();
    public static final void main(String[] args) {
    Enumeration entries;
    ZipFile zipFile;
    if(args.length != 1) {
    System.err.println("Usage: Unzip zipfile");
    return;
    try {
    zipFile = new ZipFile("C:\\Temp\\FolderZiper.zip");
    entries = zipFile.entries();
    while(entries.hasMoreElements()) {
    ZipEntry entry = (ZipEntry)entries.nextElement();
    if(entry.isDirectory()) {
    // Assume directories are stored parents first then children.
    System.err.println("Extracting directory: " + entry.getName());
    // This is not robust, just for demonstration purposes.
    (new File(entry.getName())).mkdir();
    continue;
    System.err.println("Extracting file: " + entry.getName());
    copyInputStream(zipFile.getInputStream(entry),
    new BufferedOutputStream(new FileOutputStream(entry.getName())));
    zipFile.close();
    } catch (IOException ioe) {
    System.err.println("Unhandled exception:");
    ioe.printStackTrace();
    return;
    }

    What does the program output when it's executed? Can you copy the screen and post it here? More info can help solve the problem.
    What exactly is the program supposed to do?
    Add some more println() to show the program flow and what the values of key variables are. For example what is in entries after the entries() method is executed?
    Some prep work on your part would make it easier for us to help.

  • I have problems with the 'installation of creative cloud. Error Code: 205

    I have problems with the 'installation of creative cloud. Error Code: 205 What can I do to fix this?

    Errors 201 & 205 & 206 & 207 or several U43 errors
    -http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html

  • Dear Sir, i have problem in my Iphone 5 that during receiving any calls always appeare message that error in application occurred please call support quoting error code 2907. I need to solve my problem

    Dear Sir, i have problem in my Iphone 5 that during receiving any calls always appeare message that error in application occurred please call support quoting error code 2907. I need to solve my problem.

    The problem this message always appeare when receiving the calls and requesting either accept or cancel.
    Can you advice me if i have wrong application or i need to remove some applications.

  • Hello, i have a problem with this number code  213:19,  please help me!

    Hello, i have a problem with this number code  213:19,  please help me!

    dan
    What version of Premiere Elements and on what computer operating system is it running?
    If you are using Premiere Elements 13, have you updated it to 13.1 yet? If not, please do so using an opened project's Help Menu/Updates.
    What type of user account are you using....local administrator or domain type?
    Please review the following Adobe document on the 213.19 issue. Have you read that already?
    Error 213:19 | Problem has occurred with the licensing of this product
    ATR

  • I have problem when updating the latest version of Pro-X, I tried for several times, so I uninstall and re-install it. It is unsuccessful to re-install the Pro-X and it direct me to ask help from CS,also showing this message: Exit Code: 6  Please see spec

    I have problem when updating the latest version of Pro-X, I tried for several times, so I uninstall and re-install it. It is unsuccessful to re-install the Pro-X and it direct me to ask help from CS,also showing this message: Exit Code: 6  Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW025, DW050 ... WARNING: DW024, DW025 ..., please advice me the step to re-install the Pro-X. Thanks

    Please follow Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Do let us know if it worked.
    Regards
    Rajshree

  • HT3678 everytime I open qt pro i have to enter the registration code. This is really annoying. Does anyone know how to rectify this problem?

    everytime I open qt pro i have to enter the registration code. This is really annoying. Does anyone know how to rectify this problem?

    This procedure will check for files in your home folder that are locked or have a wrong owner. It makes no changes and will not, in itself, solve your problem.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    find . -flags +uchg,uappnd -o ! -user $UID
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    Post any lines of output that appear below what you entered — the text, please, not a screenshot.
    If any personal information appears in the output, edit before posting, but don’t remove the context.

  • I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4) A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
    A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens.  I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.

  • I have to type my security code every time I turn on my ipad with ios6.0. I don' have to this with ios5.1. How can I solve this problem?

    I have two problems with IOS 6.0.
    1. I have to type my security code every time I turn on my ipad with ios6.0. I don' have to to his with ios5.1. How can I solve this problem?
    2. I can not send email via Yahoo as usual, Only Safari allow me to it.
    Accordingly, I am writting here to ask for to solve those problems.
    Thanks in advance.

    * Websites remembering you and automatically log you in is stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    See also http://kb.mozillazine.org/Cookies

  • I have problem with my ipad3. I could not downgrade for ios 6.0.1 to 5.1.1. It was alarm code 3194. can u help me?, I have problem with my ipad3. I could not downgrade for ios 6.0.1 to 5.1.1. It was alarm code 3194. can u help me? Thanks...

    I have problem with my ipad3. I could not downgrade for ios 6.0.1 to 5.1.1. It was alarm code 3194. can u help me?, I have problem with my ipad3. I could not downgrade for ios 6.0.1 to 5.1.1. It was alarm code 3194. can u help me? Thanks...

    Apple does not support downgrading iOS levels.

Maybe you are looking for

  • How do I buy stuff on the iTunes Store if I can't remember my security information

    How do I buy stuff on the iTunes Store if I can't remember my security information

  • Report to Report Interface

    Dear All, I have implemented the RRI in BW . Its working fine. But there is one issue. Say user is in report A and he wants to go to Report B. Now in report A user has selected 3 characteristics and 3 key figures. Now he will right click on the repor

  • Acrobat Pro is not working

    Jeff, I have been suffering with loading and downloading Acrobat Pro for over a year.  It stops working after 3 or 4 days.  Can you please get someone to help me.  I have worked with the technicians and the same thing keeps happening. Marsha <Removed

  • PDF Pack Tagging Files

    OK, Two questions: First is the Cloud Acrobat "PDF Pack" something to be asked about in this forum, or should it go under Acrobat? I'm guessing here, because Cloud, but not certain. Secondly, using that product (which I got to from here: Reliably Cre

  • I have a CQ60-214dx laptop. I would like to upgrade the processor in it to something else.

    I have a CQ60-214dx laptop. I would like to upgrade the processor in it to something else. I have read on the Internet that it is possible to swap out the processor as long as you find the right socket, wattage, etc. processor. Is there a list out th