How do I connect two Queries?

Hello all,
How do I connect two Queries and add some numbers.
Here is what I am trying to do.
Query 1: Gets G/L Credit Amounts for Jan 2007  Feb 2007 March 2007.....Dec 2007
Query 2: Gets G/L Debit Amounts for Jan 2007 Feb 2007 march 2007.....Dec 2007
I need to put both these Queries in a worksheet one below the other and add the totals by each month.....so the final report looks something like this:
I am using two structures to hold the query values.
G/L Credit Amount        Jan 2007    Feb 2007.............Dec 2007
                                    +100         +200                   +400
G/L Debit Amount           -50           -100                     -200
Total                              50             100                      200
Also, I would like to allow the users to enter Year as a variable. Any suggestions?
Your help is greatly appreciated.

Venkata,
Thanks for your reply. Could you explain how I insert two query results into one worksheet? And, also how do I link the two structures ( one structure per query) so I can total the amounts by each month?
Thank you in advance.

Similar Messages

  • How do you connect two Apple ID's?

    How do you connect two Apple ID's to one another?

    Yes. You can sync multipl iDevices on the same computer using the same Apple ID. You can each have different configurations of apps, books, music, etc. or have identical configurations. In this way, however, your common data - contacts, mail, calendar will be the same on both iDevices.
    The Apple ID doesn't distinguish one phone from another, only how the phone will sync to a computer. The Apple ID is how iTunes knows to which computer a phone syncs. And, the Apple ID determines who is the registered owner of downloaded and purchased items via iTunes.

  • How do I connect two monitors to my macbook pro?

    How do I connect two monitors to my macbook pro?  This question applies to both DVI and VGA, as I might have to work with multiple sets of monitors.

    The MacBookPro only has enough horsepower in the video card for one external monitor.
    If you want two or more, you need a MacPro.
    Or a MacBook Pro and a Remote Desktop controlled MacMini.
    http://www.apple.com/remotedesktop/

  • HT5219 how can I connect two thunderbolt monitors to my macmini in windows 8 and bootcamp? Works fine in OSX

    how can I connect two thunderbolt monitors to my macmini in windows 8 and bootcamp? Works fine in OSX

    Did you try to hook up both monitors to the Belkin adaptor? Trying will determine if your monitor has a bad input port. See if the Belkin adaptor is the problem. I have never used that specific adaptor, but I have always had luck with the Dr. Bott's DVI for ADC adaptor. Best of luck.
    www.drbott.com

  • How do we connect two databases in Oracle other than Database Link?

    Good Morning,
    How do we connect two databases in Oracle other than Database Link?
    I am using Oracle 10g, I heard that we can connect two database in Oracle through ODBC. Is it possible? How?
    Thanks
    Nihar

    See if this helps.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358

  • How do you connect two monitors to macmini

    how do you connect two monitors to macmini

    Hello, is this the latest Mini?
    Video Card:
    HD Graphics 4000
    VRAM Type:
    Integrated
    Details:
    This model has an Intel HD Graphics 4000 graphics processor that shares memory with the system. Also see: What type of video system is provided by the Aluminum Mac mini models? Which are integrated and which are dedicated? Can the video be upgraded?
    Standard VRAM:
    512 MB*
    Maximum VRAM:
    768 MB*
    Details:
    *With 4 GB of RAM installed, this model uses 512 MB of RAM for graphics. With additional RAM installed, more RAM is reserved for graphics use.
    Display Support:
    Dual Displays
    Resolution Support:
    1920x1200*
    Details:
    *This model simultaneously supports 1920x1200 on an HDMI display or a DVI display using the included HDMI-to-DVI adapter and 2560x1600 on a Thunderbolt or Mini DisplayPort display or even a VGA display (with an optional Mini DisplayPort-to-VGA adapter, which is compatible with the Thunderbolt port).
    2nd Display Support:
    Dual/Mirroring*
    2nd Max. Resolution:
    2560x1600*
    Details:
    *This model simultaneously supports 1920x1200 on an HDMI or a DVI display (using the included HDMI-to-DVI adapter) and 2560x1600 on a Thunderbolt or Mini DisplayPort display or even a VGA display (with an optional Mini DisplayPort-to-VGA adapter, which is compatible with the Thunderbolt port).
    http://www.everymac.com/systems/apple/mac_mini/specs/mac-mini-core-i5-2.5-late-2 012-specs.html

  • How can I connect two ipods on the same computer ?

    Hello,
    My girlfriend has just bought a ipod nano. I have already a "classic" ipod. Do you know how can I connect the two Ipod on the sasme computer without loosing all my songs ? Is ti possible to select songs that she will transfer ?
    Thanks for your answer

    I am trying to contact a Nano to the same computer that has a Shuffle and Mini on it but it just doesn't want to update. I have been sitting fr about 3 hours now trying to make it work and cannot get anywhere. Can ANYONE help?
    Thanks.
    Do Apple not have an online help service? It seems a little strange for a company so large.

  • How do I connect two apple compuiters

    I would like to connect two apple computers together - how can I do it.

    And take 4x longer if not worse? and WHY and what is this for?
    Want to make one client and the other the server? Heck, how about old Fibre interconnect? can't go out and buy an XRAID box but that would.
    Do you want to use XSAN?
    Xsan is a powerful and scalable solution for storage consolidation. Now everyone in your organization can have fast, concurrent access to terabytes of centralized data. Built into OS X, Xsan allows any Mac with a Thunderbolt to Fibre Channel adapter to access an Xsan volume. OS X Server includes the Xsan Admin application for hosting and configuring Xsan volumes.
    http://www.apple.com/osx/server/features/
    Xsan is Apple Inc.'s storage area network (SAN) or clustered file system for Mac OS X. Xsan enables multiple Mac desktop and Xserve systems to access shared block storage over a Fibre Channel network. With the Xsan file system installed, these computers can read and write to the same storage volume at the same time. Xsan is a complete SAN solution that includes the metadata controller software, the file system client software, and integrated setup, management and monitoring tools.
    Xsan has all the normal features to be expected in an enterprise shared disk file system, including support for large files and file systems, multiple mounted file systems, meta data controller failover for fault tolerance, support for multiple operating systems, etc.
    Interoperability
    Xsan is based on the StorNext File System.[2] The StorNext File System and the Xsan file system share the same file system layout and the same protocol when talking to the meta data server. They also seem to share a common code base or very close development based on the new features developed for both file systems.
    The Xsan website claims complete interoperability[3] with the Quantum Corporation StorNext File System: "And because Xsan is completely interoperable with Quantum’s StorNext File System, you can even provide clients on Windows, Linux, and other UNIX platforms with direct Fibre Channel block-level access to the data in your Xsan-managed storage pool."[4]
    Quantum Corporation claims "Complete interoperability with Apple’s Xsan and Promise RAID and Allows Xsan and Xserve RAID to support AIX, HP-UX, IRIX, Red Hat Linux, SuSE Linux, Mac OS X, Solaris, and Windows clients, including support for 64 Bit Windows and Windows Vista."[5]
    http://en.wikipedia.org/wiki/Xsan

  • How to join these two queries

    Hi experts,
    I need to join two queries but not sure how:
    select id from test_table1;
    select *
      from table(f_function(null
                           ,null
                           ,1 -- the id
                           ,sysdate);One query has IDs needed to run the second query. Is there a way to join those two?
    The result should be all columns from test_table1 + all columns from f_function.
    Best regards,
    Igor
    Edited by: Igor S. on Mar 8, 2013 5:18 AM

    Hi,
    Igor S. wrote:
    select  *
    from  test_table1,
    table(
    f_function(
    null,
    null,
    id,
    sysdate
    select  *
    from  test_table1,
    table(
    f_function(
    null,
    null,
    id,
    sysdate
    ) xyz
    where test_table1.id = xyz.id
    /So these two queries are the same?Try it and see.
    You'll find that the 2nd one produces an error. But if you change it to
    select  *
      from  test_table1,
            table(
                  f_function(
                             null,
                             null,
                             id,
                             sysdate
                            )      -- No alias here
                 ) xyz             -- Alias here, instead
    where test_table1.id = xyz.id
    /Then, assuming f_function produces a column called id, it will work.
    Whether it produces the same results or not depends on what the function returns, and whether either id is NULL.
    If the id column that the function returns is the same as the id value that you pass to it, and is never NULL, then the 2 queries will produce the same results.
    Either way, each row of test_table1 will be joined to each row that the function produces with the argument(s) from that row. The column names produced by the function and the values in those columns are determined by the function; they do not need to have anything in common with any table. In practice, a function like f_function will usually not return an column that is always identical to any of its inputs, since that value is already available from the input.

  • How do I connect two ipod's to one computer

    I own an 5th Gen IPOD, I am buying my wife a Nano for Christmas. How do I connect both to the same computer, yet keep the ITunes and therefore IPOD update seperate?
    IPOD 30GB   Windows XP  

    See these articles about using more than one iPod on one computer, and with either one or more iTunes libraries.
    Multiple iPod installations.
    How to use multiple iPods with one computer.

  • How can I connect two PS3 to the same Linksys WRT54G correctly

    Hi,
    i'm trying to connect two PS3 to the same routeur without having conflicts. Everytime i try to update my game softwares it tells me error 80710723 or now 8002AD23. I gave the two PS3 different IP adresses, i opened all the ports that Playstation suggested me to open (http://playstation.custhelp.com/app/answers/detail/a_id/241) and gave them different DNS adresses but still they cannot download any software content without bugging the console. I also use a PC, Tablet and Phone with my wireless connection.
    thank you
    -François

    Well in this case the error code (80710723 ) is generated when the internet connection is slow. So you can try the following step:
    # Open up the browser and on the address bar type 192.168.1.1 that will open up the Router setup page.
    # Lower the MTU (Maximum Transmission Unit) from 1500 to 1400 or less (usually found on your router's main/ basic setup page)
    # Make the Channel Width to 20 MHz only and Channel to 6, 9, 11..
    #Adjust the following advanced wireless settings:
    ~~ Lower the beacon interval from 100 to 75
    ~~ Lower the fragmentation threshold from 2346 to 2306
    ~~ Lower the RTS threshold from 2347 to 2304

  • How can I combine two queries ? QoQ does not work

    I have one query where I just count the total qty coming in per month, something like:
    <cfquery name="qryIn" datasource="dbname">
    select count(orderNO) as totalIN,month
    where status = "IN"
    group by month
    </cfquery>
    I then have a second query to count the total qty going out per month
    <cfquery name="qryOut" datasource="dbname">
    select count(orderNO) as totalOut,month
    where status = "OUT"
    group by month
    </cfquery>
    I then use QoQ to combine both:
    <cfquery="qryTotal" dbtype="query">
    select
    totalIN,
    totalOUT
    from qryIN,qryOUT
    where qryIN.month = qryOUT.month
    </cfquery>
    The problem I am running into is that QoQ does not allow LEFT JOIN, so that if the month is in one query but not the other, it will not pick up that record. And that is throwing off my counts.
    How can I combine  both queries, and bypass QoQ to get a qty IN and qty Out value, per month ? and, for example, if qty in exists for one month and qty Out does not exists for that month, then qty Out will be zero for that month.
    I need this data to plot a chart.
    Thanks for any help provided.

    Do it in a single query to your database.  Here is part of it.
    select month
    , sum(case when when status = "IN" then 1 else 0 end) total_in

  • How do you connect two 27" LED Cinema Displays together?

    I currently have one screen connected to my MacBook Pro 2010.  How do I connect the second screen if I only have one Thunderbolt port?

    I Think they can be daisy chained.check your manual for more info to see if your Mac supports this
    John b

  • How do I connect two workstations to shared storage that allows them to work independently on the same project non-destructively?

    I plan to edit a feature length film using Adobe Premiere CC. I need to know the "Adobe-way" of connecting two workstations to shared storage that allows them to work independently on the same project non-destructively. Is Adobe Anywhere the answer? None of the humans I spoke to seem to know anything about their own product. I also cannot find a price for Adobe Anywhere, anywhere on the Adobe website.

    You need to contact Adobe on this:
    Adobe Anywhere for video

  • How do I connect two VMs in the same cloud service?

    I want to setup a DB cluster with two VMs in a single cloud service. My DB (Couchbase) requires being able to reference the other nodes by IP address or hostname. Since VMs change their IP everytime they restart I can't use that, and as far as I can tell
    hostname is the same for both VMs in a cloud service. But the Azure docs mention Azure provided name resolution (here https://msdn.microsoft.com/en-us/library/azure/jj156088.aspx). I can't find any information on how this service works, or how I find the permanent
    hostnames it assigns to my VMs within a cloud service. Is there anyway to find one VM from another within a cloud service that persists across restarts?

    Hi CanuckAlex;
    Thank you for your post.
    Virtual machines must be in a cloud service, which acts as a container and provides a unique public DNS name, a public IP address, and a set of endpoints to access the virtual machine over the Internet. The cloud service can optionally be in a virtual network.
    If a cloud service is not in a virtual network, the virtual machines in that cloud service can only communicate with other virtual machines through the use of the other virtual machines’ public DNS names, and that traffic would travel over the Internet.
    If a cloud service is in a virtual network, the virtual machines in that cloud service can communicate with all other virtual machines in the virtual network without sending any traffic over the Internet.
    If you place your virtual machines in the same standalone cloud service, you can take advantage of load balancing and availability sets. For details, see
    Load balancing virtual machines and
    Manage the availability of virtual machines. However, you cannot organize the virtual machines on subnets or connect a standalone cloud service to your on-premises network. Here is an example.
    If you place your virtual machines in a virtual network, you can decide how many cloud services you want to use to take advantage of load balancing and availability sets. Additionally, you can organize the virtual machines on subnets in the same way as your
    on-premises network and connect the virtual network to your on-premises network. Here is an example.
    Virtual networks are the recommended way to connect virtual machines in Azure. The best practice is to configure each tier of your application in a separate cloud service. This enables advanced user rights delegation through Role Based Access Control (RBAC).
    For more information, see
    Role Based Access Control in Azure Preview Portal. However, you may need to combine some virtual machines from different application tiers into the same cloud service to remain within the maximum of 200 cloud services per subscription.
    To connect virtual machines in a virtual network:
    Create the virtual network in the Azure Management Portal. For more information, see
    Virtual Network Configuration Tasks.
    Create the set of cloud services for your deployment in the Azure Management Portal to reflect your design for availability sets and load balancing with
    New > Compute > Cloud Service > Custom Create.
    When you create each new virtual machine, specify the correct cloud service and your virtual network. If the cloud service has been previously associated with your virtual network, its name will already be selected for you.
    Here is an example using the Azure Management Portal.
    To connect virtual machines in a standalone cloud service:
    Create the cloud service for your deployment in the Azure Management Portal with
    New > Compute > Cloud Service > Custom Create.
    When you create the virtual machine, specify the name of cloud service created in step 1. Alternately, you can create the cloud service for your deployment when you create your first virtual machine.
    Here is an example using the Azure Management Portal for the existing cloud service named EndpointTest.
    PS: One can assign static IP address to VM on Azure, You could refer to this
    link here.
    Hope this helps.
    Warm Regards;
    Prasant

Maybe you are looking for