SQL : Can u print the numbers 1 upto 10 using SQL only

Hi Friends,
I want to know is there a possibility to print all the numbers between 1 upto 10 using a sql statement only.
An earlier reply is appreciated.
Thanks in Advance
Sriram

You may try something like this:
select rownum from all_objects where rownum<=10;
This should normally work, for I can't imagine how one may have a DB with less then 10 objects. Still, it's not too elegant.
Why not use pl/sql?
declare
n number
begin
dbms_output.enable;
for n in 1..100 loop
dbms_output.put_line(to_char(n, '9990'));
end loop;
This would seem the most natural approach.
Regards,
BD.

Similar Messages

  • How can we print the page numbers for TABLE OF CONTENTS form When its excluded from the form page count ?

    Hi Experts,
    We have TABLE OF CONTENTS followed by 100 forms with totally 215 pages.
    We have checked in the Exclude from form page count option for TABLE OF CONTENTS form in Group level.
    The forms followed by TABLE OF CONTENTS form all are using FORMSETPAGENUM rule in footer.
    the very first form followed by TABLE OF CONTENTS form the page number starts at 1 of 215 and the last form ends at 215 of 215.
    Now i want to print the Page number for TABLE OF CONTENTS form alone.
    How can we do that ?  Any thoughts ?
    Regards,
    RAMAN C

    Hi Raman,
    I guess, you have included 'Exclude Page Count' option in Table Of Content (TOC) form.
    There is a limitation in studio. The page number functions (FORM PAGE NUM OF/ FORMSET PAGE NUM OF) will be ineffective when we select the 'Exclude Page Count' option in TOC form. Hence, you was not able to print the Form Page Count in TOC form.
    The only way to print page count is to deselect 'Exclude Page Count' option. Then you can normally print the TOC Page Count in TOC form. However, thiS TOC page count will add to the Total formset Page Count. The Formset Page Count can be controlled through Postransdal using the script [FORMSET PAGE NUM = TotalPages() - 1]
    Regards,
    Mahesh

  • How do you print the numbers next to the first column

    In Numbers I can't figure out how to print the numbers next to the first column to the left. Say I have 350 people on a list and I want to print the sheet with the numbers next to the people's name, how do I do that. Excel automatically does it. However, I cannot find the option to print and include the numbers from the standard Numbers worksheet. Thanks for your assistance.

    In excel it is actually in the page setup dialog. under the "sheet" tab. Numbers doesn't have one table per page (excel is basically one large table of cells). So printing header and column labels doesn't really work in numbers, because those labels don't show up until you click inside the tables. If you notice when you do that they abstruct the view of everything else that might be near the edge of the table.
    The other posters response is the best way to do it. you can get column Numbers (but not letters) by using the column command in an extra row at top also. Thre is a way if you really want column letters, but it ain't pretty. Let us know if you want that too.
    Jason

  • ) how can we print the bar code in SAP_SCRIPTS?

    ) how can we print the bar code in SAP_SCRIPTS?

    hi Pavan,
    barcodes wil be generated in the printer itself, if you give <BC>&HD_GEN-MATERIAL_NUMBER&<> then you have a value for "Barcode" .
    Adding Your Own Bar Code:-
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm
    barcodes in SAP
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    Print Unique Indicator as a Barcode
    The printing of unique indicators of elements (reference numbers of records, case indicators, or document numbers) as barcodes is controlled by SAPscript forms.
    SAP delivers a common SAPscript form based on the SAP barcode type AUFNR for records, cases, documents and incoming post items.
    To create another SAP barcode type, you can copy the SAPscript form RMPS_BARCODE and then adjust it to your own requirements. Then you have to define the new form using the following attribute names in the table SCMGPARAM:
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (‘First page’, ‘Next page’, ‘Last page’) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    hope this helps you
    Regards,
    Jayant

  • How can I print the calendar from my iPad?

    How can I print the calendar from my iPad/iPhone 4?  I would like each month on a separate 8 1/2 x 11 sheet of paper.  Thanks!

    What print app do you have? I think that you need certain printing apps in order to print the iPad calendar. The print feature is not built into the app itself ...As far as I know.

  • How can i print the e-mail address book

    I need to be able to share the address book. How can I print the contents

    There is no good way that I have found to print them directly from Thunderbird.
    The best way that I have found is to export the address book to a comma separated file, .csv file, then open that with Excel or Open Office, format the file like you want and print from there.
    The added benefit of doing this is now you have a backup file of your address book in case something bad happens.
    The Export command is under Tools in the Address Book window.

  • How can I Print the next 4 or 5 weeks from iCal in month view (not simply complete months)

    How can I Print the next 4 or 5 weeks from iCal in month view (not simply complete months).
    I'd like to print the next (up an coming) weeks of my calendar from iCal in month view - The idea is to get this information on 1 sheet of A4.. just like the month view.. but as far as i can see the month view only gives you current or next complete months.. The ONLY time this give me the view I want is in the first week of any given month.. the rest of the month part of the print is in the past and not enough of the up and coming weeks are shown?
    I can believe  the app won't allow you to do this .. am I missing an easy fix.. or has it been rectified in Yosemite .. I'm using mavericks 10.9.5.
    Thanks

    Hope this helps.  
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • HT1923 I have just updated itunes and now I can't print the playlist when I burn a list to cd. How do  make a cd case cover or list of songs?

    I just recently updated itunes and now I can't print the playlist or print a cd case cover. I want to at least print a list of songs to go in the cd case. How do I do that?

    beggsc54,  There were some printing bugs in iTunes 11.0 which reportedly have been fixed in 11.0.1.  If you haven't upgraded yet, install the latest iTunes and try again.

  • How can I print the "number lines" with the code in Visual Studio?

    How can I print the "number lines" with the code in Visual Studio?

    Hi BillionaireMan,
    What about your issue now?
    If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
    If you did not, please tell us more information,we will try my best to help you.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a MacBook Pro and can't print pdf files or word documents using my HP Wireless Photosmart Printer.  It will print files from the internet.  Any suggestions or ideas will be greatly appreciated.  Thank you.

    I have a MacBook Pro and can't print pdf files or word documents using my HP Wireless Photosmart Printer.  It will print files from the internet.  Any suggestions or ideas will be greatly appreciated.  Thank you.

    Hello, SoonerAnesthetist. 
    Thank you for visiting Apple Support Communities.
    Here is an article that I would recommend going through when experiencing this issue.
    OS X Mavericks: Solve printing problems
    http://support.apple.com/kb/PH14142
    Cheers,
    Jason H.

  • When I try to print a photo from iphoto, I select the photo, click print and the preview shows there is a lot of the photo cut off.  It also prints this way.  How can I print the whole picture?

    When I try to print a photo from iphoto, I click print and the preview shows a lot of the photo cut off.  It also prints this way.  How can I print the whole photo?

    After selecting File > Print, a pop-up window should appear. Select "Customize" and this should take you back into a panel within iPhoto. Towards the bottom, you should see an option for "Layout". Select this option and choose the correct photo orientation.
    Hope this helps!

  • "Can't Save the File. Can't Print the File" error in Illustrato CS3

    I get the error "CAN'T SAVE THE FILE. CAN'T PRINT THE FILE". In Illustrator CS3
    According to adobe this is an issue of having more that 28 spot colors, so I went to the swatch palette and pulled the fly-out menu out and told it to remove any unused swatches which took me down to 6 spot colors, but I still get the error when trying to save it to EPS format, which is the format I have to have for the ripping program for the vinyl printer in my sign shop. Saving it in AI format causes no issues.
    Is there still something I am missing?
    Thanks
    Roger

    I appreciate your comment, I see what your saying.
    However...my issue is...I am making a vehicle wrap on a full size van for a radio station and it consist of pictures of a clouds for the background with two pictures of music artist that are associated with the kind of music this station plays, then there is a big round logo of the radio station that involves three spot colors (Purple, white and one of which is technically the black "K" ribbon) along with the web address of the station but it is of the same colors of the radio station logo...then there is the corporate logo that utilizes another spot color (blue)so as you can see I need the spot colors that I'm using.
    So just to make sure I'm clear...I can only have 28 different individual colors, even though I have photos involved in the rendering? How can I make that work because photos obviously have more than 28 colors in them. It doesn't make sense because you can do a live trace on something in literally hundreds of colors.
    Would it help if I flattened the photo work from photoshop before I move it to Illustrator? The reason I ask is because when I go to save and choose EPS the next save dialogue that comes up...down at the bottom there is two exclamations that one says something about embedding fonts, which I'm not concerned about and the other is something about there is some artwork that needs flattening.
    Please bear with me here cause I am definitely a newbie!! My boss threw to the wolves on this adventure and I am learning by reading and trial and error.
    Thanks
    Roger

  • Can't open the Illustration. Can't print the illustration. Disk full error . . .

    Since CS5, now CS5.1 I have had periods, sometimes multiple times a day, that I have this error, "Can't open Illustration. Can't print the illustration. Disk full error has occured while printing."
    I don't understand if I am alone in the problem or what. But after 3 days of the problem starting up again, I am quickly going nuts - I was close to that point before these issues.
    Facts:
    It happens without warning! These are native illustrator files that I created or have been given to me.
    I am NOT printing when it happens.
    I cannot open ANY illustrator file once the error occurs.
    If I quit Illustrator and re-open, it still does NOT work.
    I have to restart my entire computer, then it works fne - until it happens again, which is 5-6 times a day.
    I am running 10.6.8  on a 2.9 Core 2 Duo 24" iMac with 4GB ram.
    Doe anyone have any idea what the problem is or how to fix it? Please!!!!!

    Probably a font cache, corrupt font and now a preference corruption as well.
    Bloated font cache an do this.
    So can a permission problem
    So download ONYX it is free clear out your font cache, if you have cocktail that will do as well. As mfar as the corrut font Font Agent Pro would be useful for helping you locate the  corrupt font.
    As for the preferences
    1. Quit Illustrator.
    2.Go to User/username/Library/Preferences/ Adobe illustrator CS# Settings and trash the settings folder, the whole folder not just the contents of the folder..
    3. Start Illustrator. Illustrator creates a new preferences file.
    (someone here will advice you to rename the folder but that only applies to the Windows system just trash and empty the trash and a fresh one will be made)
    Then use the disk Utility to repair the permissions.
    You can do all of thesee and maybe avoid the corrupt font and see if that works but I suggest you do all three and then if it happens again trouble shoot your fonts.
    If this does not help probably a conflict with a plug in or other third party software.

  • How can we print the Stock Transfer Purchase Order

    Hi,
    How can we print the Stock Transfer Purchase Order??
    Because from Transaction ME9L & ME9F, we can print simple PO's like NB, MPR etc..but Stock Transfer PO could not print.
    Plz guide, from where we can do it...

    Messages for PO are set in MN04. For details on how to follow this link:
    Re: Problem with PO output determination MN04
    Once the record is set here you will see the records in ME23n under messages button in header.
    Edited by: Afshad Irani on Apr 30, 2010 10:09 AM

  • How can I print the date and time in a photo from iPhoto

    How can I print the date and time in a photo from iPhoto

    You want to print them on their own? Can't be done. WIth the photo? Install this
    http://www.iborderfx.com/iborderfx/

Maybe you are looking for

  • How Do I "Export" from one Aperture project into another?

    I've imported shots into project "A" with both the jpg and the raw file being considered masters. I would like to make a slideshow using just the jpegs but don't want to have to go and flag each individual file. I tried turning the view option off in

  • Is my nokia device when used in video mode auto fo...

    nokia x6 8gb

  • JDBCPersistenceManagerFactory and JNDI

    Hi, I'm currently working on kodo v2.2.1. I have a problem if I use kodo with jndi. Everything is working fine if I just create a JDBCPersistenceManagerFactory with      new JDBCPersistenceManagerFactory() save it in jndi and access it later under th

  • Enterprise Portal Installation

    Dear Expert,           I am New Implementation Consultant, i dont know how to follow the correct procedure. Please provide for us INSTALLATION GUIDE AND IMPLEMENTATION NOTES, AFTER INSTALLATION CONFIGURATION STEPS, DOCUMENT LINKS. Thanks, Selvarajs

  • Exporting jpegs from llustrator for retina monitors

    I'm a web designer that designs my mockups in AI (yes, in AI and I love it) and then sends those native files over to my programmer when it gets time to code. We've been working this way for years and he's quite comfortable with that, so no issues th