Need help query view with the 'Level' column name

Hello world

I use Oracle DB 10 g

I have this request
SELECT  count(per_id) 
FROM    XXITS_EMP_MSTR_V
WHERE   per_id = 213214 
AND     Level='Technical Staff / Officer'
XXITS_EMP_MSTR_V is a view created by someone else.

I get the error "ORA-01788: CONNECT BY clause in this query block" for the the above statement.
Is it possible that I can always get the result without changing the view?

Any help is appreciated...

Thank you
Elmer

Elmer says:
Hello world

I use Oracle DB 10 g

I have this request

SELECT  count(per_id)
FROM    XXITS_EMP_MSTR_V
WHERE   per_id = 213214
AND     Level='Technical Staff / Officer'

Place the level with quotes

AND "Level" = 'Technical Staff / Officer'

Make sure that the case is used correctly when using double quotes.

Tags: Database

Similar Questions

  • How to create Table View with even a column name but another Table?

    Hi all

    I have the problem to create a tableview with the same column name, but in the other table.

    Table I: -.

    Table - PAC051MPROFORMA

    Column - MNR, visitid

    Table - PAC051TPROFORMA
    Column - MNR, visitid

    Table - PAC052MTRANSBILL
    Column - MNR, visitid

    Then, I want to create a table for this table. It comes to my SQL

    Pacviewproforma CREATE VIEW (MNR, visitid, MNR, visitid, MNR, visitid)

    Like some PAC051MPROFORMA.mrn, PAC051MPROFORMA.visitid, PAC051TPROFORMA.mrn, PAC051TPROFORMA.visitid, PAC052MTRANSBILL.mrn, PAC052MTRANSBILL.visitid

    where

    * (a.PAC051MPROFORMA.mrn = PAC051TPROFORMA.mrn) *.
    and
    * (a.PAC051TPROFORMA.mrn = PAC052TRANSBILL.mrn) *.

    SQL return this error ORA-00957 =: duplicate column name

    Can I change this SQL for

    Pacviewproforma CREATE VIEW (MNR, visitid)

    Like some PAC051MPROFORMA.mrn, PAC051MPROFORMA.visitid, PAC051TPROFORMA.mrn, PAC051TPROFORMA.visitid, PAC052MTRANSBILL.mrn, PAC052MTRANSBILL.visitid

    where

    * (a.PAC051MPROFORMA.mrn = PAC051TPROFORMA.mrn) *.
    and
    * (a.PAC051TPROFORMA.mrn = PAC052TRANSBILL.mrn) *.
    This time this error return = ORA-01730: number of column names specified invalid

    What should I do?

    Thank you...

    Hello

    SQL> CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
     10  where
     11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
     12  and
     13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
                                             *
    ERROR at line 1:
    ORA-00957: duplicate column name
    

    Please give different names to each column.

    Something like that...

    SQL> CREATE OR REPLACE VIEW pacviewproforma (MPROFORMA_mrn,MPROFORMA_visitid,TPROFORMA_mrn,TPROFORMA
    _visitid,MTRANSBILL_mrn,MTRANSBILL_visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
     10  where
     11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
     12  and
     13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    
    View created.
    
    SQL> DESC  pacviewproforma;
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MPROFORMA_MRN                                      NUMBER
     MPROFORMA_VISITID                                  NUMBER
     TPROFORMA_MRN                                      NUMBER
     TPROFORMA_VISITID                                  NUMBER
     MTRANSBILL_MRN                                     NUMBER
     MTRANSBILL_VISITID                                 NUMBER
    

    ORA-01730: number of column names specified invalid

    The list of the nmae column you specified for the CREATE VIEW must correspond with the list of SELECTION in the view.

    Twinkle

  • Need help - Cisco ASA with the power of fire

    Hello

    Currently, we use asa 5510 without function of firepower. Our goal is to publish web servers and microsoft lync with reverse proxy method. control internet traffic, apply extensions individual file not to download, management of bandwidth etc.

    Is it possible if we add firepower on asa 5510... Please guide me... Thank you

    Power of fire must be installed on the new series X of the SAA.  5512 x, x 5515, 5525 x, etc.

    If you have a 5510, you probably want a 5512 x with an SSD.  Cisco has beams of firepower include the ASAx with SSD and the license of firepower.

    Adds that you must also Firesight management software, and there is a license bundle of 2 camera for under $ 500 that you can install on VMWare.

    Firepower is not reverse proxy, it's transparent online packages, analysis and filtering by URL / Application / and threat mitigation.

    If you want a reverse proxy, you should look into Microsoft ISA server or a Proxy Server reverse dedicated Web.  Cisco gave its product Web Director, who has done this function.

    You can host Web sites behind a firewall of ASA without proxy reverse.  And the ASA has an inspection of the request for HTTP traffic, responsible for watching HTTP requests.  The firepower to the ASA system also has specific signatures that monitor traffic to the web servers and prevent specific vulnerabilities that are known on those servers, so if that is what you want the Reverse Proxy for, then the power of fire module would probably cover your needs.

    Don't forget that until the next quarter firepower system has no decryption on the box, and you might want to wait that the feature is released and put in place, so that you know what size firewall you need protect your network with the SSL decryption.  I believe that the ASA5512x is testing at 75 Mbps stream decrypted via the fire power module, which is about half of what was before CX, then you could use the sizing numbers CX and extrapolate until Cisco releases official decryption numbers.

  • Need help get data with the most recent date of entry into

    Hey guys;

    I need help with fine tuning a query to get the one with the most recent implementation.

    Here's my current query:

    /**********************************************
    Select sge.seal_group_id,
    SGE.equipment_id,
    SGE.effective_date
    of seal_group_equipment EMS.
    seal_group sg
    where equipment_id = 48801
    AND EMS. SEAL_GROUP_ID = SG. SEAL_GROUP_ID
    and sge.end_date is null
    Group of sge.equipment_id, sge.seal_group_id, sge.effective_date
    After having sge.effective_date = max (sge.effective_date)

    ******************************************************/

    Which produces the following results:
    SEAL_GROUP_ID - EQUIPMENT_ID - EFFECTIVE_DATE
    25-48801 - 01/01/1993-00: 00:00
    11730-48801 - 22/08/2003 08:42:11


    What I really need, is to show only the line with the most recent date of entry into
    I hope someone can help
    Thank you

    MAX will not work because the SEAL_GROUP_ID could depart. I would say analytical:

    select seal_group_id,
    equipment_id,
    effective_date
    from (
    select sge.seal_group_id,
    sge.equipment_id,
    sge.effective_date,
    RANK() over (partition by equipment_id order by effective_date desc) r
    from seal_group_equipment sge,
    seal_group sg
    where equipment_id = 48801
    AND SGE.SEAL_GROUP_ID = SG.SEAL_GROUP_ID
    and sge.end_date is null)
    where r = 1;
    

    Keep in mind if two records have the same effective_date, they would both appear.

    Note: query above has not been tested, since there is no script provided.

  • Need help on PSP with the JDE ERP integration

    Hello

    We need to implement accounting processes with JDE using FIP Solution accelerator providers.

    It seems that Oracle does not provide this integration, please someone implemented, can provide some details will be highly appreciated.

    You can go forward with the consultation.

    But if you look at the base or FIPSA solution accelerator, these are all business processes that can be built easily internal either using BPMN or BPEL.

    I have provided details taking point of FIPSA for EBS you mentioned that oracle provide for that.

    Leave that all behind, go build your own set of BPEL/BPMN process to expedite the process of AP/expense in your organization.

    Even the adapter for JDE development is very simple as it seems.

    If you decide to go forward in the internal system I can help you in all aspects or ODC/RPO/IPM/UCM/BPMN/BPEL/JDE/EBS/TFTP.

  • apex5 pre-release - url filter applies to the two IRs with the same column name

    I've implemented 2 interactive reports on the same page, one on EMP (static id Throne) and the other on DEPT (deptir static id). Both the DEPTNO column. If I create the following filter via the URL: IR [throne] EQ_DEPTNO:20, the filter is applied to the two interactive reports.

    Screenshot from 2015-03-29 08:30:33.png

    Hello

    Please let us know. It has the same root cause as your other reported problem. It's bug #20764255, which has already been identified and corrected on our development environment. A fix will be released in our production release.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • Need help: error communicating with the server on boot up

    Anyone an idea what server it could be? I received this alert after starting my Mac Pro (OSX 10.7.5):

    He didn't identify which server, what app or anything like that. I wonder if I should do a virus check. If someone things

    can a good idea, it's been so long I've owned a virus app, anyone recommend some?

    Thank you

    Steven

    I don't know a good way to identify which application raised the dialog box, except via the menu bar.   If you have selected the dialog box, see if the name of the associated application is upwards in the menu bar.

    Otherwise...   What elements of openness are present?   System Preferences > users and groups > login items.    Except maybe iTunesHelper, hover over the name of the application to get the path to the application, and then delete the entries you do not use or don't recognize, please disconnect and reconnect and see if the prompt disappears.

    Otherwise, open Console.app from Applications > utilities and see if you can find a server connection error connected there.   There will be a lot of messages he and some will be pretty obscure or maybe even bad omen, and the deluge of text can be quite normal.   You are specifically looking for an error in Server connection with a timestamp at the time dialog box appears.

    If you can not solve this problem from the steps above, then download and run Etrecheckand post the diagnosis report here and maybe someone can spot a package that raises this dialog box.

    OS X 10.7.5 is quite far back that there may be problems to establish a secure connection, but it's a full proposal.  If your Mac allows, consider an upgrade to a newer version of Mac OS X.

    Antivirus and Anti-malware packages have a long and sordid and increasingly questionable history and its effectiveness lately - by the industry itself - was rather less than 50% (and I suppose, fall), and the software has caused more than a few problems with stability and reliability.   Most people with OS X get put into bags by installing malicious software themselves, or through the so-called phishing; try to get the user to install the malware, or open access to the system to allow the attacker to connect and install malicious software.

    Keep all Gatekeeper to allow only to App Store and identified the developers (System Preferences > Security and confidentiality), configure, and maintain Time Machine or another backup running tool and do not install anything you didn't pick.   I would probably also either disable or remove Microsoft Silverlight, Adobe Flash and Java from Oracle, or at least keep them current and get a blocker plugin, because these are some of the most common paths to the Junk onto a system, if it is not directly installed by the user.

  • Need to query to fetch the father & grandfather name?

    Dear all,

    I am using the suite of table to fetch the name & Last_Name, but not able to find information for the name of the father and grandfather.

    per_all_people_f

    What table with father & grandfather information fields?

    Thank you
    M K

    Select
    PAPF.first_name, papf.per_information1 father_name,
    PAPF.per_information2 grandfather_name, papf.last_name family_name
    the women's wear per_all_people_f

    for Arab names, at least in Saudi legislation you can use this function:

    / * get the name of the employee in Arabic * /.
    FUNCTION decode_arabic_name)
    p_person_id number,
    p_effective_date date default sysdate
    ) return varchar2
    is
    v_arabic_name varchar2 (5000);
    Start
    Select
    (decode ((nvl(paf.per_information3,'') |))) '),' ', ", paf.per_information3 | ' ')
    || Decode ((NVL(PAF.per_information4,'') |)) '),' ', ", paf.per_information4 | ' ')
    || Decode ((NVL(PAF.per_information5,'') |)) '),' ', ", paf.per_information5 | ' ')
    || Decode ((NVL(PAF.per_information6,'') |)) '),' ', ", paf.per_information6 | ' '))
    in v_arabic_name
    of paf per_all_people_f
    where paf.person_id = p_person_id
    and p_effective_date between paf.effective_start_date and paf.effective_end_date;
    Return v_arabic_name;
    exception
    When no_data_found then
    return ";
    while others then
    return ";
    end decode_arabic_name;

  • How to write a query to return rows with the varchar column that contains even a single occurrence of the characters, such as Ÿ and

    How to write a query to return rows with the varchar column that contains even a single occurrence of the characters, such as Ÿ and

    I have a table whose columns with values such as

    MINNEAŸPOLIS and ¿VV ¿A

    Only the characters that are allowed in this column are alphabets, numbers, spaces, points and supports.

    Please help to write a SQL SELECT with Regexp_like query or any other option.

    Thanks to you all! Under query worked for me. Thank you Frank to explain the concept of hooks inside regexp_like.

    SELECT * FROM testspecial, WHERE REGEXP_LIKE (sampletext, "[^] ^ A - Z ^ a - z ^ 0-9 ^ [^.]") ^ {^} ^]') ;

  • Problem with the levels in PSE7 adjustment layer

    Hello

    I have a problem with the levels adjustment layer in PSE 7.0. I made this photo that shows exactly as I want it in PSD format, but when I save it in JPG format all adjustment layers are lost. I tried to get the same result by using simple Enhance > > adjustments > > levels, but I cannot get the same result with the same settings as with the adjustment layer.

    How can I solve this?

    I saw in a tutorial that might help add a new layer above the layer of setting and then merge visible layers, but it does not work either.

    I hope someone can help me if I can complete the picture.

    It seems that the problem is that your image size is big enough in comparison to the size of your available screen and you make your settings at roughly 18% view.

    Photoshop elements uses interpolation to show the images on the screen, so you can't really see exactly the result unless you view an image at 100% display (actual pixels)

    If you try to do the steps from the beginning with your image at 100% view, does make a difference?

    (Double-click on the Zoom tool in the Toolbox for 100% view (actual pixels))

  • My original XP Pro disc is SP2. I've updated to SP3 and now I have corrupted files and need to repair windows with the disc.

    My original XP Pro disc is SP2. I've updated to SP3 and now I have corrupted files and need to repair windows with the disc. When I put disc SP2 in it tells me that it is a work old version and custom. How to make a disc with SP3 top to repair my OS?

    Hi DFPI.

    I suggest you to uninstall Service Pack 3 temporarily on your computer.

    How to remove Windows XP Service Pack 3 from your computer

    Later, try to repair the computer with the Windows XP disc and check if it works.

    Later, reinstall the Service Pack 3 after the computer repair.

    Reference: Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

    Hope the helps of information.

    Please post back and we do know.

  • I just reinstalled windows xp sevice pack 3 in my laptop. l need help to set up the wireless modem. My laptop is IBM ThinkPad.

    I just reinstalled windows xp sevice pack 3 in my laptop. l need help to set up the wireless modem. My laptop is IBM ThinkPad and the modem is a construction in one. would appriciate ay help

    Hi bardhiboris,

    You can follow the steps from the link below: set up a wireless network:http://www.microsoft.com/windowsxp/using/networking/setup/wireless.mspx

    Other links, please refer to: 10 tips to help improve your wireless network:http://www.microsoft.com/athome/setup/wirelesstips.aspx

    To set up automatic wireless network configuration:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wlan_client_configure.mspx?mfr=true

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I really need HELP! I received the nugel.exe virus on my laptop and I really missed the whole system! PLEASE HELP ME SOLVE THIS!

    I really need HELP! I received the nugel.exe virus on my laptop. I have Windows XP and I was reading how to remove it. They told me to go to click on the Start button in it, then click on run. type msconfig and on the Startup tab, uncheck everything that ends with TSSD. Well, none of which ended in TSSD was there, so I was told everything that had an UNKNOWN manufacturer in buttons SERVICES and STARTUP uncheck. I restarted my computer and the NELSON was always there.  Then suddenly my computer shut down on its own and restarted with a screen that says now "Windows didn't start because the following file is missing or corrupt: \system32\hal.dll .» Please reinstall a copy of the above file. "Does anyone know how to do this? I feel that I've dealt with the virus stupid for days and I'm going crazy! Can someone please help me solve what I did wrong? PLEASE, I BEG YOU!

    Hi ehaze64,

    Looks like you have made incorrect changes in system configuration utility.

    See the Microsoft articles below to solve the problem by installing the recovery console and use the Bootcfg.exe tool to rebuild the Boot.ini file.

    How to install and use the Recovery Console in Windows XP

    http://support.Microsoft.com/kb/307654

     

     

    Error message: "Windows did not start because of a configuration of the disk of the computer problem.

    http://support.Microsoft.com/kb/314477

     

    "Invalid Boot.ini" or "Windows did not start" error messages when you start your computer

    http://support.Microsoft.com/kb/330184

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Help for problems with the functionality of Capture from Adobe

    Hello

    I recently installed Adobe Capture on my Smartphone (Android device) and the app is very cool.  However, after a few weeks of use, the software stops working.  I uninstalled the software and reinstalled to see if that would help solve the problem.  Unfortunately, it has not solved the problem.  Adobe does not provide an over-the-phone technical support for this product, so I hope someone here can help.

    Recreation of question:

    When you start the application, there are four 4 functions:

    1. Colors
    2. Forms
    3. Brushes
    4. Looks like

    In the lower right corner of the screen, we see a sign '+', which, depending on which function you select, invite the user to 1) select from the cloud or 3) take a new photo 2) select a picture in the camera.  When you select an option, Adobe Capture executes the designated function and the State final changes / outputs on the picture are visible.

    However, when you try to accept or to save changes / outputs, the screen seems to hang up and return to the initial splash screen.

    Can provide you any assistance?

    Thank you!

    Jerry

    Hi Jerry,

    I'm really sorry that capture does not work as it should. This is a known issue in the app and the team is working on a beta version with a fix. I hope that it will be available before the end of the week, but I'm not totally sure of the timeline.

    I know we'll get it on Adobe Android Apps - community - Google +, then join this page and you will be informed as soon as it is available.

    A couple of other things:

    It's an incredible description of the problem you are experiencing. Thank you very much for going into details so. It makes a huge difference when engineers are trying to understand what is happening.

    If please post here or contact us through the app (tap on the draw icon, then give us Feedback) whenever you need help. Sometimes on the weekends, I'm a little slow, but during the week, I'm trying to reach people as quickly as possible.

    I hope this helps.

    Sue.

  • Adobe muse working on a menu lighbox and need help I can not the box of active relaxation, even if I checked trigger on top

    Adobe muse work on a menu lighbox and need help I can not the box of active relaxation, even if I checked trigger on top anyone with a suggestion?

    Thank you, it ends up being a superposition problem, thank you, but I can see where an invisible element could be a problem too. I use to select it all the trick to understand where I've been in Illustrator all time years ago I am so new Muse that I kept thinking can be as simple as I can go back to things I've done in other Adobe programs, but it is! and I'm an old school Print Designer who doesn't REALLY know the thing no coding thank once again

Maybe you are looking for

  • Slide to unlock removal could be deadly

    A few days while the comings and goings, an impressive looking sports car whizzed past me. I tried to take a quick picture of it on my iPhone, but because it happened so fast I got a little confused and forgot that slide to unlock no longer works and

  • The use of more than 16 analog inputs of a module?

    Happy new year to everyone. The analog input module OR-DAQmx can only support up to 16 channels.  Now serveral DAQ cards provide more than 16 channels, including PCI - 6259M offer 32 entered analog. So, how do dasylab (Ver 11) support more than 16 ch

  • Error loading operating system

    Hello Today my computer crash with the following error stop: 0xe000008e (oxe0000001, oxae313925, oxa3cd26f8, 0x000000 Watchdog sys address ae313925 baseae3130000date stamp 48025yab so I restarted and now I get the error loading operating system I use

  • Iconia W510 hold the Windows to connect does not

    I have a W510 Iconia, I just put in place. I guess that after some windows updates the home screen has changed because now it's asking me to "and hold down Windows button and press the button to connect.» When I turned on the tablet before I could ju

  • Windows Vista does not start. I can just buy the upgrade to Windows 7 to fix this or do I have to purchase the full version of Windows 7?

    update helps... Difficulty helps lol I have vista Home premium, but does not start it tells me to put my disk installation and repair process. can I buy windows7 upgrade or should I buy the full version, I'm not going to do...? I got my pc checked th