For what are "CREATE  SEQUENCE ... INCREMENT BY 1 START WITH 1" ?

I have seen SQL statements for Oracle Databases in the form like
CREATE SEQUENCE sq_ordernum INCREMENT BY 1 START WITH 1
For what are these kind of statements and how can I access/use them?
Peter

sequence is used to increment a number when ever you use seq.next val;
SQL> CREATE SEQUENCE sq_ordernum INCREMENT BY 1 START WITH 1
  2  /
Sequence created.
SQL> select sq_ordernum.nextval from dual;
   NEXTVAL
         1
SQL> select sq_ordernum.nextval from dual;
   NEXTVAL
         2
SQL> select sq_ordernum.nextval from dual;
   NEXTVAL
         3
SQL> select sq_ordernum.nextval from dual;
   NEXTVAL
         4
SQL> select sq_ordernum.nextval from dual;
   NEXTVAL
         5
SQL> select sq_ordernum.currval from dual;
   CURRVAL
         5
SQL>

Similar Messages

  • What are the sequence steps involved in MM FLOW

    what are the sequence steps involved in MM FLOW?
    please explain.

    Process Flow
    The typical procurement cycle for a service or material consists of the following phases:
    1. Determination of Requirements
    Materials requirements are identified either in the user departments or via materials planning and control. (This can cover both MRP proper and the demand-based approach to inventory control. The regular checking of stock levels of materials defined by master records, use of the order-point method, and forecasting on the basis of past usage are important aspects of the latter.) You can enter purchase requisitions yourself, or they can be generated automatically by the materials planning and control system.
    2. Source Determination
    The Purchasing component helps you identify potential sources of supply based on past orders and existing longer-term purchase agreements. This speeds the process of creating requests for quotation (RFQs), which can be sent to vendors electronically via SAP EDI, if desired.
    3. Vendor Selection and Comparison of Quotations
    The system is capable of simulating pricing scenarios, allowing you to compare a number of different quotations. Rejection letters can be sent automatically.
    4. Purchase Order Processing
    The Purchasing system adopts information from the requisition and the quotation to help you create a purchase order. As with purchase requisitions, you can generate Pos yourself or have the system generate them automatically. Vendor scheduling agreements and contracts (in the SAP System, types of longer-term purchase agreement) are also supported.
    5. Purchase Order Follow-Up
    The system checks the reminder periods you have specified and - if necessary - automatically prints reminders or expediters at the predefined intervals. It also provides you with an up-to-date status of all purchase requisitions, quotations, and purchase orders.
    6. Goods Receiving and Inventory Management
    Goods Receiving personnel can confirm the receipt of goods simply by entering the Po number. By specifying permissible tolerances, buyers can limit over- and under deliveries of ordered goods.
    7. Invoice Verification
    The system supports the checking and matching of invoices. The accounts payable clerk is notified of quantity and price variances because the system has access to PO and goods receipt data. This speeds the process of auditing and clearing invoices for payment.
    Pur info record is nothing but a master data like thing which will be maintained for different materials to determine the prices etc.It Specifies the number that uniquely identifies a record.
    For Example: an info record is based on Plant Vendor and Material
    Based on these three the Material Prices will be calculated
    for different combinations different values are taken into consideration.
    During pricing it brings these values automatically based on this info record.
    Use ME11 Tcode to create this record.
    Common Tables used by SAP MM
    Below are few important Common Tables used in Materials Management Modules:
    EINA Purchasing Info Record- General Data
    EINE Purchasing Info Record- Purchasing Organization Data
    MAKT Material Descriptions
    MARA General Material Data
    MARC Plant Data for Material
    MARD Storage Location Data for Material
    MAST Material to BOM Link
    MBEW Material Valuation
    MKPF Header- Material Document
    MSEG Document Segment- Material
    MVER Material Consumption
    MVKE Sales Data for materials
    RKPF Document Header- Reservation
    T023 Mat. groups
    T024 Purchasing Groups
    T156 Movement Type
    T157H Help Texts for Movement Types
    MOFF Lists what views have not been created
    A501 Plant/Material
    EBAN Purchase Requisition
    EBKN Purchase Requisition Account Assignment
    EKAB Release Documentation
    EKBE History per Purchasing Document
    EKET Scheduling Agreement Schedule Lines
    EKKN Account Assignment in Purchasing Document
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    IKPF Header- Physical Inventory Document
    ISEG Physical Inventory Document Items
    LFA1 Vendor Master (General section)
    LFB1 Vendor Master (Company Code)
    NRIV Number range intervals
    RESB Reservation/dependent requirements
    T161T Texts for Purchasing Document Types
    Tcodes:
    RFQ to Vendor - ME41
    Raising Quotation - ME47
    Comparison of Price - ME49
    Creation of PO - ME21N
    Goods Receipt - MIGO
    Invoice (Bill PAssing) - MIRO
    Goods Issue - MB1A
    Physical Inventory - MI01( Create doc)
    MI04 (Enter Count)
    MI07 (Post)
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • What are the sequence of function modules executed in payroll result

    Dear all,
    what are the sequence of function modules executed  while retrivieng pryroll result.or
    functionmodule sequence in payroll programming.
    By
    bose

    Hi Bose,
    The sequence of FM executed in payroll result are
    1. cu_read_rgdir ---> from this u will get the country key.
    2. cd_read_last -
    > from this fm u will identify the seqnr for the latest record and finally for the payroll result
    3. pyxx_read_payroll_result.

  • My i-phone Not charging because Sunken pins and Green Belt3 Power Mac Center said even my warranty still open until 30 October they cannot do nothing and refer me to a Toll Free Apple customer Service number..my question for what are thwy there?

    My i-phone 5s is not charging because of Sunken pins where the socket is plugged. According Power Mac Center at Green Belt3 even my warranty still open until 30 October they cannot do nothing and refer me to a Toll Free Apple customer Service number in Singapore!!! ..my question for what are they there? not alt all very friendly and helpful!!

    Send an e-mail with all this in it directly to Tim Cook. Seriously. You can send e-mail to him.
    You might also try this forum here for more ideas: http://forums.macrumors.com/index.php?

  • What are the limitations in weblogic that comes with JDeveloper?

    Hi,
    What are the limitations in weblogic that comes with JDeveloper?
    Thanks for your help.

    Not much. If there is, you can always create your own domain with the servers you want and create a connnection to the admin server of that domain in JDeveloper.

  • What are the partner system(R/3) connected with APO

    Hi All,
    Can some buddy help me in checking what are the partner system(R/3) connected with APO.
    Let me explain my requirement in brief.
    I have Login in one APO system, but i donu2019t know the partner R/3 system available for it.
    So from where i can get this information ......?
    Regards

    Hi SCM APO 22,
    Try the below menupath in customisation
    spro > sap guide > apo > integration with sap components
            > Integration via APO Core Interface (CIF) >
                   > Basic Settings for Creating the System Landscape
                        > Set Up RFC Destination
    Please confirm
    Regards
    R. Senthil Mareeswaran.

  • What are the settings in Aperture to work with a Canon 9000?

    What are the settings in Aperture to work with a Canon 9000? Canon website says Aperture is not supported. Is it True?

    Do you mean the Canon PIXMA Pro9000 printer?
    If so, does this help?
    https://discussions.apple.com/thread/3681934?tstart=0

  • What are the different 'Add-on modules' available with LabVIEW?

    What are the different 'Add-on modules' available with LabVIEW?
    What are the types of 'Add-on Cards'?
    Cards and modules are different,thats true.Is it that modules means software and are they same as 'add-on toolsets'.Please give the details/URL which would give me various toolsets in detail and also the specifications of various add-on cards?
    Kindly do the needful
    I require these details immediately.I am an Engg student and learning LabVIEW

    duplicate post

  • What are the prerequisites to monitor SAP ENVIROMENT with grid control

    anybody know what are the prerequisites to monitor SAP ENVIROMENT with grid control
    its necessary another software
    thanks

    There's currently no way to monitor a whole SAP system through gridcontrol. Of course you can monitor the underlying database.
    Werner

  • What are some cool things you can do with TWO Macs (one MBP and one MB)?

    What are some interactions that can happen between two Macs?
    I have a MacBook Pro, and my sister just bought a MacBook for herself.
    I can sense that there must be something cool we can do between them, because it's Apple !
    Any input would be appreciated, thanks and happy holidays.

    You can use Bonjour to setup a file-exchange network easily and efficiently.
    You can use iChat to create a video conference on your home network.
    If you are into power processing, I personally have set up a miniature render farm with 3 machines all processing 3d scenes to make my own 3d movies and special effects.
    You can share music through iTunes music sharing, and listen to each others music, video, and whatever-else libraries.
    And thats all I can think of as of now. Hope that helps!

  • What are the inputs on back of iMac with lightening bolts

    What are the two inputs on the back of my iMac that have lightening bolts for? Can they be used for inputing video? My camcorder has a DV output. Are they better than using USB? I have a new iMac that has a 2.9 GHz Intel Core i5 processor.

    You would need a Thunderbolt-to-Firewire adaptor, and a Firewire 9-pin to 4-pin cable to connect a DV camera.
    Matt

  • How can I use the NI PXI-6508 with Lab View 7? what are the first steps to get started??How can I use the channels with lab view 7????

    I have a 8 slot PXI system with 2 NI PXI 6508 and 1 DMM 4070 in it. I want to get started with programming the digital I/O cards (6508)! How can I use this cards with LabView 7?what is the best way to get started, or where can I get examples showing how to use the several channels?
    Thanks!
    Philipp

    Philipp,
    The best way to get started is to decide if you want to use traditional NI-DAQ or NI-DAQmx. Recently we released NI-DAQ 7.1 which provides NI-DAQmx support for the PXI-6508. In my opinion, NI-DAQmx is more efficient and much easier to use.
    To get started with examples, simply launch LabVIEW and go to Help>>Find Examples. Then expand Hardware Input and Output>>DAQmx and select the appropriate digital group for your application. This should help get you started.
    Please repost if you need addition assistance. Good luck with your application!

  • What is the best file format to start with?

    I have not quite figured out what is the best way and best tool (Photo
    shop, Fireworks, Illustrator?) to optimize images to put on a web page?
    I know that there is a "save for web" feature that is very useful.
    But what I want to know is what is the best file to start with, to resize larger or smaller, and save for web,
    and still get a clean and crisp looking Jpeg, png, or whatever?
    I have a client who sends me EPS images to use for their logos. It is too big and I have to resize it.
    Is this a good format to start with and to resize, or should I tell the client to send it to me in a different format?
    They also send me huge raw photoshop files (with layers and all) that I have to put in a much smaller
    placeholder..Again, is this a good file format to start with and resize and save for web?
    and if so, which tool is best to use in this case to its reduce size this file and get optimal quality - Ps, Fw, or Ai??
    or should I tell the client to send it to me in a different format?
    what is the best format to start with, so I can tell clients to send me their images in that format?
    if anyone can point me to some links or other place where I can find this information that will be great?
    thanks!!!

    Photoshop and Fireworks can both create files (raster images) suitable for placing images on the web. Some people prefer one to the other. If your not doing editing then Fireworks is probably the tool geared most towards that goal. If you want to create vector graphics for use on the web, neither Photoshop nor Fireworks are suitable. Illustrator is the tool to use.

  • What software do I need to get started with GIS development

    Hello, I'm a Oracle RDBMS specialist but interested in getting into GIS development. I want to set up a local environment and play around with it. Could someone advise me as to what software I need to install/download? Is all of it free?
    1.) I'm assumming I need ORACLE with SPATIAL (was looking into 10g) Is this download free?
    2.) I also looked into MAP VIEWER as an extension of the Oracle Application Server.
    Are these 2 products all I need to get started?
    I also read alot about arcGIS? Can this product be downloaded for free or is it a licensed product?
    Does anyone have any other suggestions about some software/documentation that may help me get started in this technology.
    Thanks,

    Hello!!
    Actually, you need Oracle Spatial or Oracle Locator. Oracle Locator is free on Oracle Express, and you could start with it. Otherwise, if you want to know more, Oracle Spatial comes with Oracle Enterprise, and Oracle 10g gives you a schema that allow you to store, manage and query spatial data through Oracle functions, etc.
    To start using MapViewer, considering that you already have some spatial data stored on the database, you could download the MapViewer kit at http://www.oracle.com/technology/products/spatial/index.html.
    You could buy the Pro Oracle Spatial book. It´s very good.
    Good Luck!
    Regards
    Carlos Eduardo

  • Batch Rename Sequence Letter Doesn't Start with A

    I'm using Adobe Bridge CS3 to rename files.
    Several of the files require me to use the SEQUENCE LETTER function under BATCH RENAME.
    However, the names of the files contain a sequence of letters that start in the MIDDLE of the ALPHABET (i.e.  C, D, E, F, G, etc...)
    I can't find an option to let me start lettering form a letter other than A.
    Help!
    Thanks,
    jjfosho

    I have 3 monitors hooked up and running, the only port not in use is the mini display port (I do not have an adapter).
    All 3 screens are blue and the mouse and key board are not responsive.
    If i take out the other card (ATI Radeon HD 2600) it Tells me I need to restart. Every time i do it comes up with the same thing.
    Is the card Bad or something else?

Maybe you are looking for