Tables and subforms. How to combine to create a detail list ?

Hi to all,
i need to solve this issue. I've done many tries but nothing works.
I have three tables : <tab1>, <tab2>, <tab3>. In context i tied its by where clausole so i have three nested tables. The third contains the texts for  a given position.
When i drag the table on the layout i have something like this :
(1st record)
<Val Field 1>---<Val Field 2>----<Text>
<Text>
<Text>
(2nd record)
<Val Field 1>---<Val Field 2>----<Text>
<Text>
<Text>
and so on
Val Field 1 comes from the first table, Val field 2 from the second (for one record of <tab1> i have many record from <tab2>), Val field 3 from the third - text (for each record of <tab2> i have many lines of text - that means many lines of <tab3>).
(sorry for the dots but are necessary to keeping the right fomatting in order to show you an example of the standard result of the drag of the structure from the data view palette)
I'd like to have something like this :
(1st record)
<Val Field 1>-----<Val Field 2>
<Text>
<Text>
<Text>
(2nd record)
<Val Field 1>-----<Val Field 2>
<Text>
<Text>
<Text>
and so on.
I wasn't able to achieve this result and i don't know how to get it!
Someone of you could explain me with some details, how to modify the hierarchy to achieve this kind of formatting ?
Thank a lot to everyone.
Andrea

Andrea,
Go through some examples listed below and see if it gives you some hints:-
[Achieving Control Levels functionality in Adobe Forms|http://****************/Tutorials/AdobeForms/Controllevels/page1.htm]
[Nested tables in Adobe Forms|http://****************/Tutorials/AdobeForms/Nestedtables/page2.htm]
Chintan

Similar Messages

  • How does sharepoint designer create item in list work ?.

    I'm using sharepoint 365, and the free sharepoint designer.
    I'm trying to make something so that if List A gets an update other lists get new records to.
    There is a sharepoint-designer action that lets one create a an item in another list.
    And i have tested it a lot but haven't got any of my tests to work, been trying for a week now.
    I'm not sure as how it is exactly named in English, since our sharepoint is al dutch  :(
    I think in English  it looks like:
    Create item in Yourlistname  (save result in variable
    Succes)
    When clicking on yourlistname, you need the all valeus of all required items in the list.
    Now asume such worklow rule is made to start after an Entry is made in List A, And we want to update List B
    Here i start i think my problems
    So you select List B as your listname, but then...
    How does one refer, to a required link title from List A?.  use current list item ?
    How to link to a 4th table entry of List C as value to make in List B
    If List A has a value that is clickable-link how to link that to Value B
    If someone knows of problems with this, permissions things, or knows a youtube explaining it, or can explain it himself. It would be of great help to me.
    Upon futher investigation, i got into problems where the workflow has to fill in an item
    Into a column type that is a lookup table (another list), if work with string columns it works, but I need the current "name" as a lookup link connected into List B

    Hi PGT,
    I have seen a similar thread from you. The solution is that you need to work with Item ID's when you define the workflow to work with Lookup columns links. only at creation time you need to enter what field you like to include in your list. Based upon ID
    it will then show the values. The thread is:
    https://social.msdn.microsoft.com/Forums/office/en-US/e342e18a-3f68-4b49-9d80-41f11b76cb4e/how-does-sharepoint-designer-create-list-item-work-?forum=sharepointcustomization
    I will mark this reply as answer to close this case. If you have any question about this issue, please feel free to reply.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Tables and Subforms

    I have a table in a flowable subform, I need it in flowable so that it will put the header anf footer rows on the next pages as the user enters data. My problem is that the Objects on the subform, i.e. the table are al left justifying and I can't get them to move to the center where I need them to be on the form.  Can anyone help please?

    Hi,
    When you set a subform or page to Flowed Top to Bottom, by default all of the objects are stacked in the order of the hierarchy. You cannot move them off the left side of the form, by dragging, etc.
    However, you can use the object margins and content area to adjust their position.
    In addition, where objects do not need to expand, you can group these in Positioned subforms.
    See examples here: http://assure.ly/e2jR0C and http://assure.ly/eSGQMt. Also there is an example showing how to build dynamic tables: http://assure.ly/gk8Q7a.
    Hope that helps,
    Niall

  • Repeating Subforms within Tables and Subforms

    Hi, again =)
    I have another question.
    I'm working with LiveCycle ES4 on a xml form (xdp).
    In this form I have a table with a repeating subform within a row. And inside this subform I have another repeating subform.
    It works like this: the first subform contains data of a category and the other subform contains data of a subcategory.
    There can be multiple categories and within each category it's possible to have several subcategories listed.
    Ok, having said that, my real problem is this one: I can set the header of the table to repeat itself each time the table breaks to the next page but I want the category to repeat also in case the parent subform breaks and I can't.
    I tried a billion things to make this work, like putting a table inside a table. But I cannot make both headers to repeat themselves.
    Can anyone help me with that?
    ..I have also another question: How can I prevent the silly single header that has no rows attached from appear in the bottom of the page?
    Thanks again.
    This community has been very helpful! =)

    I have just been playing around with tables for a project I am currently working on and may have an idea that might work for your last problem of the orphaned header row at the bottom of the page that has no rows attached. Try making two header rows, even if they contain the same information, and, in the Pagination tab, set the first one as "Include Header Row in Initial Page" and set the second one to "Include Header Row in Subsequent Pages".
    You may also find the post http://forums.adobe.com/message/5473853#5473853 of use perhaps.
    Hope this helps,
    Greig

  • Nested tables and subforms (Web Dynpro Java)

    Hi to all you gurus,
    my scenario is the following: I have 3 nested nodes in a view context like these
    DEFECTS_NODE
    |          ACTIONS_NODE
    |           |        SUBS_NODE
    |           |          |__action value
    |           |          |__defect value
    |           |          |__sub value
    |           |__action value
    |           |__defect value
    |__defect value
    |__ decription
    All 3 nodes have cardinality 0...n. These nodes are structured as if we have some actions under the same defect value and some subs under the same action value and defect value and so on. so we can have more defects_node with more nested actions_node (with the same defect value) and more nested subs_node (wiith the same action value).
    I hope I was clear...
    Now, I have to read these nodes and output them in a pdf with 3 nested subforms (defects, actions, subs). These 3 subfoms must be a mirror of the 3 nested nodes.
    can you help me??how can i do this?
    thank you very much in advance,
    Enrico
    Edited by: Enrico Grimaldi on Mar 29, 2010 12:50 PM

    hello,
    I don´t understand your problem. When you´re in LCD and can see your context data in the data view tab, you can just drag and drop the root of your form context and when placing that on the form layout, the whole structure should be generated by the system for you.
    Otto

  • Pages - Tables (and Charts) - how to make a list

    Hello everyone!
    Question. How do I name the tables? Underneath the table. E.g. Table 1 - Statistical Data.
    And then have pages keep track of all tables in a document, in a separate list at the beginning of a document (with perhaps an ability of tracking pages where the tables are, and automatic update of the change of a page, like Table of Contents does)?
    Cheers!

    To summarise the whole process you are simply making a bog standard T.O.C. but using only the particular style you want e.g "Index", in a new section at the front of the document. Then you turn that into plain text and use it for whatever, back in Pages.
    Finally you delete that section when you no longer need it.
    I try to make it a clear step by step instruction.
    Let me know at what point it isn't clear and I'll fix it.
    Peter

  • How do I delete the programs I no longer use or have looked into (example a bank I used to use and closed) how do I take that off my list

    I have cancelled some accounts and want to remove the address from my computer ie Cashmere Bank
    how do I do that

    '''Firefox''' [or '''(Alt) > Tools''']''' > Permissions Manager.'''<BR><BR>
    There is a search bar top left. Enter part of the site name so that all
    listings can be shown. Left click the first item. At the top right there is
    a button labeled '''Forget About This Site'''. Do this for each entry for that site.

  • How to give column heading for detailed list

    hi,
    we can get column-heading of basic list by text-element provided.
    but what are ways of giving column heading in detailed list ?

    HI,
    Based on the SY-LSIND value, you can have a different heading.
    top-of-page at line-selection.
    case sy-lsind.
    when 1.
    write:/ 'Heading for first list'.
    when 2.
    write:/ 'Heading for second list'.
    when 3.
    write:/ 'Heading for third list'.
    endcase.
    please see the link below it might help you
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba2eb35c111d1829f0000e829fbfe/content.htm
    *******please reward points if the information is helpful to you*************

  • How to create a table using subform if  lifecycle designer 7.1 not availabl

    hi,
    plis tell me how to create a table because i am using adobe lifecycle 6.1 and in the library
    there is no object for table..
    also tell me that if i have adobe lifecycle designer then which is better option and why?
    use table from library directly or create a table using subform...

    Hi Sweta,
    Create the interface attributes of type string and xtring type.
    Create node in the context of type graphics. bind the interface fields to the graphic node context element properties -
    Graphic content, field of xzstring type and mimetype to be string/any char data type of suitable length.
    In  layout drag and drop the image field and bind it to the graphic element.
    In yoour report programme-
    do the code as berlow to pass the graphic data -
    <i>CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
    p_object = 'GRAPHICS'
    p_name = '<mime type graphic name>'
    p_id = 'BMAP'
    p_btype = 'BCOL' "BMON if monochrome
    RECEIVING
    p_bmp = w_binary
    EXCEPTIONS
    not_found = 1
    internal_error = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.</i>
    in the call <form function module>
    pass the inerface values for
    xstring (graphic field) to be w_binary (import parameter of the previous method)
    and mime type  to be 'image/bmp'.
    This would work.
    Hope fully you may be able to see a tutorial on this soon ;).
    - anto.

  • Capture DB Table and column comments when creating new Business Area/Folder

    Does anyone know if it is possible to pull the DB table and column comments into Discoverer when creating new Business Area/Folders? Our developers take the time to put the information in the Db data dictionary and we would like to leverage it (reduce need for manually adding descriptions) ... has anyone done this?
    If there isn't a way to automatically do it, would there be any harm in using a sql script to populate the description fields from the DB data dictionary directly into the EUL tables appropriate?
    I have been searching through documentation and forums for information - with no luck at this point.
    Thanks!

    Hi Seymour
    You can add column comments to views as well, as this example will show:
    CREATE OR REPLACE FORCE VIEW MY_SEQUENCE
    (SEQ_ID, SEQ_NAME, SEQ_NEXTVAL)
    AS
    SELECT "SEQ_ID","SEQ_NAME","SEQ_NEXTVAL" FROM EUL5_SEQUENCES;
    COMMENT ON COLUMN MY_SEQUENCE.SEQ_NAME IS 'The sequence';
    So you could add the comments at the view level and then refresh Discoverer.
    Best wishes
    Michael

  • Proper use of a Lookup table and adaptations for NET

    Hello,
    I need to create a few lookup tables and I often see the following:
    create table Languages
    Id int identity not null primary key (Id),
    Code nvarchar (4) not null,
    Description nvarchar (120) not null,
    create table Posts
    Id int identity not null primary key (Id),
    LanguageId int not null,
    Title nvarchar (400) not null,
    insert into Languages (Id, Code, Description)
    values (1, "en", "English");
    This way I am localizing Posts with language id ...
    IMHO, this is not the best scheme for Languages table because in a Lookup table the PK should be meaningful, right?
    So instead I would use the following:
    create table Languages
    Code nvarchar (4) not null primary key (Code),
    Description nvarchar (120) not null,
    create table Posts
    Id int identity not null primary key (Id),
    LanguageCode nvarchar (4) not null,
    Title nvarchar (400) not null,
    insert into Languages (Code, Description)
    values ("en", "English");
    The NET applications usually use language code so this way I can get a Post in English without using a Join.
    And with this approach I am also maintaining the database data integrity ...
    This could be applied to Genders table with codes "M", "F", countries table, transaction types table (should I?), ...
    However I think it is common to use int as PK in lookup tables because it is easier to map to ENUMS.
    And know it is even possible to map to Flag Enums so have a Many to Many relationship in an ENUM.
    That helps in NET code but in fact has limitations. A Languages table could never be mapped to a FLags Enum ...
    ... An flags enum can't have more than 64 items (Int64) because the keys must be a power of two.
    A SOLUTION
    I decided to find an approach that enforces database data integrity and still makes possible to use enums so I tried:
    create table Languages
    Code nvarchar (4) not null primary key (Code),
    Key int not null,
    Description nvarchar (120) not null,
    create table Posts
    Id int identity not null primary key (Id),
    LanguageCode nvarchar (4) not null,
    Title nvarchar (400) not null,
    insert into Languages (Code, Key, Description)
    values ("en", 1, "English");
    With this approach I have a meaningfully Language code, I avoid joins and I can create an enum by parsing the Key:
    public enum LanguageEnum {
    [Code("en")
    English = 1
    I can even preserve the code in an attribute. Or I can switch the code and description ...
    What about Flag enums? Well, I will have not Flag enums but I can have List<LanguageEnum> ...
    And when using List<LanguageEnum> I do not have the limitation of 64 items ...
    To me all this makes sense but would I apply it to a Roles table, or a ProductsCategory table?
    In my opinion I would apply only to tables that will rarely change over time ... So:
        Languages, Countries, Genders, ... Any other example?
    About the following I am not sure (They are intrinsic to the application):
       PaymentsTypes, UserRoles
    And to these I wouldn't apply (They can be managed by a CMS):
       ProductsCategories, ProductsColors
    What do you think about my approach for Lookup tables?
    Thank You,
    Miguel

    >>IMHO, this is not the best scheme for Languages table because in a Lookup table the PK should be meaningful, right?<<
    Not necessarily. The choice to use, or not to use, a surrogate key in a table is a preference, not a rule. There are pros and cons to either method, but I tend to agree with you. When the values are set as programming terms, I usually use a textual value
    for the key. But this is nothing to get hung up over.
    Bear in mind however, that this:
        create table Languages
          Id int identity not
    null primary key
    (Id),     
          Code nvarchar (4)
    not null, Description nvarchar
    (120) not
    null,
    is not equivalent to
        create table Languages
          Code nvarchar (4)
    not null primary
    key (Code),     
          Description nvarchar (120)
    not null,
    The first table needs a UNIQUE constraint on Code to make these solutions semantically the same. The first table could have the value 'Klingon' in it 20 times while the second only once.
    >>However I think it is common to use int as PK in lookup tables because it is easier to map to ENUMS.<<
    This was going to be my next point. For that case, I would only change the first table to not have an identity assigned key value, as it would be easier to manage at the same time and manner as the enum.
    >>. A Languages table could never be mapped to a FLags Enum ...<<
    You could, but I would highly suggest to avoid any values encoded in a bitwise pattern in SQL as much as possible. Rule #1 (First Normal Form) is partially to have 1 value per column. It is how the optimizer thinks, and how it works best.
    My rule of thumb for lookup (or I prefer the term  "domain" tables, as really all tables are there to look up values :)), is all data should be self explanatory in the database, through data if at all possible. So if you have a color column,
    and it contains the color "Vermillion", and all you will ever need is the name, and you feel like it is good enough to manage in the UI, then great. But bear in mind, the beauty of a table that is there for domain purposes, is that you can then store
    the R, G, and B attributes of the vermillion color (254, 73, 2 respectively, based on
    http://www.colorcombos.com/colors/FE4902) and you can then use that in coding. Alternate names for the color could be introduce, etc. And if UserRoles are 1, 2, 3, and 42 (I have seen worse), then
    definitely add columns. I think you are basically on the right track.
    Louis
    Without good requirements, my advice is only guesses. Please don't hold it against me if my answer answers my interpretation of your questions.

  • Insert to 2 Tables and Auto-Increment

    I applied the Insert To 2 Tables Wizard and then added an Auto-Increment
    behavior to auto increment a field in the master table. BUT - I also
    need to auto-increment a field in the detail table. The AutoIncrement
    behavior only offers fields for the master table. So - how do I
    auto-increment the detail table?
    I know I could create a custom trigger - but how do you grab the primary
    key from the DETAIL table?
    Alec Fehl, MCSE, A+, ACE, ACI
    Adobe Community Expert
    AUTHOR:
    Microsoft Office 2007 PowerPoint: Comprehensive Course (Labyrinth
    Publications)
    Welcome to Web Design and HTML (Labyrinth Publications)
    CO-AUTHOR:
    Microsoft Office 2007: Essentials (Labyrinth Publications)
    Computer Concepts and Vista (Labyrinth Publications)
    Mike Meyers' A+ Guide to Managing and Troubleshooting PCs (McGraw-Hill)
    Internet Systems and Applications (EMC Paradigm)

    Got it. Advanced tab of the AutoIncrement server behavior - remove the
    master table and add the detail table. Then return to basic tab and add
    the appropriate field.
    Alec Fehl, MCSE, A+, ACE, ACI
    Adobe Community Expert
    AUTHOR:
    Microsoft Office 2007 PowerPoint: Comprehensive Course (Labyrinth
    Publications)
    Welcome to Web Design and HTML (Labyrinth Publications)
    CO-AUTHOR:
    Microsoft Office 2007: Essentials (Labyrinth Publications)
    Computer Concepts and Vista (Labyrinth Publications)
    Mike Meyers' A+ Guide to Managing and Troubleshooting PCs (McGraw-Hill)
    Internet Systems and Applications (EMC Paradigm)

  • Table and figure numbering in multi-chapter book

    Using InDesign CC 2014 I am editing a book that consists of 23 chapters. Each chapters are added to the book separately. There are 5 levels of titles, level 1-4 is numbered (first level is the chapter title), the 5th is not.The numbering of the titles in chapters works very well, but I have problem with numbering of figures and tables.
    The numbering of tables and figures should look like this: Table 1.1., 1.2., etc, Figure 1.1., 1.2., etc. The first number is always the chapter number, the second is the number of table/figure in order - within the chapter. I want the second number to re-start in each chapter. But if I select "continue from the previous number" (or something like this - I have Hungarian version, tried to translate to English), the numbering does not re-start with each new chapter, however gets the correct ^H number. If I select "start", all tables and figures will be ^H.1.
    My question is: what should I do on one hand to be able to use (and sync) all formats (including tables' and figures' captions with numbers) in the whole book, in the same time making the figures' and tables' numbering having ^H followed by a number re-starts in each chapter? For this, the table and figure number should be which level on the list? What to do with "restart numbering at this level after" option?
    I have searched the www from A to Z and back but could not find the answer. Please, help me! Oh, and please, write the how-to description step-by-step (maybe illustrated?), as I use Hungarian version, which makes applying the suggestions a bit difficult. Thank you, in advance, for your kind help!

    Darn Framemaker and its use of phantom numbering placeholders.
    But seriously thanks - worked line a champ
    Bob Geib
    Design & Test Engineer
    Microwave Filter Components
    Aeroflex Microelectronic Solutions
    350 Kennedy Drive
    Hauppauge, NY 11788
    Direct: 631-404-3669
    Cell: 526-523-1265
    Email: [email protected]

  • How to identify combination of created and deleted Bank Details

    Hi Experts,
    I will develop a report similar to standard report RFKABL00. The requirement is to display the date, time, vendor number, vendor name, changed by, field name, company, purchasing org, new value and old value everytime a user make a change on the bank details (Bank Key and Bank Account only in XK02).
    The content of field name will be either Bank Key or Bank Account with its corresponding old and new value. Using transaction XK02, I tried to replace the Bank Account of the vendor and saved the data. The created and deleted values can be found in CDPOS using: objectclas: kred, tabname: lfbk and fname: key; but it is difficult to identify the correct combination of deleted and created values. I observed that for non-key fields in LFBK table there are entries for old and new values but for key fields like bank key and bank account they have nothing.
    How will we identify the correct combination of deleted and created values if there are many entries in CDPOS?

    Murali,
    As already specified in your previous thread. You can get the id using source code. or extend the CO and print the value of s2.
    Regards,
    Gyan
    www.gyanoracleapps.blogspot.com
    www.querenttech.com

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for