Could some one help me in knowing abt this function

NVL(MONTHS_BETWEEN(TO_DATE('01/01/2005' , 'dd/mm/yyyy')+1,pims.get_last_appt(p.patnt_refno)),0) op
Could some body explain me how this works in a pl/sql block .
many thanks
Prk

It works the same in sql as pl/sql, but anyway...here goes.
If the number of months between 02-JAN-2005 and the patient's last appointment is null, then put a zero. Or in layman's terms, find out how many months were between 02-JAN-2005 and the last time the person had an appointment. If they've never had an appointment, it is 0.

Similar Messages

  • I need help with something could some one help me with installing windows 7 on bootcamp 4.0 with iMac 2.8 ghz model

    could some one help me with something important i have a 2.8 ghz intel quad core Imac with 10.7 with bootcamp 4.0 but still getting that black screen while trying finish the install of windows 7 etc. or do i need a new mac for it to work properly

    This might help point you in the right direction.
    http://support.apple.com/kb/HT4818
    Hope it helps
    Also google it and lots of results come up including youtube clips....

  • Could some one help me everytime i plug my ipad mini into my laptop, the laptop crashes. Is this my I pad or my laptop.

    could some one help me everytime i plug my ipad mini into my laptop, the laptop crashes. Is this my I pad or my laptop.

    Does this happen only when plugging into a specific port or all of them?  If it happens with all of them then it's probably your laptop.  Have you tried going through a powered usb hub?  That would take the power burden off the laptop mb.  Until you conduct a systematic search you will not be able to narrow down exactly what the real problem is.

  • SAP BO SCPM could some one help to get the list of cotent after installing SAPBO SCPM 2.0

    Dear Experts,
    Could some one please provide the list of objects (complete flow) we get after installing SAP BO SCPM 2.0.
    Please find the below link for reference:
    http://scn.sap.com/people/tarunkamal.khiani/blog/2011/07/05/what-s-new-with-sap-businessobjects-supply-chain-performance-management-20
    your inputs will highly been appreciated.
    Thanks,
    Khader

    Hi Steve
    Many thanks for that. Could I ask that
    this kind of thing goes in the release
    readme also.
    Marc

  • Could Some One Help Me?

    This is my first time being on these forums,so I'm new at this,but I would greatly appreciate any help or tips! I have a iPod nano and have a little over 300 songs on it. But a few weeks ago I had to re-boot my computer because so much junk was on it. But I also had to make a new iTunes library because for some reason I could not get into my old one.I also have a family member who I shared this library with. She has a shuffel. But every time we try to plug in our iPods new music will not download. Also only about 100 of the songs we have appear on the library. It says we are not authorized to play them, so when I click "authorize computer" it does not help. The library does'nt delete the songs but they just wont appear on the screen. And I have no access to my old account. Could someone help me?

    It can take upto 24 hours for a sim card to activate

  • Could some one help me with dead pixel on my screen?

    I bought my Thinkpad X61 only a few days back. I opened it and found that there is one dead pixel in the middle of the monitor. Is there any possibilty that Lenovo would fix this? I know that I have to pay 15% of the purchage amount in order to return this peice. I would be really happy to return it without any costs. I talked to the service people. This is the worst service ever I had. No one is replying. One girl told me that the dead pixel goes away in a few days and It would be okey. It looks like if you order a laptop online, they send you laptop with defective pixels.

    This message is locked.
    Please use the one in the X Series Tablet section.
    Message Edited by carbon_unit on 04-05-2008 07:04 AM
    T60 2623-D7U, 3 GB Ram. Dual boot XP and Linux Mint.
    T400 2765-T7U Windows 7
    Registered Linux User #160145
    FYI: I am not employed by Lenovo

  • NAM2 Upgrade fails could some one help its urgent!

    Hi All,
    I am trying to upgrade the application image on my NAM-2 Module on the  version 3.6(1a-patch3) to version 4.1(1), I am getting this error:
    ERROR: Application installation has failed. View the upgrade log for details
    I have successfully upgrade my maintenance image from 2.1(2) to 2.1(5) and it went fine without any issue. After which when i try to upgrade the application image I am getting this error.
    Kindly let me know what is causing this why am I not able to upgrade from 3.6 to veriosn 4.1 ?
    Any help on this would be highly appriciated.
    Thanks in advance.
    Regards
    Alex.

    HI Joseph,
    Thanks for the update. I need to know how can I revert back the maintenance image from 2.1(5) to 2.1(3).  as I have seen earlier couple of guys done this and the upgrade was successfull.
    Hence I would appriciate if you can let me know the procedure to revert back the maintenance image from 2.1(5) to 2.1(3)
    Thanks in advance. Waiting for your answer.
    Regards
    Alex,

  • Please Could some one Help me

    Hi experts i have to develop a report based on the following data  Using ODS and Cube.Iam providing all the details as under.
    DSO
    Key Part
    0CUSTOMER
    ZTID
    Territory ID
    Data Part
    0FISCYEAR
    Zpercent Key Figure
    Cube
    Customer
    0Customer
    Territory
    ZTID
    Time
    0FISCYEAR
    Key Figures
    ZREVENUE
    Sample Data in DSO
    Customer Territory 0FISCYEAR Zpercent
    C1 T1 2008 50%
    C1 T2 2008 50%
    C2 T1 2008 25%
    C2 T2 2008 25%
    C2 T3 2008 50%
    Sample Data into Cube
    C1 2008 100000 USD
    C2 2008 200000 USD
    C3 2008 100000 USD
    Sample Report 1
    C1 T1 2008 50000
    C1 T2 2008 50000
    C2 T1 2008 50000
    C2 T2 2008 50000
    C2 T3 2008 10000
    C3     2008  10000
    i have desinged cube and DSO as per the requirement with given characteristics.But iam not able to generate the report as per requirement.Iam using multiprovider with cube and DSO and then developing report.I will allocate points to all hose help me and advance thanks.
    Bye

    Hi
    Try this and let me know in case of any issues
    Create a calculated key figures with the formula (NDIM(ZREVENUE)) * (Zpercent / 100)
    Please let me know the assignment in the Multiprovider for customer and fiscal year
    Regards
    Rohit
    Edited by: Rohit Deshmukh on Jul 2, 2008 9:13 AM

  • Dear All, could some one help me, I reset iphone ( all data ) it shows it will take 2hr but now its almost day only logo is visible on screen , what should i do , Please help me thanks

    Dear All
    I reset all setting including all data , so it shows that it will take 2hr, but now its almost i day only Apple logo is visible in screen , please help me what shloud i do, Actuly i want to remove all data , there is no virus no problem , just want to data, but untill now its not fix yet

    Ohhh!
    All you have to do is to put your iPhone into DFU Mode
    Just simply connect your iPhone to iTunes, hold the power button + home button for 10 seconds, later by holding the home screen button continuously (Without leaving it) until it appears to be in recovery mode in iTunes.
    You now hit the restore button in iTunes. It will download the latest version of iTunes, which might take a while.
    After that, it will install the iOS (51.1) which might take 7-10 min. And you're good to go!
    If you're not able to put the iPhone in DFU here are the video instructions : http://www.youtube.com/watch?v=ofpinyGlQ8I
    This should solve your problem!

  • I can't remember my security question answers and so I can't buy any apps could some one help please

    I can't remember my security answers so can not buy any apps can someone help please

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • SOME ONE HELP! i know im a noob .

    OK here my problem....I got my 30bg Video i-pod and connected it to the computer BEFORE installing the software. I didnt see the little sticker that said install first or read the manual untill after i conncected the I-pod. Now i get the Message "Do not disconnect" I have went to the I-tunes software to try to disconnect the ipod manually but the Ipod doesnt even show up anywhere. plzzzz someone help me

    I'd start iTunes, then unplug, reset (hold down the middle button and Menu buttons for about 10 seconds until the screen goes black) and re-connect the iPod.

  • Could some one give an idea for solving this?

    The relational model for the database is:
    Department(DeptNum, Descrip, Instname, DeptName, State, Postcode)
    Academic(AcNum, DeptNum, FamName, GiveName, Initials, Title)
    Paper(PaNum, Title)
    Author(PaNum, AcNum)
    Field(FieldNum, ID, Title)
    Interest(FieldNum, AcNum, Descrip)
    Overall each active author (those academics who write papers) write 23 papers on average.
    Departments can be ranked by the average number of papers per active author in the department. By
    comparing a department average with the overall average, a department can be ranked as "above average"
    (>), "average' (=), or "below average"(<). Considering departments with a post code starting with '3' and
    with ranking "above average" or "below average", output their department number, institution name,
    department name and their ranking.

    You can start this way
    1. Find all active authors
    2. Find the number of papers for each active author
    3. count the number of authors for each department
    4. Find the average number of papers and the number of autors for each department
    5. Find out what is still missing.

  • I don't know how to download adobe acrobat reader. could some one please help. i don't know much comp terms

    i don't know how to download adobe acrobat reader. could some one please help. i don't know much comp terms
    Mark this discussion as a question-this encourages people to answer for points and helps you track answers.

    iv'e been on that page a dozen times. it just gets me into an endless loop.
    i need instructions i can understand and do what they tell me to do
    In a message dated 2/18/2015 9:04:06 P.M. Central Standard Time, 
    [email protected] writes:
    i  don't know how to download adobe acrobat reader. could some one please 
    help. i don't know much comp terms
    created by Jerry Klaimon (https://forums.adobe.com/people/Jerry+Klaimon) 
    in Downloading, Installing, Setting Up - View the full  discussion
    (https://forums.adobe.com/message/7208793#7208793)

  • Client server code with errors could some one please help me!!!

    I am using a random access file to design the two interfaces for my client and my server is this the right thing to do? Oh could some one give me some example code of client server interfaces.
    I got an error in the code for the interfaces and I don't know what it is could some one please help me!!
    Heres the error in the code: This is for RegisterCustomer
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    class RegisterCustomer extends JPanel implements ActionListener
    // Button for registering a customer
    private JButton jbtRegister;
    // Customer information panel
    private CustomerPanel customerPanel; (The error is on this line and it says Field type customer panel is missing)
    // Random access file
    private RandomAccessFile raf;
    Second error: Its in the ViewCustomer:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    // View customer panel
    class ViewCustomer extends JPanel implements ActionListener
    // Buttons for viewing customer information
    private JButton jbtFirst, jbtNext, jbtPrevious, jbtLast;
    // Random access file
    private RandomAccessFile raf = null;
    // Current customer record
    private Customer customer = new Customer();
    // Create a customer panel
    private CustomerPanel customerPanel = new customerPanel(); (its on this line and it says field type CustomerPanel is missing)
    // File pointer in the random access file
    private long lastPos;
    private long currentPos;
    Heres the code for the customerPanel:
    // Customer Panel.java: Panel for displaying Customer information
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    public class customerPanel extends JPanel
         JTextField jtfRegistrationnumber = new JTextField(30);
         JTextField jtfSeatingcapacity = new JTextField(20);
    JTextField jtfStartdateofhire = new JTextField(20);
    JTextField jtfDurationofhire = new JTextField(10);
    JTextField jtfManufacture = new JTextField(20);
    JTextField jtfModel = new JTextField(15);
         JTextField jtfEnginesize = new JTextField(15);
    JTextField jtfCharge = new JTextField(20);
    JTextField jtfMileage = new JTextField(10);
    // Constuct a customer panel
    public customerPanel()
    // Set the panel with line border
    setBorder(new BevelBorder(BevelBorder.RAISED));
    // Panel p1 for holding all the labels
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(3, 1));
    p1.add(new JLabel("Registration number"));
    p1.add(new JLabel("Seating capacity"));
    p1.add(new JLabel("Start date of hire"));
    p1.add(new JLabel("Duration of hire"));
    p1.add(new JLabel("Manufacture"));
    p1.add(new JLabel("Model"));
    p1.add(new JLabel("Engine size"));
    p1.add(new JLabel("Charge"));
    p1.add(new JLabel("Mileage"));
    // Panel jpRegistration number for registration number
    JPanel jpRegistrationnumber = new JPanel();
    jpRegistrationnumber.setLayout(new BorderLayout());
    jpRegistrationnumber.add(new JLabel("Registration number"), BorderLayout.WEST);
    jpRegistrationnumber.add(jtfRegistrationnumber, BorderLayout.CENTER);
    // Panel jpSeating capacity for holding Seating capacity
    JPanel jpSeatingcapacity = new JPanel();
    jpSeatingcapacity.setLayout(new BorderLayout());
    jpSeatingcapacity.add(new JLabel("Seating capacity"), BorderLayout.WEST);
    jpSeatingcapacity.add(jtfSeatingcapacity, BorderLayout.CENTER);
         // Panel jpStart date of hire for holding start date of hire
    JPanel jpStartdateofhire = new JPanel();
    jpStartdateofhire.setLayout(new BorderLayout());
    jpStartdateofhire.add(new JLabel("Start date of hire"), BorderLayout.WEST);
    jpStartdateofhire.add(jtfStartdateofhire, BorderLayout.CENTER);
    // Panel jpDuration of hire for holding Duration of hire
    JPanel jpDurationofhire = new JPanel();
    jpDurationofhire.setLayout(new BorderLayout());
    jpDurationofhire.add(new JLabel("Duration of hire"), BorderLayout.WEST);
    jpDurationofhire.add(jtfDurationofhire, BorderLayout.CENTER);
    // Panel p2 for holding jpRegistration number and jpSeating capacity and start date of hire and duration of hire
    JPanel p2 = new JPanel();
    p2.setLayout(new BorderLayout());
    p2.add(jpRegistrationnumber, BorderLayout.WEST);
    p2.add(jpSeatingcapacity, BorderLayout.CENTER);
    p2.add(jpStartdateofhire, BorderLayout.CENTER);
    p2.add(jpDurationofhire, BorderLayout.CENTER);
    // Panel p3 for holding jtfManufacture and p2
    JPanel p3 = new JPanel();
    p3.setLayout(new BorderLayout());
    p3.add(jtfManufacture, BorderLayout.CENTER);
    p3.add(p2, BorderLayout.EAST);
    // Panel p4 for holding jtfModel, jtfEngine size, charge and mileage and p3
    JPanel p4 = new JPanel();
    p4.setLayout(new GridLayout(3, 1));
    p4.add(jtfModel);
    p4.add(jtfEnginesize);
    p4.add(jtfCharge);
    p4.add(jtfMileage);
    p4.add(p3);
    // Place p1 and p4 into customerPanel
    setLayout(new BorderLayout());
    add(p1, BorderLayout.WEST);
    add(p4, BorderLayout.CENTER);
    // Get customer information from the text fields
    public Customer getCustomer()
    return new Customer(jtfRegistrationnumber.getText().trim(),
                             jtfSeatingcapacity.getText().trim(),
                                  jtfStartdateofhire.getText().trim(),
                             jtfDurationofhire.getText().trim(),
                             jtfManufacture.getText().trim(),
                             jtfModel.getText().trim(),
                                  jtfEnginesize.getText().trim(),
                             jtfCharge.getText().trim(),
                             jtfMileage.getText().trim());
    // Set customer information on the text fields
    public void setCustomer(Customer s)
    jtfRegistrationnumber.setText(s.getRegistrationnumber());
    jtfSeatingcapacity.setText(s.getSeatingcapacity());
    jtfStartdateofhire.setText(s.getStartdateofhire());
    jtfDurationofhire.setText(s.getDurationofhire());
    jtfManufacture.setText(s.getManufacture());
    jtfModel.setText(s.getModel());
    jtfEnginesize.setText(s.getEnginesize());
    jtfCharge.setText(s.getCharge());
    jtfMileage.setText(s.getMileage());
    Could someone please help me and tell me what these two errors mean and how I could get rid of them

    Can some one take a look at this code and tell me how to get all my jlabels to line up alone side their jtf.
    Because it looks like this the picture in the attached file and this is the code for it:
    public customerPanel()
    // Set the panel with line border
    setBorder(new BevelBorder(BevelBorder.RAISED));
    // Panel p1 for holding labels Name, Street, and City
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(5, 1));
    p1.add(new JLabel("Registration Number:"));
    p1.add(new JLabel("Seating Capacity:"));
    p1.add(new JLabel("Engine Size:"));
    p1.add(new JLabel("Start date of hire"));
    p1.add(new JLabel("Duration of hire"));
    JPanel p2 = new JPanel();
    p2.setLayout(new GridLayout(5, 1));
    p2.add(jtfRegistrationnumber);
    p2.add(jtfSeatingcapacity);
    p2.add(jtfEnginesize);
    p2.add(jtfStartdateofhire);
    p2.add(jtfDurationofhire);
    //JPanel p3 = new JPanel();
    //p3.add(p1, BorderLayout.WEST);
    //p3.add(p2, BorderLayout.NORTH);
    JPanel p4 = new JPanel();
    p4.setLayout(new GridLayout(4, 1));
    p4.add(new JLabel("Manufacture:"));
    p4.add(new JLabel("Model:"));
    p4.add(new JLabel("Mileage:"));
    p4.add(new JLabel("Charge:"));
    JPanel p5 = new JPanel();
    p5.setLayout(new GridLayout(4, 1));
    p5.add(jtfManufacture);
    p5.add(jtfModel);
    p5.add(jtfMileage);
    p5.add(jtfCharge);
    // JPanel p6 = new JPanel();
    // p6.setLayout(new BorderLayout());
    // p6.add(p4, BorderLayout.SOUTH);
    // p6.add(p5, BorderLayout.EAST);
    // Place p1 and p4 into CustomerPanel
    setLayout(new BorderLayout());
    add(p1, BorderLayout.WEST);
    add(p2, BorderLayout.NORTH);
    add(p4, BorderLayout.SOUTH);
    add(p5, BorderLayout.EAST);
    So could someone please help me and correct my code so that each text lable is lined up next to its jtf java text field.

  • Please does anyone knows how to delete the "others" on the iphone becuase it take me a lot of spaace and i cant have anything i have 5 GB of othres coan some one help me please?

    please does anyone knows how to delete the "others" on the iphone becuase it take me a lot of spaace and i cant have anything i have 5 GB of othres coan some one help me please?

    If restoring using your backup didn't work, you'll have to save as much of your data as you can (import your photos to your computer, sync your contacts and other data with iCloud, email things like Notes and Voice Memos to yourself, sync with iTunes to transfer all your purchases, etc.) and then restore it as new without using your backup.

Maybe you are looking for

  • Cannot update iPod software even after setting automatic detection

    Hi, I've been trying to update the software on my 5th gen iPod but to no avail. I've recently bought the pod and just installed iTunes. It informed me that an update was available for the iPod but I can't get it! Everytime I click on Update in the Ve

  • US Social Security withholding rate for 2012

    Hi Guys, The US Social Security withholding rate for 2012 will change to 6.2% (from 4.2%) for the employee withholding.  Our Business would be running the first payroll for 2012 on 12/22/11.  The social security withholding change needs to be in the

  • Preview opens but toolbar is unresponsive

    Have an issue with preview.  I am able to open images with preview but the toolbar is completely unresponsive, i have no control of the functions such as zoom.  I am even unable to close using the red button, I have to either force quit or for some r

  • Data Server Connect Failed to MySQL

    Hi, I put the mysql-connector-java-5.0.8-bin.jar in the ODI drivers folder but the connection still fails. Is there something more to do? Should drivers for supported technologies be already included?? Thanks Fabio D'Alfonso

  • COA in 11g Weblogic?

    Hi In Oracle 10G App Server there was a COA tool for generating SSL certificates. Does Weblogic 11g have such a tool, if not what is a good alternative? Thanks Tony