Group 2 Tables Together

I have two tables, almost identical with the exception of a
couple fields for two separate departments. The fields I am
querying are fields present in both tables.
I am wanting to group the two tables together, and output
their results grouped together into one report.
How would one do this without getting ambiguous errors?

> SELECT avendor,yvendor,color,size,sku,orderdate
> FROM table1, table2
> WHERE orderdate >= #submitted.startdate# AND
orderdate <= #submitted.enddate#
As mentioned, the query doesn't indicate how table1 and
table2 are related. So the result is a CROSS JOIN. Probably not
what you want to do
http://en.wikipedia.org/wiki/Join_(SQL)#Cross_join
Its a good practice to always specify the column source when
using JOINS, either using an "alias" or the full table name. Even
if its not always required, it increases readability.
SELECT table1.avendor,
table1.vendor,
table1.color,
FROM table1 INNER JOIN table2
ON table1.someSharedColumn = table2.someSharedColumn
WHERE ...

Similar Messages

  • Group rows together and toggle / collapse them

    I'm trying to leave excel, but one thing I can't figure out is how to group rows together so i can collapse or expand them. I realize there are categories, but they won't work for me for a variety of reasons. What I simply want to do is take a few rows and group them with the main top row and be able to click to show/hide the subrows. that's simple. i want to do it manually for just some rows, not an entire table. i find category groups confusing and irritating, and they're not working correctly.
    How can I do this in numbers?

    Make sure that the input for the Sub Mix track says Bus 1.

  • How to group table rows using GroupedColumn?

    Hi all,
    i know by binding the grouping value to a context, it can merge rows into one. but this only works if the two rows are adjacent.
    if the context looks like this:
    value 1
    value 2
    value 1
    value 2
    it can not group them together
    how to group them together and merge the rows?
    thanks.

    Hi erv,
    U need to use the TableSorter class for this.
    You can download the TableSorter.java class from the tutorial Working with Tables in Web Dynpro.
    Here you can select the project A) Creating Tables and download the Ready-to-use project. The lick to download project is:
    [/docs/DOC-8061#46|/docs/DOC-8061#46]
    Once you have downloaded the tutorial, you can find the TableSorter.java class in this path
    TutWD_Table/src/packages/com/sap/tc/webdynpro/tests/utils
    For more information refer to this blog:
    [Enhanced Web Dynpro Java TableSorter for SAP NetWeaver 04s|/docs/DOC-8061#46]
    Regards,
    Sayan Ghosh

  • Mobility Group Table *MUST* be populated in each WLC in same mobility group

    For what it's worth,
    I recently discovered that when you have multiple controllers and want to implement Mobility Groups, more is needed than simply entering the same Default Mobility Group Name for each controller within the mobility group. The following is required:
    a) The IP address of the "Virtual" interface on each controller must be identical on each controller within the mobility group.
    b) The Default Mobility Group Name must be identical on each controller within the mobility group (case sensitive).
    c) The mobility table must be populated with an entry for each controller within the mobility group.
    Otherwise, you will see some inexplicable behavior such as:
    * LWAP access points refusing to change to a different controller, even if their primary controller is explicitly set and the LWAP is rebooted.
    * LWAP access points unable to find any other wireless controller other than the one pointed to by the "CISCO-LWAPP-CONTROLLER" DNS entry (presumably, this would also be the case if DHCP Option 43 is used to point the LWAP to a controller). Once the first controller reaches its max. capacity of LWAPs, no more LWAPs can join.
    * Even MASTER CONTROLLER MODE has no effect.
    Cisco TAC was able to explain the great mystery of the Mobilty Group Table to me. However, unless you know your problem is related to mobility groups issues, you might not know to start there (I know I didn't).
    The least difficult method I have found for populating the mobility group table is as follows:
    Build a text file with one entry for each controller in the mobility group as follows:
    Log into the GUI for each controller and selecting: Controller -> Mobility Management -> Mobility Groups, click the "EDIT ALL" button and copy the MAC and IP address from the text box into a text file using NOTEPAD. Repeat this for each controller, creating a new line for each:
    The format for the entries is as follows:
    00:1a:6c:91:22:A0 192.168.20.44
    00:1a:6c:91:22:B4 192.168.20.45
    Once the text file is completed (one entry for each controller in the mobilit group), click the EDITALL button and copy the entire contents of the text file and paste it into the text box on the controller GUI, click the APPLY button and click Save Changes. Repeat for each controller.
    Again, make sure that the following settings are IDENTICAL in each of the controllers in the Mobility Group:
    * The IP address of the "virtual" interface ( Controller -> interfaces ) must be the same on all controllers.
    * The "Default Mobility Domain Name" ( Controller -> General ) must be identical on each controller in the mobility group (note: the Mobility Domain Name is case sensitive).
    After making changes directly to the controllers, a "refresh from controller" in the WCS might be needed to get the WCS to attempt to synchronize itself with the controllers.
    Here is a link to the 4.2 Wireless Controller Configuration Guide which discusses this in greater detail.
    http://www.cisco.com/en/US/products/ps6366/products_configuration_guide_chapter09186a00808e638b.html
    It is unfortunate that there are currently no mechanisms in the WCS 4.2 to make these changes in bulk (i.e.: The WCS has no Controller Template to do this).
    Also, if you ever need to replace a controller, you will need to update the Mobility Group Table in each controller in the Mobility Group (since the tables will have the MAC address of the old controller which will now be different in the new replacement controller).
    Despite having used the "unified" product for some time now, there are still surprises from time to time. I just thought that I would share my experience for those who may want avoid it and/or who may be encountering any of odd the behavior described above.
    - John

    Hi John,
    Nice work with this very relevant info! Please post a short reply here so that we can give this the nice rating it deserves :)
    Thanks again!
    Rob

  • Group photos together

    Hi,
    I am making a movie made up of A LOT of still images, much like a stop motion animation. I am wondering if it is possible to group photos together once I have them how I want them so I can move them around like a single video clip.
    Or will I have to export it as a small video clip and import it again to do this?
    I'm using FCP 5.1 by the way
    Thanks in advance

    As reink says, exporting is the best way. Unless you have filmed these yourself as a stop motion animation as continuous jpeg file numbers, in which case you can import them into motion as an image sequence, resize the whole clip (not individual frames) and export as a video file from there.
    cheers
    Andy

  • Cost element group - Table name

    Hi Guru,
    Can any body knew cost element group - Table name
    Regards,
    Bharathi.S

    Hi,
    It's stored in SETNODE and SETLEAF tables (class '0102').
    Regards,
    Eli

  • Fund group table

    hi all,
    I am trying to find fund group table. I have created fund group from public sector --> fund mgt --> master data --> fund --> fund group. But as this is a hierarchy so it is only shown in the setnode and setleaf table. Is it also given at some other place.
    Thanks for your assistance.
    Regards,
    FS

    Hi ,
    do u want to get the same from SET IDs ?
    try this sample program
    RGSEX001
    regards
    Prabhu

  • Grouping Table Columns

    Hi All,
    In my webdynpro application we need to "Group Table Column".  I am using NWDS 2.0.9. The "Insert Group COlumn" feature is not there in NWDS 2.0.9. If so how ca i group my table columns. Can anyone provide me a solution for this.
    Regards,
    Divya

    Hi Divya,
    I have done this in my application too.
    I have used two tables,
    The things you need to do is,
    1. Create a scroll container
    2. Create 1st table,
    3. assign the columns coming under its header.
    4. create the 2nd table,
    5. assign the rest of the columns under that header.
    6. Table properties to be set
    7. Now make footer visible false for both the table.
    8. visible no of rows = -1
    9. assigning same context or model node to both the tables will make it as one table itself, and selecting row in one table will also select same row in other table.
    10.Dont keep wrapping as true in any table cell editor, because if there occurs any wrapping in one table, the alignment of rows will be disturbed for both.
    11.And using scroll container instead of footer will not create the scrolling event of footer in the application.
    This will solve your problem.
    Mohak.

  • Possible new feature for SQL Data modeler: grouping tables by subfolder/

    When creating models of more than 500 tables. it would be nice if there was a way to be able group sets of tables into subfolders.
    while I might have a centralized schema, meaning the physical schema inside a database can have all 500 tables.
    for example:
    I might choose to group tables by product.
    HR folder contains all my HR_<tables>
    OrderEntry folder contains all my OE_<tables>
    Inventory folder conatins all my INV_<tables>
    this will help to view in the explorer window when searching for a table.

    I might choose to group tables by product.
    HR folder contains all my HR_<tables>
    OrderEntry folder contains all my OE_<tables>
    Inventory folder conatins all my INV_<tables>You can use subviews for that. Subview can be created in different ways:
    - drag&drop from browser
    - using selected objects on diagram
    - context menu for table in browser
    - context menu for subview in browser - you can create similar subview and use it as starting point
    - context menu for schema object in relational model - such subview becomes schema bound - you can update it later with tables added/removed to/from that svchema
    Philip

  • How to maintain TEXT ID GROUP (table TTXERN)

    Dear SAP,
    I am having a problem on how to maintain TEXT ID GROUP (table TTXERN). Where is it configured and why after upgraded to ECC6, this table doesn't cover all data availbale in table TTXER?
    Your expert advice is realy much appreciated. will give points for those who help me out this problem.
    TQ
    Regards,
    Nazrul

    You need to run the program SDTXT1AID, it will list all entries present in TTXER but missing in TTXERN.
    It is very common to come across this issue during SAP upgrade.
    You can refer to the std documentation of the program &/or Google it to find further details

  • Group documents together like blog site

    he
    im trying to make a central place for all of our manuals.
    i did like the way a blog site is working,
    unfortunately your not able to add word or pdf file in a blog.
    are there other way's to group documents?
    we are using office 365 sharepoint 2013
    Kind Regards,
    Arie Guijt

    Hi,
    According to your post, my understanding is that you wanted to group documents together like blog site.
    I recommend to use content search web part to achieve what you want.
    For more information, you can refer to:
    Using the Content Search web part (and understanding SP2013 search)
    Using Content Search In SharePoint 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • PSE 4 Docking and Grouping Palettes together

    I'm looking in my manual (page 38)about how to group palettes together and how to dock them together. This whole section seems to be written by someone who hasn't ever really used PSE4.
    What is the difference between grouping palettes together and docking palettes together? And how the heck to I do it?
    What I want is to have my little palettes with there tabs right next to each other kind of like a filing system so when I click on a tab that is the palette that shows up on top. No need for all the expanding and contracting. That's pretty much how it looked in PSE 2.0.

    First of all, drag your palettes out of the bin. Then click the arrow at the upper right of each one and uncheck "close to palette bin.." Then drag the
    tab of one palette onto the tab of another one, the same way you can do in PE2. They should combine into one multi-tabbed palette.

  • Query that link two tables together

    I am using this query to extract  Account Payable data:
    SELECT T0.DocNum, T0.DocStatus, T0.DocDate, T0.DocDueDate, T0.CardCode, T0.CardName, T0.NumAtCard, T0.DocTotal FROM Akron.dbo.OPCH T0
    How would I also add the unique number for each individual payment from these tables?
    OVPM and VPM2.
    What field links these 2 tables together?

    Hi,
    You may check this: Incoming Payments Report
    Replace all INV with PCH and RCV with VPM
    Thanks,
    Gordon

  • Aggregate query on global cache group table

    Hi,
    I set up two global cache nodes. As we know, global cache group is dynamic.
    The cache group can be dynamically loaded by primary key or foreign key as my understanding.
    There are three records in oracle cache table, and one record is loaded in node A, and the other two records in node B.
    Oracle:
    1 Java
    2 C
    3 Python
    Node A:
    1 Java
    Node B:
    2 C
    3 Python
    If I select count(*) in Node A or Node B, the result respectively is 1 and 2.
    The questions are:
    how I can get the real count 3?
    Is it reasonable to do this query on global cache group table?
    I have one idea that create another read-only node for aggregation query, but it seems weird.
    Thanks very much.
    Regards,
    Nesta
    Edited by: user12240056 on Dec 2, 2009 12:54 AM

    Do you mean something like
    UPDATE sometable SET somecol = somevalue;
    where you are updating all rows (or where you may use a WHERE clause that matches many rows and is not an equality)?
    This is not something you can do in one step with a GLOBAL DYNAMIC cache group. If the number of rows that would be affected is small and you know the keys or every row that must be updated then you could simply execute multiple individual updates. If the number of rows is large or you do not know all the ketys in advance then maybe you would adopt the approach of ensuring that all relevant rows are in the local cache grid node already via LOAD CACHE GROUP ... WHERE ... Alternatively, if you do not need Grid functionality you could consider using a single cache with a non-dynamic (explicitly loaded) cache group and just pre-load all the data.
    I would not try and use JTA to update rows in multiple grid nodes in one transaction; it will be slow and you would have to know which rows are located in which nodes...
    Chris

  • Is there anyway to group channels together

    I hve the Spanish add on for example, and the spanish channels are all over the dial. I'd like to group together for channel surfing, how do I do it?
    For Example, i'd like to group 1663, 1724,1549, 1685, 1686, 1540, 1680, 1681, 1536, 1702-1707, 1563, 10, 277, 23, 20, 1722, 1520, 1741, 1521, 1503, 1523 ------you get the idea. I want to be able to hit up or down arrow and stay within the channels I've group without having to look at the guide and try to figure out what the next posible station is with the programming I want. Can you do this somehow? i'm an educational TV fan to and I'd like to group together the Dsicorvery, history, PBS, Net Geo adn so forth too. I want to channel surf without missing some of my favoite channels, how do I group them together so I can channel surg with the up/down arrows?
    Thanks!
    MiFaDa  

    Verizon allows you to create two channel groups, Favorites1 and Favorites2. These can be set from either the options key on the remote, or by selecting Favorites in  Menu>'settings. Unfortunately there are only two such groups, and only 1 can be 'active' at one time.
    Stetting them up can be quite tedious because you can either add all channels to the favorites list, and then delete the ones you don't want one by one, or you can just add the channels to the favorites list one by one.
    You can then set your STB/DVR to only tune to channels  that are in the currently selected favorite group with channel up/channel down. The channels that are not in the currently selected favorite channel list will be skipped over by channel up/down, but are still accessible by entering the channel number they are on.

Maybe you are looking for