How to search more than one table in database?

Hello i am new to java
I create 5 tables. I want search 5 table.
I use stored procedure.
we give one keyword that keyword in all tables that column will be display.
for ex: One tables contains IT employee details of one company and they are working different technologies
Second table contains IT employee details of another company
That the problem
I want to the data who are the java employee and which company belongs. And only display the java employees in all tab les
Thank u

sounds like an incredibly bad design.
different tables for different companies? so every time you add a company you have to add a table?
i'd recommend a company table with a 1:m relationship with the employee table. it's normalization 101.
%

Similar Messages

  • Want to Know how to Join more than One Table

    I want to SHOW search results based on the search conditions user enters the form (eg: oracle advance search form OTN)
    In this case i have to link more than one table and i have fetch the query results based on the user entered conditions in the search form.
    can you please guide/help me in how to write/map this query using TOPLINK API.
    my query should be like this:
    SELECT A.ORDER_NUMBER, B.SAPORDER_NUMBER, C.CUSTOMER_NAME FROM DEAL_QUOTE A, DEAL_SAPORDER B, DEAL_CUSTOMER C
    WHERE A.DEAL_QUOTE_ID=B.DEAL_QUOTE_ID AND B.START_DATE = C.START_DATE AND C.END_DATE=B.END_DATE
    expecting your valuable reply.
    Thanks in advance
    Regards
    babu

    Im not sure this is what you wanted, but couldn't you use a named query in TopLink and then use ADF to display the results?

  • How to update more than one table using EO

    Hi frnds,
    Can someone provide me a doc/link which explain in detail how we can we update more than one PL/SQL tables using entity objects(on which VOs are based).
    Till date I have been doing this using PL/SQL procedures but now my requirement is to achieve it thru EO.Someone suggested me use VL to achieve plz help
    Thanks & Regards,

    Hi,
    That would be very nice of you,plz send me the docs and also send me similar docs that would be beneficial for a beginner like me.
    My id is [email protected]
    Thnx for your time.

  • How can I insert more than one table into database simultaneously???

    I have a problem like that:
    I want to update(insert or update) into two tables in DB simultaneously when I click a certain button. Can you help me to solve this.
    Thanks.

    I have tried using a view but I get the Validation Error on a sequence generated attribute (HOTELID) as shown below:
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO HOTEL_LOGIN_VIEW(HOTELID,HOTELNAME,COUNTRY,LOCALCURRENCY,LOGINNAME,USERPASSWORD,USERROLE) VALUES (:1,:2,:3,:4,:5,:6,:7) RETURNING HOTELID INTO :8; END;".
    ORA-01779: cannot modify a column which maps to a non key-preserved table ORA-06512: at line 1
    I have not been able to resolve it and would appreciate your help.

  • How to use left outer join on more than one table (source)

    Hi all,
    In our project we are converting the Unix shell & SQL scripts into OWB mappings. We are facing problem converting left outer join in OWB. here is one of the example. i have just pasted the FROM and where condition.
    FROM ym_scr t1, branch_finmonth t3
    LEFT OUTER JOIN item_image t2
    ON (t1.branch_no = t2.branch_no
    AND t1.item_no = t2.item_no
    AND t3.to_date between t2.tran_dt and t2.to_dt
    AND t2.to_dt >= '$start_images' ) <<<========= '$start_images' THIS COMES FROM THE UNIX VARAIBLE ,
    We converts the same when we are putting it in OWB join Operator
    INGRP1.branch_no = INGRP2.branch_no(+)
    AND INGRP1.item_no = INGRP2.item_no(+)
    AND INGRP3.to_date between t2.tran_dt and t2.to_dt
    AND INGRP2.to_dt >= INGRP2.start_images
    But as you see in the OWB opreator we can put left join with INGRP1 with INGRP2.
    We can not make same join with INGRP3 & INGRP4 , becoz it failed saying "you cannot left outer join on more than one table/source".
    so overall this OWB code makes incomplete left outer join as per the above ANSI SQL join in Oracle.
    Bcoz of the problem we are getting less number of rows...........
    SO please please help me on this
    Regards
    Ashok

    Hi.
    I know this topic is here for a while now, but I had the same problem today, searched for help and didn´t find anything.
    Later I figured out how to do this.
    You just have to put the (+) one time, and the OWB converts in an LEFT OUTER JOIN statement.
    For this case, all you have to do is:
    ( INGRP1.branch_no = INGRP2.branch_no(+) AND INGRP1.item_no = INGRP2.item_no AND INGRP2.to_dt >= INGRP2.start_images )
    Regards,
    Godoy

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

    Hi,
    Please go through the below thread might be of help to you.
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
    RK

  • How to insert into more than one table at a time also..

    hi,
    i am a newbee.
    how to insert into more than one table at a time
    also
    how to get a autoincremented value of an id say transactionid for a particular accountid.
    pls assume table as
    transactionid accountid
    101 50
    102 30
    103 50
    104 35
    i want 102 for accountid 30 and 103 for accountid 50.
    thank u

    @blushadow,
    You can only insert into one table at a time. Take a look here :
    Re: insert into 2 tables
    @Raja,
    I want how to extract the last incremented value not to insert.Also, I don't understand your thread title... which was "how to insert into more than one table at a time also.. "
    Insert, extract... ? Can you clarify your job ?
    Nicolas.

  • JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC

    Hi,
    I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
    I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
    Regards
    Kumar

    HI,
    Yes it can be possible ,please see the following links
    JDBC  Receiver with Oracle Stored Procedures
    configuring jdbc adapter with multiple tables
    RFC -> XI -> JDBC Scenario Updating Multiple Tables
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC Adapter multiple Selects
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
    Regards
    Chilla..

  • How to create Criterian For more than one table

    Hi,
    I have one problem how to create criteria for more than one table in that using one criteria hot to get the values from database in that more than onetable for getting these values .Please send me the exampke code.
    reagrds,
    raghu

    Hi,
    I don't think its possible to create fieldcatalog for different tables,
    but if you want to do so create a dummy table which has all the fields which you want in fieldcatalog.
    populate the data from different table to that dummy table
    then create fieldcatalog for that table and pass it in the function module...
    Regards,
    Siddarth

  • How do u save datas more than one table using net beans ide using JSF

    Hi,
    I am new to JSF.
    I save / delete / update / New master table using POJO (Plain Old Java Objects), database - oracle and Toplink Persistence Unit.
    How do u save data more than one table using net beans ide using JSF (I am using POJO) ?
    and also Tell me the reference book for JSF.
    Thanks in advance.
    regards,
    N.P.Siva

    SivaNellai wrote:
    I am new to JSF.
    So, I am using net beans IDE 6.1 from sun microsystem. It is a free software.No, you don't drag'n'drop if you're new to JSF. Switch to source code mode. Write code manually, with the help of IDE for the speed up.
    So, please guide me the reference books, articles. I need the basic understanding of JSF, net beans IDE.[JSF: The Complete Reference|http://www.amazon.com/JavaServer-Faces-Complete-Reference/dp/0072262400] is a good book. The [JSF specification document|http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html] is also a good reading to understand what JSF is and how it works. There are also javadocs and tlddocs of Sun JSF Mojarra.

  • Reg: how to join more than one cluster table into one

    Hi gurus
    How to join more than one cluster table into one
    amk

    Hi,
    You cannot join cluster tables
    Best way is to select from the header table and then select from the item table table using for all entries of header table.
    regards,
    Advait

  • How to delete the double records connected to one or more than one tables in SQL 2008?

    Hi
    Can anyone please help me with the SQL query. I Im having a table called People with columns names: personno., lastname, firstname and so on. The personno. is having duplicate records,so all the duplicate records i have written with "double" in
    the beginning of the numbers. I tried deleting these double records but they are linked to one or more than one tables. I have to find out, all the tables blocking the deleting of double person. And then create select statements which creates update statements
    in order to replace the current id of double person with substitute id. (The personno. is in the form of id's in the database)
    Thanks

    You should not append "double" in the personno. When we append it will not be able to join or relate to other table. Keep the id as it is and use another field(STATUS) to mark as duplicate. Also we will require another field(PRIMARYID) against
    those duplicate rows i.e the main or the primary personno.
    SELECT * FROM OtherTable a INNER JOIN
    (SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
    ON a.personno = b.personno
    UPDATE OtherTable SET personno = b.primaryid
    FROM OtherTable a INNER JOIN
    (SELECT personno, status, primaryid FROM PEOPLE WHERE status = 'Duplicate') b
    ON a.personno = b.personno
    NOTE: Please take backup before applying the query. This is not tested.
    Regards, RSingh

  • How to select more than one slide on Keynote?

    Please, someone knows how to select more than one slide on keynote for IPad?

    // Allow selection to span one contiguous set of rows, visible columns, or block of cells
    table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    // Allow multiple selections of rows, visible columns, or cell blocks
    table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

  • How to add more than one tabular region in a page?...

    How to add more than one tabular region in a page?
    i have a page, that page contain form and tabular region. when i trying to add another tabular region it showing error
    1 error has occurred
    Updatable SQL Query already exists on page 2. You can only add one updatable SQL query per page. Select a different page.
    but i have to add the tabular in that page.
    Is it possible?
    pls help...
    Thanks and regards,
    skud

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • Search more than one location at a time?

    Hello,
    I spend a lot of my time searching for files in our studio (I maintain the archives, backups, file systems, etc.) and I have to search across a number of locations (a number of local drives, specific locations/folders on various servers, etc.). Right now all our machines in the studio are on Tiger and I'm considering upgrading to 10.5, but the one major roadblock I've come across thus far is the ability to search various locations in 10.5. In 10.4 I was able to select multiple locations (local machine, specific folders on file and archive servers, etc.) all at once to find what I need. In 10.5 I've been unable to find a way to search more than one location at a time. Am I missing something, or has Apple removed the ability to search like this? This would be a serious roadblock for me as it would mean each search I do would have to be done 2-5 times, depending on what I'm looking for and where it could be found. I've even tried created a "search" folder which contains alias folders to all the places I'd normally search, but this didn't work.
    If anyone has any advice on how I could possible do this, it would be greatly appreciated!
    Regards,
    Kristin.

    Yea, I understand how to search in 10.5 (either using the magnify glass in top right, or command-F) but what I'm trying to figure out is how to search "This Mac" AND a folder on a server at the same time. In 10.4 you could just click on the places you wanted to search, but in 10.5 this option is gone. When you search "This Mac" (no matter how you customize your search), it only searches the Mac your on and mounted drives via USB and FireWire. It doesn't search other networked computers and servers and you have no option to search a specific folder on a networked computer or server unless you actually navigate to that folder and run the search (at which point you're only searching that folder and no longer also searching the "This Mac").
    You can customize a lot of things, but what feature that's lacking in the 10.5 searching is the ability to search specific/various locations across a network.
    In the studio it would be specific the computer I'm working on (a Mac Pro [not Macbook Pro]) and it's connected to 20 other Macs (G5 towers, Intel iMacs and Mac Pros) and two servers (Xserves). I only need to search specific locations on these systems, which you can't seem to do in 10.5. In fact, I haven't even found a way to search all the computers on the network, let alone specific locations on these computers on the network, all at once.
    I've been trying to figure this out all weekend (at home) via the following setup:
    - Intel iMac
    - External FireWire drive mounted on Intel iMac
    - G4 Server "connected" via Intel iMac
    In each of these locations I've placed the following folders:
    #1 - FIND THIS FILE - IMAC DESKTOP (on iMac desktop)
    #2 - FIND THIS FILE - FW HD (on external FW drive mounted to iMac)
    #3 - FIND THIS FILE - G4 DESKTOP (on G4 Server desktop connected to iMac)
    When I run the search, if I select "This Mac" it finds both folders #1 & #2, but NOT #3.
    The only way I can get the search to find #3 is to navigate via Finder to the G4 and run a search. But, now it's only searching the G4 Server and thus only find #3 and NOT #1 or #2.
    I can either search "This Mac" (and mounted drives) OR the G4 Server, but not both.
    At this point I have tried everything I can to get this to work, but nothing. I believe there is NO WAY to search various locations (especially various specific locations) across the network and that Apple has removed this ability in 10.5. I would LOVE if someone could prove me wrong!?
    Regards,
    Kristin.

Maybe you are looking for

  • Got lost on Setting up a PHP development environment for Dreamweaver

    I am following Dave Powers article on building a dynamic website. I am using Mac 10.6.7 and Dreamweaver CS5. I have downloaded Dave's example file and tried putting it on the desktop that didn't work. Next I tried dragging it into the website folder.

  • Preserving metadate in PDF Presentation

    I have Photoshop CS3 with Bridge. I digitally photograph documents in RAW. In Bridge, I embed metadata. I open all images in Photoshop and create .jpegs. Both the RAW image and the jpeg retain the metadata. However, if I use PDF Presentation to creat

  • Please help me on java Logger......

    Hi, can anyone give me a good tutorial link on java Logger? one more doubt, In logging, in the log file the info is saved in XML format. How can i change it to normal text format? pls help..... -Soni.

  • Server could not load the class

    I m trying to create a new adapter task bt when i select xliACE.jar from the dropdown box, its trowing an error " Server could not load the class" Below is the server log-- ERROR,04 Dec 2007 09:18:48,217,[XELLERATE.JAVACLIENT],Class/Method: tcADPClie

  • [SOLVED] nitrogen fails to set the background with openbox

    Hi guys ! I have a strange issue . Yesterady everything was working fine . nitrogen would set my wallpaper at each boot . This morning for some reason nitrogen sets the background for about one second and then it goes back to the default openbox back