Help on select with more that one table

Hi to all,
I have 2 tables:
Table1
tb1CodeID    Number(10);
tb1Descr      Varchar2(30);
tb2CodeID    Number(10);
Table2
tb2CodeID    Number(10);
tb2Descr      Varchar2(30);
tb2Used       Varchar2(1); -- Admitted Values T,M,CI need to Select all the Rows in Table1 where the tb2CodeID in Table2 = 'T' (for example).
Can You help me to construct a correct select ?
Thank You and Best Regards
Gaetano

Hi Gaetano,
Brilliant example. ;)
How can this column tb2CodeID have value 'T' if it is declared as a number in both tables?
At least I need more clarification.
Cheers,
Guido

Similar Messages

  • Simple journalization with more than one table

    Hello,
    I wanted to journalize more than one table with a simpe journalization?
    is it possible?
    I confgured my OdiWaitForLogData like that:
    OdiWaitForLogData "-CONTEXT=GLOBAL" "-GLOBAL_ROWCOUNT=2" "-LSCHEMA=employe" "-OPTIMIZED_WAIT=AUTO" "-POLLINT=2000" "-SUBSCRIBER_NAME=SUNOPSIS" "-TIMEOUT=0" "-TIMEOUT_WITH_ROWS_OK=YES" "-UNIT_ROWCOUNT=1" "-TABLE_NAME=Departement,Employe"
    when I executed my interface, my interface is still at the step running.
    what happened please?
    Thanks
    Billyrose

    Hello,
    I wanted to journalize more than one table with a simpe journalization?
    is it possible?
    I confgured my OdiWaitForLogData like that:
    OdiWaitForLogData "-CONTEXT=GLOBAL" "-GLOBAL_ROWCOUNT=2" "-LSCHEMA=employe" "-OPTIMIZED_WAIT=AUTO" "-POLLINT=2000" "-SUBSCRIBER_NAME=SUNOPSIS" "-TIMEOUT=0" "-TIMEOUT_WITH_ROWS_OK=YES" "-UNIT_ROWCOUNT=1" "-TABLE_NAME=Departement,Employe"
    when I executed my interface, my interface is still at the step running.
    what happened please?
    Thanks
    Billyrose

  • Firefox locks up regularly since ver 3.5, especially with more that one tab open.

    firefox locks up regularly since ver 3.5, especially with more that ona tab open. navigating thru the www.nokia.be website is a good example, especially when looking for different models and comparing them. firefox needs to be closed then via windows tasks/ close application.
    I tried to reinstal firefox 4.0.1, without any add-ons but theproblem remains, it even seems worse!
    in Windows explorer this problem never happens!!

    try out this code its working...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"><mx:VBox 
    width="100%" height="100%" >
    <mx:DataGrid width="100%" height="100%" dataProvider="{dataSet}" >
     <mx:columns>
     <mx:DataGridColumn>
     <mx:headerRenderer>
     <mx:Component>
     <mx:CheckBox />
     </mx:Component>
     </mx:headerRenderer>
     <mx:itemRenderer>
     <mx:Component>
     <mx:Panel width="100%" >
     <mx:ComboBox />
     <mx:TextArea />
     </mx:Panel>
     </mx:Component>
     </mx:itemRenderer>
     </mx:DataGridColumn>
     </mx:columns>
     </mx:DataGrid>
     </mx:VBox><mx:Script><![CDATA[
     import mx.collections.ArrayCollection;[
    Bindable] 
    public var dataSet:ArrayCollection = new ArrayCollection([{Month:
    "Errors", Income:1500, Profit:90},{Month:
    "Work In Progress", Income:1200, Profit:1000,percent:100 },{Month:
    "Pending on Trustee",Income:1200, Profit:1000,percent:125},{Month:
    "Pending on Notary", Income:750, Profit:1500,percent:175},{Month:
    "Pending on Signature", Income:860,Profit:900,percent:75},{Month:
    "Pending on County", Income:500,Profit:750,percent:175}]);
    ]]>
    </mx:Script></mx:Application>

  • Block with more than one table type agurment -  Update Procedure for Block

    Hi,
    I have one form with 3 Block. First Block is single row block, and other 2 are details block . The details balocks are based on the Procedure datasource, because of the complex query conditions. Now my requirement is When Inserting / Updating the Master Block (Single Row Block), I need to get the values in the two details block , because I need to update some other tables also based on these values. I created a procedure with two Table Type parameters (for each details block) , but when I using this procedure as the Update Procedure Name in the block, I am getting the error Only One table type arguement is allowed. Is there any other method to implement this.
    Thanks in advance.

    Rizly,
    A quick summary to make sure I understand your requirements. You have a single row base table master block with two detail blocks that are based on Procedures. When you update the single row base table master block, you need all of the data in the two procedure based detail blocks as there are updates that you have to perform to other tables that use this data. You have created a stored procedure that take two PL/SQL tables as parameters, but you are getting the error that only 1 table parameter is allowed.
    I need to ask you a few questions first. What is your Forms version? The stored procedure you created; are you using this procedure in the "On-Insert, On-Update, On-Delete" triggers or do you call the procedure in one of the Base Table block ("Key-Commit, When-Button-Pressed" or other trigger)? When you modify or add a new Master block record are you adding values to the detail blocks or using values from the previous Master block record?
    If you are using your procedure in the On-Insert, On-Update or On-Delete trigger(s), then based on your description, the error you are receiving is correct. The "On-..." triggers are constrained in that their procedures expect only a single PL/SQL table, Table of Records or Ref Cursor as a parameter. This is a Forms constraint - not a PL/SQL constraint as Forms is expecting you to only perform actions on the block where the "On-..." Trigger is located.
    Perhaps you should consider creating a database Package that has two package specification constructs (Ref Cursor, Table of Records, etc) you can populate from Forms and then simply call the package procedure that will use the Ref Cursors to perform the needed update or inserts.
    Hope this helps.
    Craig...
    If mine or someone elses response was helpful, please mark it accordingly

  • Can I create a dll from labview with more that one function name

    I know that when I create a dll from C and then call it in labview using the call library function node I can see the different functions on the configuration screen. Is there a way to create a dll in labview to have more than one function name? No matter how many functions happen in my VI it seems to build into a dll under the same function name requiring inputs for every function, can this be avoided somehow?
    Thanks,
    Dave

    Each function corresponds to a separate VI. When creating the dll, on the Source Files tab of the app builder, click the Add Exported VI for each VI that you want. SubVIs of a main are not automatically exported and will not be available as separate function calls.

  • LoadFromDatasource with more than one table

    Hi,
    I want to fill a matrix with the items. I need the columns itemcode, itemdescription and Manufacturer. It is no problem to initalize a recordset, do a query with a joining between the tables OITM (items) and OMRC (manufacturers) and fill the matrix by running through the recordset. But this is too slow.
    With the help of "LoadFromDatasource" it is much more faster. But my datasource is the table OITM. I do not have the information of the manufacturers name, because the table OITM only holds the manufacturers code. In other words: I do not want to see 1, 2, 3 and so on in the column for manufacturer, but I want to see the manufacturers name (from the table OMRC) instead. How can I realize this? Any ideas?
    thanks and regards,
    Markus Niebergall

    Hi Adele,
    thanks for your answer. This is not, what I wanted to hear But now I´m sure that I have to do it with an additional UserDataSource.
    Thanks,
    Markus

  • Get data with more than one table

    hi Gurus,
    I am from ABAP and now am doing Crystal reports...please bear with me if am silly.
    in ABAP I have developed a report based on my select statement.
    ex : **SELECT SINGLE * FROM cabn WHERE atnam EQ 'Z10_OPS_INC_REGION'.**   
           CLEAR ausp_objek.
          CONCATENATE cciht_ihva-recn cciht_ihva-actn INTO ausp_objek.
          CLEAR ausp.
    now i have value in ausp_objek based on this i gone to other table to get the ausp-atwrt
          SELECT DISTINCT atwrt FROM ausp
                                INTO CORRESPONDING FIELDS OF TABLE lt_ausp
                                WHERE objek EQ ausp_objek
                                  AND atinn EQ cabn-atinn
    so i have value in lt_ausp-atwrt which i wanted..
    so in CRYSTAL  How does this work???...i have linked the tables but it is not a direct value from single table...at this point how do we get the desired results...
    hope am clear...
    thank you,
    pasala.

    Hi Pasala,
    Nothing silly about it... We have a forum called SAP integration Kit which is both familiar with ABAP and CR so I moved your post to that forum.
    Try searching on the home page for this forum on "ABAP" and you'll find lots of examples and suggestions and of course others will help too.
    Don

  • Creating Table View's with more than one table

    I have two custom tables. 
    Table A has 2 fields:  Code and Description
    Table B has 4 fields:  Code, Country, Emp Group and Personnel Area
    I would like to build a view which has:  Code, Description, County, Emp Group and Personnel Area.  This view should be able to pull in the Description from Table A when the user enters in the Code.
    I have created a view with SE11 and have put both Table A and B with joins as follows:  A Code = B Code.  Under the view fields I have put the fields B.Code, A. Description, B.Country, B.Emp Group and B.Personnel Area.
    When I generate this view (Utilities, Table Maintenance Generator) it only shows the Code and Description field.  It does pull in the Description automatically which is great.  The issue is 2 things 1) The Description can be changed and 2) The other fields I specified above are not included on the view (e.g., Country etc.)
    Any ideas?

    I have checked several times that it is against the view as it is so strange that not all of the fields are appearing.
    I go into SE11, Click on View, Type in the View Name and then Change.  I goto into Utilities, Table Maintenance Generator and select it as one Step and then click on the Create Button.  When I go into SM30 I only see the 2 fields?

  • Creating projects with more that one exported sequences from different FCP

    I am creating a compilation DVD containing 6 different FCP projects. I exported all the projects using the same settings
    MPEG-2 6.2Mbps 1-pass 4:3.m2v and .aiff files.
    They each burn and play just fine when I use just one in a DVD Studio project. The problem comes when I put them on one track using chapter markers to mark the beginning of each new clip on the track.
    It looks as though it is working until I try to play it in the simulator. I can hear the audio, but the picture does not view on any of the clips other than the the first one in the track. If I go back into the viewer and click on a portion of the clip, it will play both audio and video, but once it moves to the next clip (through a chapter marker) the video will not view until I click on the track again.
    What have I done wrong? I am a bit of a newby with FCP and DVD Studio.
    MacBook Pro   Mac OS X (10.4.8)   DVD Studio 4.1.0
    MacBook Pro   Mac OS X (10.4.8)  
    MacBook Pro   Mac OS X (10.4.8)  

    Hi:
    Same problem in this thread:
    http://discussions.apple.com/thread.jspa?threadID=741368
    It seems to be a "kind of bug". If you build and test your project in your hard drive everything plays fine. In another thread (that cannot find right now to link!) someone mention that the problem is the difference in the lenght of audio and video aafter encoding each sequence.
    But as I told you at least my projects builds fine.
    Hope it helps !
      Alberto

  • IPod update with more that one computer

    Okay, so when I first got my iPod, I was using a window's computer to upload my songs and did most of my app work directly from my ipod.
    Then that computer crashed.
    I found out I could manually add music to my iPod with my Mac laptop (linking the computer and such), so I've been keeping up with that, the songs from my original computer (as well as the apps) still intact.
    This new update said that it will delete everything, so you should be on your main computer. So the songs from my previous computer will be gone (I can sorta deal with that,) but what I'm really worried about is the apps. Will I be able to just redownload them? Will I have to pay for them?
    I've done an ipod back up (if that even makes a difference). Thanks for any help.

    what I'm really worried about is the apps
    Choose Authorize Computer from the Store menu in iTunes and then Transfer Purchases from the File menu.
    (52640)

  • Share excel 2007 with more that one users and edit at the same time

    Dear community members,
    How can I best shere an excell workbook 2007 if I want multiple users to view and edit simultaneously?  The workbook contains macros, conditional formating, and dropdown lists which I want all to be functional!
    Thanks,

    Hi,
    You can create a shared workbook and place it on a network location where several people can edit the contents simultaneously
    Just go to the Review tab, in the Changes group, click
    Share Workbook.
    However, not all features and functionalities are supported in a shared workbook. Please review this article for more details:
    http://office.microsoft.com/en-us/excel-help/use-a-shared-workbook-to-collaborate-HP010096833.aspx
    Hope this helps.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to use iTunes with more than one Ipod

    I would like to know whether is possible to use iTunes with more that one ipod, because I need to have 2 differents libraries, one for my 30GB ipod and my son's ipod nano.
    Thanks, Felipe

    Try this http://docs.info.apple.com/article.html?artnum=300432

  • HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI???

    Question
    HAVING A PROBLEM WHEN I PRINT A WEB PAGE WHICH IS MORE THAT ONE PAGE LONG. ONLY THE FIRST PAGE PRINTS TO SCALE...THE REMAINING PAGES PRINT OFF THE PAGE????HELP-IT IS DEFINITELY A PROBLEM WITH FIREFOX BECAUSE IT DOES NOT HAPPEN WITH SAFARI??

    Thank you for the response. I tried to fix the problem with some of the suggestions on that page, but none seem to work. I believe that is the only website that I'm having that problem on. I got to fooling with it a bit more and when I highlight the whole page and select to print the selected area, it actually prints the whole page then, but it won't do it as a default. I guess I can just do it like that from now on, but I thought there would be something in the settings that I could have changed. Thanks again for the help.

  • Error while running spatial queries on a table with more than one geometry.

    Hello,
    I'm using GeoServer with Oracle Spatial database, and this is a second time I run into some problems because we use tables with more than one geometry.
    When GeoServer renders objects with more than one geometry on the map, it creates a query where it asks for objects which one of the two geometries interacts with the query window. This type of query always fails with "End of TNS data channel" error.
    We are running Oracle Standard 11.1.0.7.0.
    Here is a small script to demonstrate the error. Could anyone confirm that they also have this type of error? Or suggest a fix?
    What this script does:
    1. Create table object1 with two geometry columns, geom1, geom2.
    2. Create metadata (projected coordinate system).
    3. Insert a row.
    4. Create spacial indices on both columns.
    5. Run a SDO_RELATE query on one column. Everything is fine.
    6. Run a SDO_RELATE query on both columns. ERROR: "End of TNS data channel"
    7. Clean.
    CREATE TABLE object1
    id NUMBER PRIMARY KEY,
    geom1 SDO_GEOMETRY,
    geom2 SDO_GEOMETRY
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM1',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO user_sdo_geom_metadata (table_name, column_name, srid, diminfo)
    VALUES
    'OBJECT1',
    'GEOM2',
    2180,
    SDO_DIM_ARRAY
    SDO_DIM_ELEMENT('X', 400000, 700000, 0.05),
    SDO_DIM_ELEMENT('Y', 300000, 600000, 0.05)
    INSERT INTO object1 VALUES(1, SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(550000, 450000, NULL), NULL, NULL));
    CREATE INDEX object1_geom1_sidx ON object1(geom1) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX object1_geom2_sidx ON object1(geom2) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    SELECT *
    FROM object1
    WHERE
    SDO_RELATE("GEOM1", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE' OR
    SDO_RELATE("GEOM2", SDO_GEOMETRY(2001, 2180, SDO_POINT_TYPE(500000, 400000, NULL), NULL, NULL), 'MASK=ANYINTERACT') = 'TRUE';
    DELETE FROM user_sdo_geom_metadata WHERE table_name = 'OBJECT1';
    DROP INDEX object1_geom1_sidx;
    DROP INDEX object1_geom2_sidx;
    DROP TABLE object1;
    Thanks for help.

    This error appears in GeoServer and SQLPLUS.
    I have set up a completly new database installation to test this error and everything works fine. I tried it again on the previous database but I still get the same error. I also tried to restart the database, but with no luck, the error is still there. I geuss something is wrong with the database installation.
    Anyone knows what could cause an error like this "End of TNS data channel"?

  • New iTunes on Mac doesn't allow me anymore to select all songs and 'Get info' to adjust the volume, like the old one. It says"your selection contains more than one type of media". They are all songs! Help please!

    New iTunes on Mac doesn't allow me anymore to select all songs and 'Get info' to adjust the volume, like the old one. It says"your selection contains more than one type of media". They are all songs! Help please!

    Raya Alfa wrote:
    ...there are some that are mp3 and it will be extremely hard to pick them from the lot.
    Not true. Select "Kind" as a sort category by right clicking the headings
    Then click to sort by Kind
    If your Import Settings are for Apple Lossless, AIFF, AAC or whatever the majority of your files are, convert MP3s to that file type.
    I've presently got 17,000+ files in my library, and they're ALL MP3 or M4B(Audiobooks). If they weren't when I got them, I converted them.  Saves a LOT of hassels with just this type of situation. Besides I have two non Apple MP3 players that WON'T work with other file types besides MP3 so, EVERYTHING I have has to be MP3.

Maybe you are looking for

  • Has anyone tried a *real* role-link ? - (bea support pls respond)

    Hi Has anyone tried using different role-name and role-link in the security-role-ref section of web.xml. isUserInRole method fails with this. given a section in web.xml as: <security-role-ref> <role-name>xyz</role-name> <role-link>abc</role-link> </s

  • Microphone for MacPro

    I am looking for a mike that can be connected to the audio in port, mainly for use with skype. Most recommendations are for a USB mike, but I want to use those ports for other devices. Any suggestions? MacPro   Mac OS X (10.4.8)  

  • Dreamweaver newbie - php & mysql help

    hi, new to dremweaver, have used .net in past with vwd and found it straight forward to drag over grid view etc to view data from sql database. i want to use php and mysql now and looking at dreameaver cs4 i really want to know what each navigation i

  • INVOICE RECEIPT DATE UPDATE

    Can we update the field REINDAT(Invoice Receipt Date) of the Table BKPF through ABAP Program for specific Document Numbers? While entering a document through FV60 when we key in Invoice Receipt Date what are all the the tables which gets updated? Is

  • Help Configuring PHP Server with new Flex project.

    Hi, I'm curious if someone can help me with a frustrating problem. While creating a new flex project, I can't seem to validate the configuration of the php server. I keep getting the message: "Cannot access the web server. The server may not be runni