Record displaying twice in View

Hai all,
I created a view like this :
create view xxail_task as select
distinct(peo.EMPLOYEE_NUMBER) "Employee_Number"
,peo.FULL_NAME "Employee_Name"
, pac.SEGMENT1 "BADGE"
, pac.SEGMENT2 "Status"
, pac.SEGMENT3 "Remarks"
, pac.SEGMENT4 "Remarks1"
, pac.SEGMENT5 "Remarks2"
, pac.SEGMENT6 "Remarks3"
, to_date(substr(pac.SEGMENT7,0,10),'yyyy-mm-dd') "I_Expiry_Date"
, to_date(substr(pac.SEGMENT8,0,10),'yyyy-mm-dd') "Si_Expiry_Date"
, to_date(substr(pac.SEGMENT10,0,10),'yyyy-mm-dd') "P_Expiry_Date"
, to_date(substr(pac.SEGMENT11,0,10),'yyyy-mm-dd') "J_Expiry_Date"
, to_date(substr(pac.SEGMENT12,0,10),'yyyy-mm-dd') "P_Expiry_Date"
, to_date(substr(pac.SEGMENT13,0,10),'yyyy-mm-dd') "H_Expiry_Date"
, to_date(substr(pac.SEGMENT14,0,10),'yyyy-mm-dd') "A_Expiry_Date"
, to_date(substr(pac.SEGMENT15,0,10),'yyyy-mm-dd') "KExpiry_Date"
to_date(substr(pac.SEGMENT16,0,10),'yyyy-mm-dd') "J2-South_Expiry_Date"
, to_date(substr(pac.SEGMENT17,0,10),'yyyy-mm-dd') "J2-North_Expiry_Date"
, pac.SEGMENT18 "EMP_On_Vacation"
, to_date(substr(pac.SEGMENT19,0,10),'yyyy-mm-dd') "Vacation_Start_Date"
, to_date(substr(pac.SEGMENT20,0,10),'yyyy-mm-dd') "Vacation_End_Date"
from per_analysis_criteria pac
,per_all_people_f peo
,per_person_analyses ppa
where pac.id_flex_num =50336
aND ppa.ANALYSIS_CRITERIA_ID = pac.ANALYSIS_CRITERIA_ID
AND peo.PERSON_ID = ppa.PERSON_ID
when I give select * from xxail_task..
records are coming twice.. once with empno and empname and other record with empname alone..
anyidea where I went wrong ?
Thanks
Yusuf

Yusuf,
it looks like you forgot to include a datetrack condition in your query. Just add something like this:
and TRUNC(SYSDATE) between peo.effective_start_date and peo.effective_end_date
Use SYSDATE if you want to have the current situation, another date otherwise.
Remember for the future that all the tables and views that end in "_F" require a datetrack condition when querying them, otherwise you will have multiple rows.
If you have also rows without employee number, then it means that you may need also a filter on person types (applicants and contingent workers usually do not have an employee number).
Paolo

Similar Messages

  • CR2008SP2, records displayed twice

    Hi,
    I have a winforms app that was using CR for VS2008.  I've decided to use CR2008 on it instead.  I installed SP2.
    All is well except that two of my reports display every record in them twice.
    The records are coming from a runtime dataset.  I know the records aren't there twice; they only display once in grid hooked to the same datasource, plus they were fine on the reports before this change.  There is no join involved; it's a single table.
    I'm at a loss and have a client with a tight deadline.  Any help with a solution or even a steer towards troubleshooting appreciated.  If I can't solve soon, I'll have to go back to the previous version.
    One "oddity" that could possibly be related is that the database wizard displays the message about having links with multiple starting points when I exit that dialog despite the fact that I have no links at all.
    A new report pointing to the underlying MDB worked fine.  I'm about to try the new report using the runtime dataset and the old report using the MDB...
    Some additional info.  A brand new report pointing to the same datasource worked fine, so the trouble has to be in my existing .rpt files.  Unfortunately, they're very complex, and recreating them from scratch is not really an option.  Any ideas for repairing/making compatible with 2008?
    Thanks.
    -jpr
    Edited by: johnrly on Aug 27, 2009 8:39 PM

    I actually have 4 tables in my data set, and fields from all of them are used in different places.
    But, there aren't any links and shouldn't be.
    For example, some labels are chosen from a table using a parameter for the query.
    I do think that maybe the designer is confused about links even though it doesn't show any and the "clear links" button is grayed out.  I still get that message about having multiple starting points upon exiting that dialog, which doesn't make sense.
    Thanks for the suggestion.
    John

  • Limited records displayed in a view

    Hello,
    I'm trying to see the table contents of a view in DB connect. It only returns back 20 records. Is there any way to change it to show all the records that are present in the view. I'm trying to figure out some missing data in my ODS and CUBE.
    When I see the view in SQL, it does show that the records are present and the total number of records as 100 (just a arbitary figure). When i check my ODS, it does show that 100 records were transferred, but when i do a check for some specific data, it fails to show it and i cannot get it when i run my query.
    Any thoughts?
    Sam

    Arun,
    I changed one of the data fields to Key fields in the ODS. I emptied the ODS and Cube. I then ran a full load process chain on the ODS and cube. This is what I'm getting:
    ODS:
    transferred records: 1326069 ( = to the number of records in SQL)
    added records: 1325357 (712 records less)
    cube:
    transferred: 1325357
    added: 805738
    I'm running the query on my Cube. How do i find out the reason for just 805738 records being added instead of 1326069?
    Regards,
    Sam

  • Stacked Canvas and No. of records display on the block?

    Any coding to re-size the "Stacked" canvas and no.of records displays on the block?
    Please advice,
    Amy

    u can set the view port and Width and height of the Stack canvas at runtime but not No of Records display....
    set_view_property .....VIEW_SIZE or Width / Height
    for canvas size use SET_CANVAS_PROPERTY
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Forms Error Message displayed twice

    But on clicking the save button to commit the changes in the form, the validation trigger fires and the error message is displayed twice. This is once for the item and at the other at the form level.
    The error message has to be displayed only once i.e. while submitting the form by clicking the save button. Please suggest.
    Thanks in advance.
    Edited by: sri_menon on Sep 24, 2008 8:30 AM

    Do you alter the data in your Character Item through a program unit? Since you only have a WVI trigger at the item level, something in the form is causing the status of the item to become "Dirty" or "Invalid" after the WVI trigger fires. Therefore, Forms fires the WVI trigger again. Something else you can try is to turn "Debug Messages" on (go to Preferences => Runtime tab => check Debug Messages). This will display an Alert for each trigger that fires during Runtime. Then you can record all of the triggers that fire after the WVI trigger fires the first time. Once you know which trigger fire between the first execution of the WVI and the second execution of WVI then you can put break points in these triggers and then run the Form with the Debugger and see what it happening during the validate cycle. If you are using Form6i, the debugger is very easy to use. If you on Form 9 or greater, there is some setup that must be done to debug the web deployed form, but it well worth the setup to be able to debug your form.
    Hope this helps.
    Craig...
    Edited by: CraigB on Sep 25, 2008 8:18 AM

  • Quota is displayed twice in 2006 for the same date

    When iam entering Leave Quota Through PA30 , PA61 ,PT_QTA00
    for a particular Employee it will display the Quota Twice
    Is there any way we can stop this ?
    is there any way we can Put cap that double Entry for the same date ?
    Quota is deducting Normally but it is Displaying Twice
    Plz Help Experts

    Thank You So much
    i changed in the info type
    SPRO>> Time Management>> Time Data Recording and Administration>> Specify System Reaction to Overlapping Time Infotypes
    Infotype 2006
    Time Cstr. Class  01
    Reaction  Indicator   : select according to The  Requirement 
    Right now Reaction  Indicator  is set to W
    Make the Reaction Indicator to E and save the Entry
    It worked for now  
    one thing iam not sure how does  V_T554Y table work
    Plz let me know
    Reaction I ndicator
    This indicator determines how the system reacts when you enter new infotype records which overlap with existing ones.
    The specifications are as follows:
    A - The old record is delimited, all collisions are displayed.
    E - The system does not allow you to create the new record, and
        displays all collisions.
    W - You can create the new record, but the old record   remains unchanged. All collisions are displayed.
    N - As for W, but collisions are not displayed.
    Edited by: jkhose on Jan 25, 2012 1:23 AM

  • Mail messages sometimes displaying twice

    Lately, Mail sometimes displays new messages that have just arrived twice. There don't seem to be 2 actual copies of the message in the inbox, just the same messages displayed twice. It's kind of an odd behavior, really. If a message is clicked on and viewed in the preview window, the duplicate displayed doesn't change from unread to read. However, if a message is deleted both lines displaying the message go away and only one appears in the trash.
    This doesn't happen all of the time, just sometimes. Shutting down mail and reopening it gets rid of the duplicated message displays, but then some other time checking mail it will happen again.
    Anybody have any ideas on how to make this go away permanently? Thanks in advance.
    iMac G3 450 & eMac 700   Mac OS X (10.4.9)  

    You’re welcome.
    I don’t know what’s going on here. It looks as if the the account had been set up twice in Mail > Preferences > Accounts, even though you say it appears there only once...
    Try re-creating the file where the account settings are stored:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the Mail folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    3. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem).
    4. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    5. You’ll have to re-configure most of your settings in Mail > Preferences. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    6. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • MRP group field can not be displayed in MRP1 view

    Hi all
    MRP group field can not be displayed in MRP1 view
    please guide me
    thx

    Hi avinash
    consulte your MM guy material master screen group and selection is done by MM guys in general. There they can do setting for this.
    Also why you need MRP group. If it is maintained. It should be done properly otherwise it will create lot of problems.
    Regards
    J . Saravan

  • How to run report to show all the records in the form view of Siebel 8.1.1

    Hi.
    My template has "for-each" section and there are more than 1 records in the form view. But when generating report, there is only one record in the report. Can anyone offers help? Thanks a lot.
    Edited by: user11948585 on 2009-11-18 下午6:08

    Hi ,
    Could you generate a sample XML from BIP Administrator for the IO on which report is based , and apply it to RTF and see if you are getting the desired values.
    Thanks!!

  • Display a schematic view with icons (jpg, gif, etc).

    I'm trying to display a schematic view and use icons to represent the difference objects in this schematic view.
    For example: to show a 3 phones conference call. The description will be the phone number (or person's name) and the icon will be the person's face or company logo.
    I have tried to use JLabel, and JButton but then I have to use a Layout. Without a layout the are one-on-top of another.
    I tried to use setLocation and it doesn't look to have any effect on the location of JLabel or JButton.
    The following is my code:
    import java.awt.Container;
    import java.awt.Insets;
    import java.awt.Point;
    import java.awt.Dimension;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    * ShowIcons.java is a 1.4 application that requires no other files.
    * @author Benny Regev
    * @version 1.0.00.0000
    public class ShowIcons {
        public static void addComponentsToPane(Container pane) {
            ImageIcon iconHE, iconCPE, iconNode, iconDemo;
            Point point1, point2, point3;
            pane.setLayout(null);
            iconHE = createImageIcon(NODE_HE_ICON);
            iconNode = createImageIcon(NODE_ICON);
            iconCPE = createImageIcon(NODE_CPE_ICON);
            iconDemo = createImageIcon(NODE_CPE_ICON);
            JButton b1 = new JButton(HE_TEXT, iconHE);
            JButton b2 = new JButton(NODE_TEXT, iconNode);
            JButton b3 = new JButton(CPE_TEXT, iconCPE);
            point1 = new Point(0, 500);
            point2 = new Point(500, 0);
            point3 = new Point(500, 500);
            b1.setLocation( point1 );
            b2.setLocation( point2 );
            b3.setLocation( point3 );
            pane.add(b3);
            pane.add(b2);
            pane.add(b1);
    //        pane.add(iconDemo);
            Insets insets = pane.getInsets();
            Dimension size = b1.getPreferredSize();
            b1.setBounds(25 + insets.left, 5 + insets.top,
                         size.width, size.height);
            size = b2.getPreferredSize();
            b2.setBounds(55 + insets.left, 40 + insets.top,
                         size.width, size.height);
            size = b3.getPreferredSize();
            b3.setBounds(150 + insets.left, 15 + insets.top,
                         size.width + 50, size.height + 20);
        /** Returns an ImageIcon, or null if the path was invalid. */
        protected static ImageIcon createImageIcon(String path) {
            java.net.URL imageURL = ShowIcons.class.getResource(path);
            if (imageURL == null) {
                System.err.println("Resource not found: "
                                   + path);
                return null;
            } else {
                return new ImageIcon(imageURL);
        }   //  End of Method protected static ImageIcon createImageIcon(String)
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("AbsoluteLayoutDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Set up the content pane.
            addComponentsToPane(frame.getContentPane());
            //Size and display the window.
            Insets insets = frame.getInsets();
            frame.setSize(300 + insets.left + insets.right,
                          125 + insets.top + insets.bottom);
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        public static final String NODE_HE_ICON = "images/shop_icon_esd_110.gif";
        public static final String NODE_CPE_ICON = "images/Default_feature1.gif";
        public static final String NODE_ICON = "images/icondesktop.gif";
        public static final String HE_TEXT = "Headent";
        public static final String CPE_TEXT = "CPE";
        public static final String NODE_TEXT = "10.0.0.10";
    }Anyone has an idea??

    Hi,
    This might help
    http://www.techonthenet.com/oracle/errors/ora01446.php
    Regards,
    Jari

  • Does anyone know if it is possible to change the display in week view to show 24 hours per day for those of us that work irregular hours

    Does anyone know if it is possible to change the display in week view to show all 24 hours per day for those of us that work irregular hours.
    Also is it possible to have all of the 'all day' entries showing, not just 3.5 of them.
    The app Week Cal HD was the perfect calendar until Apple removed it so could they please offer the same facilities that it offered.

    Does anyone know if it is possible to change the display in week view to show all 24 hours per day for those of us that work irregular hours.
    Also is it possible to have all of the 'all day' entries showing, not just 3.5 of them.
    The app Week Cal HD was the perfect calendar until Apple removed it so could they please offer the same facilities that it offered.

  • Change number of record displayed for a single item alone

    Hi,
    I have a single data block with few items. Is it possible to make one item in the block as non-database item and make the display of record in the item alone to show multiple lines.
    i.e. All other items in the Data block shows single record, whereas this particular item should shows 10 records.
    Is this achievable?
    Or should i have to put that item in a separate data block and choose the data block property to "Number of records displayed" as 10?
    Thanks,
    Yuvaraaj.

    983448 wrote:
    Hi,
    I have a single data block with few items. Is it possible to make one item in the block as non-database item and make the display of record in the item alone to show multiple lines.
    i.e. All other items in the Data block shows single record, whereas this particular item should shows 10 records.Yes you can. But i will say re-check your design.
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • Multiple (not full) day events displaying in monthly view

    If I have an event that starts on 8:00 AM on Tuesday, and ends on 5:00 PM on Wednesday, It won't display in monthly view on Wednesday in iCal. It looks as though I have nothing scheduled on Wednesday.
    Is this "feature" something that Apple is working to eliminate?

    Ramone4130,
    The first and easiest troubleshooting step involves replacing/refreshing the com.apple.iCal.plist file.
    Quit iCal and find the com.apple.iCal.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder. Drag the file to your Desktop, log out/in or restart and check iCal for normal behavior.
    ;~)

  • Can't display in Week View

    I just can't get iCal to display in week view (which is how I always use it). If I click on day view or month view the calendar window appears, but as soon as I click week view it disappears. I've tried deleting iCal and reinstalling the package from the OS X DVD. I've also tried deleting Library/Application Support/iCal. Any ideas?

    One possible issue is that the preferences have become corrupted. Try to throw out the plist for the calendars... found in your user home > library > preferences.
    Try trashing the com.apple.iCal.plist.
    Ted

  • Items to display in list view web part not showing the items setup

    Hi, I have the following issue. I have a list view web part, but the web part is showing more items that the ones setup in the: Number of items to display in list view web part for this view.
    It is because that works when using datasheet view and not a normal view? Is there any technical documentation from Microsoft supporting this?

    thank you for your answer. It is interesting that the mobile view with the items to show in the mobile view doesn't work in the webpart, but it works when you are using datasheet view, but if you uncheck to activate the mobile view, then, the webpart doesn't
    show information, so, it works partially because one part works and not the other.

Maybe you are looking for

  • Html is not working properly

    i was trying to work on texteditor to code a simple html page but its not working properly like the shows only two color on the background that are green and black i dont know whats the issue but it use to work fine in mountain lion i have even tried

  • Target Disk Mode on new MacBook Air - where to find Thunderbolt to Firewire cable?

    I use a MacPro desktop with a RAID set-up at home, and will use the new MacBook Air on the road. I need to use Target Disk Mode when I return home to sync my Macs. The MacPro only has Firewire 400/800; the new Air only Thunderbolt. Does anyone know h

  • How to identify whether a multiline container is empty or not in Workflow?

    Hi Experts, Does any1 know how to identify whether a multiline container is empty or not in a workflow? Thanks. Points wil be rewarded. Vincent

  • Derivation through "Move" in COPA

    Hi Experts Iam trying to derive relationships to avoid "unassigned data" in COPA. I have derivation between customer and salesman, sales office but this is not automatic, at the time of customer creation, the derivation rule has to be maintained in t

  • DMS File Upload of Any Extension and DMS File View

    Hi, I want to upload files in DMS and I have written FM for that. It's working fine with txt files but if I upload image file or pdf files then at the time of view only text files shows. In case of PDF File is corrupt message comes and In case of Ima