How to create this case study in oracle

Orient Courier Service is a leading provider of courier services to international/domestic destinations.  The service has offices all over the country where it picks up parcels for delivery. When a customer walks in for handing over packets for delivery the clerk at the desk keys in the customer’s name, address, email, hp no,weight (package) as well as the receiver’s name, address, hp no, city and country. All the fields are compulsory except the email address. Amount is also entered and is calculated based on fixed charges which are stored in the database. For example.
City
Charges
Johor Bahru
10/kg
Sydney
30/kg
London
25/kg
Based on the above scenario you have to come up with a physical database with the following.
A stored function to calculate delivery charges given city and weight
Hint (create two parameters city and weight)
A stored procedure to insert records into deliveries table
HINT create stored procedure with parameters for each field in the deliveries table for ex customer address, phone, email and receivers’s address etc
please help me to solve this case study, i new in  oracle..

How about starting here:
Oracle® Database PL/SQL Language Reference
http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/toc.htm

Similar Messages

  • How to create nested CASE statements in PL/SQL

    Can anyone please tell how to create Nested CASE statements in PL/SQL with proper syntax?
    It would be better if you can help with an example.
    Thank you!

    Something like this:
    SQL> set serveroutput on
    SQL> declare
      2    v1 number := 2;
      3    v2 varchar2(1) := 'C';
      4  begin
      5    case v1
      6      when 1 then dbms_output.put_line('First');
      7      when 2 then begin
      8                    case v2
      9                      when 'A' then dbms_output.put_line('Found A');
    10                      when 'B' then dbms_output.put_line('Found B');
    11                      when 'C' then dbms_output.put_line('Found C');
    12                      else dbms_output.put_line('NONE');
    13                    end case;
    14                  end;
    15      else dbms_output.put_line('Else');
    16    end case;
    17  end;
    18  /
    Found C
    PL/SQL procedure successfully completed
    SQL> If you have further doubts regarding syntax you can read the docs on the Case statement here:
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10472/case_statement.htm

  • How to create this Hieararchical Tree?

    Hi All,
    Please help me on this issue.
    I need DRILL DOWN functionality in forms. Im trying to Study / Create Hierarchi Tree Concept in Forms 6i, but couldn't able to manage /Understand how to create this. Please any one could help me. and im giving my scenario also here, whether it can support or not.
    Our routes having lot of terminals, like Our Bus travels from KENYA to SOUTH AFRICA passing TANZANIA,ZAMBIA,MALAWI,BOTSWANA countries. so i need the No of records to be dynamic i cant fix 10 records and scroll etc, Rather im trying to use Heirarchi Trees to achive this.
    My Table is like this.
    Table #1 Route_quotas
    Route_no,terminal_name,quota_station_from,quota_station_to,no_of_seats,seat_no_start_from,seat_no_ending
    Data is Like this:
    1,GNT,GNT,HYD,10,1,10
    1,GNT,GNT,VJA,40,11,50
    1,VJA,VJA,KDD,10,11,20
    1,VJA,VJA,HYD,30,21,50
    I need data to be displayed / functoned like this. If One select Route_no 1 in a List_item. Down to that i should show which terminals having quotas in this route. those are.
    GNT
    VJA
    Next ... If One selects this node like if one Expands GNT node the sub nodes should be like this having three coulmns (i.e quota_station_from,quota_station_to,no_of_seats columns)
    GNT HYD 10
    GNT VJA 40
    Next again.. if One select the first subnode it should give ...the seat Nos
    1,2,3,4,5,6,7,8,9,10 (please Omit the commas) and from there i should be able to select one seat_no and do some actions based on that. like RESERVE or ISSUE what ever i like. i need that Seat_no value.
    GNT
    ........GNT HYD 10
    ................ 1 2 3 4 5 6 7 8 9 10
    ........GNT VJA 40
    ................11 12 13 14 15....50
    VJA
    ........VJA KDD 10
    ................11 12 13 14 15 16 17 18 19 20
    ........VJA HYD 30
    ................21 22 23 24 ...... 50
    Thanks in advance.

    Rama,
    I would use nested PLSQL cursors to populate a record group and create the tree from there. This way you can also concatinate multiple values to show as a single name in a tree.
    Frank

  • How to create java stored procedure from oracle(Dastageer)

    how to create java stored procedure from oracle-please help me to create the procedure.

    Hi,
    This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question in the appropriate forum.
    Thanks,
    RK.

  • How to create a custom plugin in Oracle Access Manager to create a cookie

    How to create a custom plugin in Oracle Access Manager to create a cookie or Header Variable..
    Vipin

    Its has more steps which you need to consider in addition to Note:101048.1 which is mentioned by Prashant_Pathak. Both notes have enough information. If not, let's know what else you need to set

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • How to create a learning  certification in oracle learning management

    Hi all,
    can any body know how to create a lerning certification in oracle learning management.
    thank you.

    Hi,
    Please refer to [Oracle Learning Management User Guide |http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115olmug.pdf], Page 2-13 Learning Certications.
    Regards,
    Hussein

  • Can anyone explain how to create this effect in Deamweaver and Fireworks?

    This site was oriinally done in dreamweaver - but the shadow
    effect was done
    outside of Dreamweaver. When I save to html and load into
    Dreamweaver it
    makes no sense to me.
    Can anyone explain how to create this effect in Deamweaver
    and Fireworks?
    http://www.fundflowsystems.com/test.php
    Thanks in advance,
    Joe

    Thank you so much...
    You is da bomb!
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > Yes - a blank (completely blank) page.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Ken Binney" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Murray, one more favor if you would be so kind...
    >> Do you recall how this page degraded in Safari?
    >>
    >>
    http://www.binney.us/table-allcode.htm
    >>
    >>
    >> "Murray *ACE*"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Nope. Sorry. You need a Mac.
    >>>
    >>> --
    >>> Murray --- ICQ 71997575
    >>> Adobe Community Expert
    >>> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >>> ==================
    >>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>> ==================
    >>>
    >>>
    >>> "Ken Binney"
    <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> Thanks Murray...
    >>>>
    >>>> Is there a way I can test for Safari on my
    PC XP ?
    >>>>
    >>>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>>> news:[email protected]...
    >>>>> Fails in Safari, Ken.
    >>>>>
    >>>>> --
    >>>>> Murray --- ICQ 71997575
    >>>>> Adobe Community Expert
    >>>>> (If you *MUST* email me, don't LAUGH
    when you do so!)
    >>>>> ==================
    >>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>>> ==================
    >>>>>
    >>>>>
    >>>>> "Ken Binney"
    <[email protected]> wrote in message
    >>>>>
    news:[email protected]...
    >>>>>> Here is a solution requiring NO
    images.
    >>>>>> The CSS and the Javascript can
    easily made remote the page
    >>>>>>
    >>>>>> <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01 Transitional//EN"
    >>>>>> "
    http://www.w3.org/TR/html4/loose.dtd">
    >>>>>> <html>
    >>>>>> <head>
    >>>>>> <title>Shadow</title>
    >>>>>> <meta http-equiv="Content-Type"
    content="text/html;
    >>>>>> charset=iso-8859-1">
    >>>>>> <script
    type="text/javascript">
    >>>>>> var depth = 6 // in pixels
    >>>>>>
    >>>>>> // addLoadEvent t
    >>>>>> function addLoadEvent(func) {
    >>>>>> var oldonload = window.onload;
    >>>>>> if (typeof window.onload !=
    'function') {
    >>>>>> window.onload = func;
    >>>>>> } else {
    >>>>>> window.onload = function() {
    >>>>>> if (oldonload) {
    >>>>>> oldonload();
    >>>>>> }
    >>>>>> func();
    >>>>>> }
    >>>>>> }
    >>>>>> }
    >>>>>>
    >>>>>> addLoadEvent(function() {
    >>>>>>
    >>>>>> var a = document.all ? document.all
    >>>>>> document.getElementsByTagName('*');
    >>>>>> for (var i = 0;i < a.length;i++)
    >>>>>> if (a
    .className == "shadow") {
    >>>>>> for (x = 0;x < depth;x++) {
    >>>>>> var newSd =
    document.createElement("DIV")
    >>>>>> newSd.className = "shadow2"
    >>>>>> newSd.style.background = a.id
    >>>>>> newSd.style.width = a
    .offsetWidth + "px"
    >>>>>> newSd.style.height =
    a.offsetHeight + "px"
    >>>>>> newSd.style.left = a
    .offsetLeft + x + "px"
    >>>>>> newSd.style.top = a.offsetTop +
    x + "px"
    >>>>>> document.body.appendChild(newSd)
    >>>>>> }
    >>>>>> }
    >>>>>> }
    >>>>>> }
    >>>>>> );
    >>>>>>
    >>>>>> </script>
    >>>>>> <style>
    >>>>>> .shadow {
    >>>>>> border: 1px solid silver;
    >>>>>> padding: 2px;
    >>>>>> font: 10pt arial;
    >>>>>> position: relative;
    >>>>>> display: inline;
    >>>>>> background: white;
    >>>>>> z-index: 100
    >>>>>> }
    >>>>>> .shadow2 {
    >>>>>> overflow: hidden;
    >>>>>> position: absolute;
    >>>>>> filter: alpha(Opacity=15); /* modify
    to change the shade
    >>>>>> solidity/opacity, same as below */
    >>>>>> opacity: 0.1; /* firefox 1.5 opacity
    >>>>>> -moz-opacity: 0.2; /* mozilla
    opacity */
    >>>>>> -khtml-opacity: 0.1; /* opacity */
    >>>>>> z-index: 10
    >>>>>> }
    >>>>>> </style>
    >>>>>>
    >>>>>> </head>
    >>>>>>
    >>>>>> <body>
    >>>>>> <table width="800" border="0"
    align="center" cellpadding="0"
    >>>>>> cellspacing="0" class="shadow"
    id="#000000">
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> <tr>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> <td> </td>
    >>>>>> </tr>
    >>>>>> </table>
    >>>>>> </body>
    >>>>>> </html>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>> "Joe"
    <[email protected]> wrote in message
    >>>>>>
    news:[email protected]...
    >>>>>>>
    >>>>>>> This site was oriinally done in
    dreamweaver - but the shadow effect
    >>>>>>> was done outside of Dreamweaver.
    When I save to html and load into
    >>>>>>> Dreamweaver it makes no sense to
    me.
    >>>>>>>
    >>>>>>> Can anyone explain how to create
    this effect in Deamweaver and
    >>>>>>> Fireworks?
    >>>>>>>
    >>>>>>>
    http://www.fundflowsystems.com/test.php
    >>>>>>>
    >>>>>>> Thanks in advance,
    >>>>>>>
    >>>>>>> Joe
    >>>>>>>
    >>>>>>
    >>>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • How to create a Case Hierarchy

    Hi Friends,
    Can you pls guide me on how to create a Case Hierarchy?
    It's very much urgent.
    Thanks in advance and warm regards
    Purnendu

    Hello,
    Please have follow below steps for case hierarchy,we have implemented for service scenario
    General paths:
    CRM/Case Management/
    CRM/Interaction Center Web Client/Business Transactions/Case Management
    Transaction:
    SCASE_CUSTOMIZING
    Basic Settings
    Number range defined
    Case type emergency defined
    Status Settings
    Case status profile defined with values as below
    Case attribute settings
    Case priority defined (general for all case types)
    Case reason defined
    Case Category defined
    Create function profile and assign to Case Type
    ICWebclient settings
    Define and Enhance ICWeb client profile for Case processing
    Case Search added to Z_XXXX Nav Bar and new Z_XXXX_Case defined. New Nav Bar has Case Management Entry added.
    Additional ICWeb client profile defined. Assign new Nav Bar assigned and Case function profile to the new profile.
    Assign function profile for ICWebclient
    Create new runtime profile and assign to new ICWeb client profile. Also replace appropriate controllers for Case Management. Pls refer to Technical Specification for details.
    Case Record Model (transaction scase)
    RMS ID
    Case Record Model – Cycle0 activity. View for linking business objects to Case record.
    Set Up Registry
    Include new record model and service provider for record model in Case Type
    Maintain filters in ICWeb
    Column headings
    BOL paths, mapper classes and search help for CSRs.
    Define Filter profile
    Maintain entries to Filter profile.
    Assign Filter profile to Case Type
    New Business activities for Case
    Transaction type Case activity , partner determination and status profile created. 
    Status profiles for new business activities
    Partner Determination procedures for new business activites
    Regrds
    Shanmuga

  • How To Creating A Object Libraries In Oracle Forms 6i

    hi
    All
    I Not No How To Creating a Object Libraries In Oracle Forms 6i
    How To Add Your Pl/sql Block In a Lib
    But What Is Use it is i Know , So I Want To Creating a Object Libraries.
    So Any One Have A Idea Plz Help Me.

    Hi,
    there is a good paper:
    http://www.quovera.com/whitepapers/downloads/102_doc.zip
    http://www.quovera.com/whitepapers/downloads/102_ppt.zip
    Best,
    Friedhold

  • How to create this cool navigation bar in CS5 Dreamweaver

    Dear All,
    Can somebody please walk me through how to create this cool navigation bar?
    Please see the link below:
    http://www.viesso.com/viesso/home.php
    Thank you for all your help!
    I am designing my own website and I stuck at the beginning...
    Agi

    You can either use CSS to style the SpryMenuBar or there are commercially available options like Project Seven's Pop Menu Magic: http://www.projectseven.com/products/menusystems/pmm2/index.htm .  If you have the money I personally recommend the latter of the two, but you can easily style the Spry menu as well.

  • [b]How to create this Custom Table on Custom Schema with foreign key [/b]

    This Custom Table is create in Custom Schema and Refers to Seeded Table in APPS schema
    1 create table test_dff (test_id number(15) primary key,
    2* invoice_id number(15) constraint ap_test_fk REFERENCES ap_invoices_all(invoice_id) ON DELETE CASCADE)
    SQL> /
    invoice_id number(15) constraint ap_test_fk REFERENCES ap_invoices_all(invoice_id) ON DELETE CASCADE
    ERROR at line 2:
    ORA-02270: no matching unique or primary key for this column-list
    How to create this Custom Table on Custom Schema
    thanks in advance

    hi prashant
    sorry for replying late, i have checked your query and it gives me no rows, but if i check for user_cons_columns it gives me no rows either in APPS Schema, but in AP schema it gives me
    SQL> SELECT * FROM user_cons_columns WHERE table_name = 'AP_INVOICES_ALL';
    OWNER CONSTRAINT_NAME TABLE_NAME
    COLUMN_NAME
    POSITION
    AP SYS_C008177 AP_INVOICES_ALL
    INVOICE_ID
    SQL> SELECT constraint_name, constraint_type FROM user_constraints WHERE table_name = 'AP_INVOICES_A
    LL';
    CONSTRAINT_NAME C
    SYS_C008177 C
    SYS_C008178 C
    SYS_C008179 C
    SYS_C008180 C
    SYS_C008181 C
    SYS_C008182 C
    SYS_C008183 C
    SYS_C008184 C
    SYS_C008185 C
    SYS_C008187 C
    SYS_C008189 C
    SYS_C008191 C
    and since this is a combination of Unique and Not Null Constraints , i am getting the same issue. do u have any solution to make the Detail table records to delete without using Alerts/DB Triggers?
    thanks for your time .
    abdul rahman

  • How to manually create a CASE folder in Oracle Credit management?

    Hi All
    We have Oracle Credit management (OCM) mini pack.D installed.
    I am not finding any menu to create a CASE folder manually.Under 'Analysis' tab only one menu available. ie Case Folder. But no sub menu under it or any other menu to create a CASE folder. Am I missing any menus ?
    Any help is appreciated. Thanks.

    Hi,
    Please refer to [Oracle Learning Management User Guide |http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115olmug.pdf], Page 2-13 Learning Certications.
    Regards,
    Hussein

  • How to create SSWA plsql function in Oracle Apps of HTML call .html

    Hello Team,
    I am working on Oracle Apps 11i (11.5.10.2)
    I want to know , what is the process to create a , "SSWA plsql function" in Oracle Apps of type "HTML" and html call tab.
    How to create that Function and how to attach the PL/SQL code to these functions.
    How it works.
    Please help me to understand this concept from basics.
    Kind Regards

    Hi;
    Please review:
    how to setup a forms function in R12 to launch an URL?
    http://www.trutek.com/serendipity/index.php?/archives/15-An-Example-of-How-to-Create-Custom-Functions,-Menus,-and-Responsibilities.html
    Regard
    Helios

  • How to create large message window in Oracle Applications.

    Hi there,
    I would like to display a window in Oracle Applications very similar to the window we see when we go to Help-> About Oracle Applications.
    Basically I need a window that can display quite a bit of text (hence with a scroll bar) that I can call from custom.pll
    I tried using fnd_message.set_string but this cuts off the message if it is too long.
    Does anyone know how to do this.
    TIA.
    Ash.

    Hi Sandeep.
    Thank you so much for the idea...i am trying to do this but have run into a problem when closing the form.
    I have created a new form from template.fmb, with one window with just one field to display the message and one 'ok' button (that will close the form).
    I am now calling this form from within a trigger in CUSTOM.pll.
    Basically, when a user clicks on the quanitity field on a purchase order line, i want this message to pop up depending on the item they have selected.
    I have used the 'WHEN-NEW-ITEM-INSTANCE' trigger on the quantity field. Once the conditions validates to true, the message pops up... but when I try to close the form (clicking the OK button), it seems like it pops up again as it returns control back to the quantity field and then the trigger kicks in again?
    Any ideas as to how I can resolve this.
    Thanks.
    Ash.

Maybe you are looking for

  • How to get data into the mySQL database?

    First some background. I have a website that has outgrown its designed dimensions and is a huge burden to maintain. See PPBM5 Benchmark There is a lot of maintenance work involved, so I'm investigating a PHP/MySQL approach to easen the burden and to

  • No speakers or headphone plugged in

    Hi, so i have a dv4 1275mx and i recently updated to windows 7, i updated the bios and all the drivers but im still not getting any sound, it says i don't have speakers plugged in. but when i go to my playback devices it shows that the speakers are m

  • How i can downloald in my new card for games

    Hi.  Im just only need. To know how i can use my new card for my ipad to buy a new apps

  • Partitioning Hard Drive

    I just placed a new hard drive into the second bay of my quad G5 and am thinking of partitioning it to hold the OS on one partition, the programs on the second partition, and my files on the third partition, would this be a good idea? Does it make a

  • Entry doesnot exist in the T005q (check entry)

    i configured the country keys and with holding countires also. when ia m entering with holding tax key in does not exist in the too5 q . mean while because of this vendor master data cin details tab is not occured. kindky give how to resolve 2 issues