Record is in sight, but select doesn't give all the data

Hello guys!
I have a very strange problem here, which I have already discussed for hours now. I can't find a logical explanation for the behavior.

I have a view composed of several paintings, including one via a database link. No problems at all so far!
A user just informed of a case where a specific record data are not displayed. Therefore, I checked the problem and discovered that the individual selection queries don't produce any result for that specific record. A query that returned a result! ;-(

Now I checked the view and it seems perfectly fine. When you select everything from this point of view where the id is that of the problem record, all columns are returned.

The record exists, the perspective seems to work and also updated (changed some values in a table that contains the view and the view updates immediately)-I have no idea how to solve this problem! Maybe you have an idea? First of all, I think that it is not necessary to view code view, I guess! It's long enough!

I'd appreciate your answers and advice!

Thousand thanks in advance!

Sebastian

Suppose you have the following data...

SQL> With test_data as
  2  (
  3  SELECT 11 int_qb_nr, 12 str_gebiet, 31 str_lrt_sub, 'GEH' test_col FROM Dual
  4  UNION ALL
  5  SELECT 11,12,31, 'DEF' FROM Dual
  6  UNION ALL
  7  SELECT 11,12,31, 'ABC' FROM Dual
  8  )
  9  -- "end of test data "
 10  SELECT * FROM test_data
 11  /

 INT_QB_NR STR_GEBIET STR_LRT_SUB TES
---------- ---------- ----------- ---
        11         12          31 GEH
        11         12          31 DEF
        11         12          31 ABC  -- " I need this data to be output "

3 rows selected.

Your query (Simplified)

SQL> With test_data as
  2  (
  3  SELECT 11 int_qb_nr, 12 str_gebiet, 31 str_lrt_sub, 'GEH' test_col FROM Dual
  4  UNION ALL
  5  SELECT 11,12,31, 'DEF' FROM Dual
  6  UNION ALL
  7  SELECT 11,12,31, 'ABC' FROM Dual
  8  )
  9  -- "end of test data "
 10  SELECT * FROM
 11  (SELECT int_qb_nr, str_gebiet, str_lrt_sub, test_col,
 12         ROW_NUMBER ()
 13         OVER (PARTITION BY int_qb_nr, str_gebiet, str_lrt_sub ORDER BY" int_qb_nr, "
 14        "  str_gebiet, str_lrt_sub " ) rn
 15    FROM test_data)
 16    where rn = 1
 17  /

 INT_QB_NR STR_GEBIET STR_LRT_SUB TES         RN
---------- ---------- ----------- --- ----------
        11         12          31 GEH          1

1 row selected.

-- " Included Double quotes to highlight  "

Oracle may not assign the same number of line for several data set that occurs for the group you mentioned in the PARTITION BY Clause. (int_qb_nr, str_gebiet, str_lrt_sub). Find a way to extend your ORDER BY Clause in the ROW_NUMBER function.

Something like the following:

SQL> With test_data as
  2  (
  3  SELECT 11 int_qb_nr, 12 str_gebiet, 31 str_lrt_sub, 'GEH' test_col FROM Dual
  4  UNION ALL
  5  SELECT 11,12,31, 'DEF' FROM Dual
  6  UNION ALL
  7  SELECT 11,12,31, 'ABC' FROM Dual
  8  )
  9  -- "end of test data "
 10  SELECT * FROM
 11  (SELECT int_qb_nr, str_gebiet, str_lrt_sub, test_col,
 12         ROW_NUMBER ()
 13         OVER (PARTITION BY int_qb_nr, str_gebiet, str_lrt_sub ORDER BY "  int_qb_nr, "
 14       "   str_gebiet, str_lrt_sub, test_col " ) rn
 15    FROM test_data)
 16    where rn = 1
 17  /

 INT_QB_NR STR_GEBIET STR_LRT_SUB TES         RN
---------- ---------- ----------- --- ----------
        11         12          31 ABC          1

1 row selected.

-- " Included Double quotes to highlight "

I hope this helps.

Kind regards
JO

Tags: Database

Similar Questions

  • GarageBand doesn't give me the ability to burn a cd once a project is completed. It is listed in the drop down menu, but it won't work.

    GarageBand doesn't give me the ability to burn a cd. But it is on the list of options.

    Y at - it an update to provide this option?

    Is your Mac has a CD player?  The option is grayed out, until you have inserted a blank CD in your optical drive.  But it is clickable.

  • I am buying a productivity app that I tested and really, but when I fill in all the billing information, I can't continue because I don't live in the United States.

    I am buying a productivity app that I tested and really, but when I fill in all the billing information, I can't continue because I don't live in the United States.  How can I change this, so that I can enter my Canadian info?

    Original title: App store pirchase

    Hi, Rosemary,

    Have you tried changing the location in the control panel?

    Method 1:
    If you have not tried to change the location in the Control Panel, try the following steps:

    a. open the Run window by pressing on Windows Key + R.

    b. open the Control Panel by typing the command in the run window.

    c. now click on region, then change location.

    d. on the tab location in the drop-down list select Canada location and then click OK to apply the changes.

    Method 2:

    Reset the Windows Store Cache.
    a. press Windows + R on your keyboard to open the Run dialog box.

    b. type WSReset.exe, and then click/click on OK.

    c. the information store now open and indicate the following: the cache for the store has been authorized. You can now browse the store for apps.

    Please post with the State of the question.

  • I am new to Adobe, I created an Excel file that I convert the file to PDF, but the converted PDF file shows all the data, missing on the right side of the page

    I am new to Adobe, I created an Excel file that I convert the file to PDF, but the converted PDF file shows all the data, missing on the right side of the page

    Hi Tony,.

    In Excel, click on the Acrobat toolbar, and then click Preferences.

    Now select the option 'Fit the worksheet to a single page' and click ok

    Now, try to convert and check.

    Kind regards

    Rave

  • Select several entire rows in the data grid does not work

    SQL Dev 2.1.1.64 on Windows XP.
    I can select an entire row in the data grid (or the result of the query) by clicking on the left with the line number column. I expect to select several lines by clicking and dragging, but it won't work. He worked in v1.5.
    Thank you
    MVr.

    Still 3 other ways I see:
    * Click the line number of the first row, then shift + click on the line number of the last row
    * Click on the first cell in the first row, and then drag to the last cell of the last row
    * Click the line number of the second line, and then click the first cell in the first row and drag until the last line (most like what you want)

    Have fun
    K.

  • I use 5s iPhone and upgrade to iOS 9.3.1 but he can't get all the features...

    I use 5s iPhone and upgrade to iOS 9.3.1 but he can't get all the features...

    What features Miss do you?

  • How can I import all the data of rockmelt Firefox which I like more, but I can't find a data option rockmelt 2 2 firefox as import switch and insert bookmarks in firefox?

    I want to import data like passwords and histroy and bookmarks and all of rockmelt Firefox I tried to go to import from other browsers, but I found no rockmelt, and also it will not contain password and this thing so please if you can tell me what is the best way to do this thing I need this quick please.

    To all of you who have this problem I solved it with myself.

    Just go to google chrome and download it and then go to C:\Users\username\AppData\Local\RockMelt and then copy all the data from the user file and then go to C:\Users\TOSHIBA\AppData\Local\Google\Chrome and delete the data of the user of the file and paste the one you copied everythign now in base is in chrome then forefox do synchronize on the other browser then choose google chrome!

    Note! If you can't find the AppData file it's hidden setting of files and folders and check the box says show all hidden files.

    Good luck!

  • wiping my iPhone 6 remotely but keeping all the data in iCloud?

    SO, if I wipe all the data from my iPhone 6 will be all that data while remaining on my iCloud?

    IM sending it off to get fixed / replaced to my insurance company, but do not want to to have access to one of my photos, messages, etc.

    Help, please

    Thank you

    IF you clear the device, (which you must do in your case), all your data remains safely in iCloud, assuming that you back up one more time before deleting.

  • I followed the instructions to set up the home between my Mac and iPhone sharing 6, but I don't understand all the music on my iPhone

    I followed the instructions to set up the home between my Mac and iPhone sharing 6, but I don't understand all the music on my iPhone

    I have confirmed:

    (1) devices are on the same network

    (2) I am connected to my AppleID with the same account

    3) are my OS up to date (Mac 10.11.2) (9.2 iPhone)
    (3) I closed iTunes and the App has reopened

    (4) I turned my iPhone off and rebooted (and confirms the foregoing)

    On my iPhone, I see in my music library, different ' kind' listed (e.g., classic, recently added, music of the 1990s, etc.) but they are all empty.

    Im hoping to see the music I have in iTunes on my Mac and play these songs on my iPhone.

    IM thinking, music that would be shared from my computer to my phone will be on the cloud?

    (I did not all default to add my music in the cloud at the moment).

    Post edited by: abbeyinor

    Did you go into settings > music on your phone and sign in home sharing?

    See you soon,.

    GB

  • While the loop records all the data

    Hello

    I have a LabView program containing two while loops. The first is used to increment a frequency on our machine and the second, which is located in the first, used to take a certain number of points of data to this frequency. After taking these data points, the frequency is supposed to rise again. This happens for a set number of times.

    The problem I have is that the data file as the data points in the second then the loop are supposed to be written in does not display do not all the data points in the program should have taken. For example, if we want the first loop increment of 10 times and the second to take 5 data points every time, we expect to see 50 data points in our files. But we see only 10. The watch file always only an amount of data points equal to the first loop iterations. If we cut our data at that time.

    Someone has an idea what could be our problem?


  • Should I initialize a New (New to this computer, but it's a backup with the DATA disk) HARD drive?

    I have an internal backup drive that I used for a computer that crashed.   Hard drive that had the operating system gone wrong. I'm sure that the backup drive (no operating system, only the Acronis backup data) is ok.  I took, put it in a box of hard drive and plugged on my other computer to get all the data out of it. It is recognized in but device manager not MY computer.   Information have read so far wants choose me to go to right click on my computer, Manage, and chose the disk management.  Then he wants me to initialize the disk. The information said once the disk initialized, I should be able to access all data on the disk.  I do? I don't want to erase all data on the disk. I prefer to take it to a PRO for $100 if there is even a small chance I could damage or erase the data on the disc. Please notify.

    Do not initialize the disk.  That would erase all data.  It is possible that the hard disk enclosure does not work right, causing Vista to see the player correctly as not initialized.

    Did you create Acronis Secure Zone on the drive for backups?  If so, you will need to use the same program from Acronis to access. It would be interesting to boot from the Acronis recovery disc and see if it can read backups. Boulder computer Maven
    Most Microsoft Valuable Professional

  • Move the user off the system disk folders? Envy of all the data on E, so need to move directories user E. not individually, but in the world. If all new users, I create will have their user and docs folder on E.

    Got a new laptop with win 7 home premium pre-installed. Using the language of win 7... I have decreased the volume of HDD to 55 GB.  Made new simple volumes. I want all the data personal on E, so need to move user directories to E. No individually change the location tab on dozens of files, but in the world. If all new users, I create will have their user and docs folder on E from the gitgo.

    Under XP, I could just change the 'My Documents' link on each desktop, go to the e. * instead of c *. *, but with win7?

    As a Windows Home Server and most wise OS facilities, the system drive is isolated and a drive of 2 or 3 for everything else.  Get a problem? Just restore the system drive.

    You need the answer?

    Thank you
    Tom
    PS Microsoft: This backup/do imaging software, why don't we name the image so many can all be stored on easily in one place without having to go and rename it or move them elsewhere?

    Hello TomZork,

    Thanks for posting on the Microsoft answers Forum.

    In another forum, I found the instructions to move folders of users to another drive.
    You can follow the post here. This is attributed to Jimmie R. Houts.

    Article:
    You can move the entire folder C:\Users to another drive quite easily once windows is installed:

    1. Boot from the installation media and access the command prompt (I think you need to click on fix everything first)
    2. Use Robocopy to copy C:\Users to D:\Users: robocopy c:\Users d:\Users /mir /xj
      a. /mir says robocopy to mirror directories, this will copy all files and permissions
      b. /xj is very important, it means robocopy does not follow the points of junction. If you forget this, you will have a lot of trouble.
    3. Make sure that the files copied successfully
    4. Delete c:\Users
    5. Create the junction pointing d:\Users: mklink /d c:\Users d:\Users

    That's all. I used this process for Vista RTM with no problems.

    Here's an article that explains as well. Just use robocopy instead of xcopy as it does in the article in order to avoid possible ntfs permissions problems.

    Update: because I discovered the hard way, I thought I would mention also that if you plan on switching "Program Data", or "Program Files" with this method, you will be disappointed to know that everything works as expected, but the windows updates will install is no longer. I don't know if this problem has been fixed in Win 7.

    With the foregoing, it is not a Microsoft forum or Web site so you will have to use at your own risk. I also recommend to do a system restore point before making any changes in directories that you can then go back to a previous state.

    Please reply back and let us know if these suggestions help you to solve your problem, then to benefit others.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Window residential group doesn't gives me the ability to display the homegroup password. I have

    Window residential group doesn't gives me the ability to display the homegroup password.  I cannot join the homegroup on my PC to change the password.  What can I do here?

    Thank you.

    You must display the password on a computer that is already joined.

  • I want to change all the adobe cloud programming language (I now use Korean but I want to change all the English program) is my computer OS

    I want to change all the adobe cloud programming language (I now use Korean but I want to change all the English program) is my computer OS

    Hi Parky22317382,

    Please follow the steps mentioned here https://helpx.adobe.com/creative-cloud/help/change-install-language.html

    Let us know if it works!

  • I bought the pack, but it does not give me the option to download the full version. Just the thr trial

    I bought the pack, but it does not give me the option to download the full version. Just the trial thr. Why?

    If these solutions do not work, please contact our staff of support directly by following this link: contact Adobe customer service.

    For more information, please visit: FAQ: how to contact Adobe for support?

Maybe you are looking for

  • I'm not getting the emails to "boxed".

    All I get when I open Thunderbird is a screen but not Inbox or email downloads new or old.

  • MacBook Pro Repair Extension Program

    I have a Mac - book Pro in early 2011, who developed problems of video display for more than a year. A technician told me that it is the matter of the GPU, and I needed to replace the card of 800-$1000. Now I learned that Apple offer outreach program

  • Creating the file must already exist

    The problem that I am struggling with, is that when you create an Excel file, the user is prompted for the file name. They can search for the file by clicking the folder icon, but once they arrive at the directory they want, if they type in a file th

  • error code: 0xac70013 using windows live messenger

    Try to use the function of appeal of windows live messenger. I can well communicate by typing everything. When I try to call... nothing, no noise, no ring, does not appear at the other end either. When someone tries to call me, no noise, no ring, doe

  • HELP WITH MICROSOFT UPDATE PROBLEMS

    update of installed Microsoft and now the computer will not start unless I start in safe mode. Tried to uninstall update and it will not uninstall as well, I tried to restore to past date this did not help and have used the repair system and it is un