Different Datasources and QoQ

I have to read tables from two different datasources, so I us QoQ
My first query :
<cfquery name="qry1" datasource="db1">
select table1.name,
table1.phone,
table1.empID
from table1
</cfquery>
My second query :
<cfquery name="qry2" datasource="db2">
select table2.empID,
table2.address,
table2.city
from table2
</cfquery>
Then I combine the two using QoQ:
<cfquery name="qry" dbtype="query">
select table1.name,
table1.phone,
tabel1.empId,
table2.address,
tablbe2.city
from table1, table2
where table1.empID = table2.empID
</cfquery>
This works and gives me what I want. Now the requirement is  to find all info from table1 even if there are no mathches, so I have to use left join but QoQ seems very limited and will not allow left joins.
How do I read tables from two different datasoruces and then get all info from one table regardless if it is not in the other table, if my above method is incorrect ? (I just typed this so there could be typos)
Thanks

If I just want to combine all the data from both tables, would I just have :
<cfquery name="qry" dbtype="query">
select table1.name,
table1.phone,
tabel1.empId,
table2.address,
tablbe2.city
from table1, table2
</cfquery>
It seems like if I take out the WHERE clause, it does not like it.

Similar Messages

  • Using different datasources and different view objects.. (ADF 11g)

    In our application we have the need for using two different datasource (an old version and a new verision) - but not at the same time.
    Isn't it possible to base a viewobject on top of two sub viewobjects and run time decide which sub viewobject to use?
    If possible - could someone please show some code examples?
    Thanks...

    Hi,
    no, not exactly. You can have polymorphic views, but the use case is a different. The transaction is maintained by the AM, so if you want to connect to different data sources then you have to connect to them when starting the application, For this you can configure it for dynamic JDBC connect
    Frank

  • Different templates with different datasource files

    Hi All,
    Can someone tell me how we can have two different templates with different datasource files in one BIP report.
    I need PDF template based on one xml file and CSV teamplate based on another in one report.
    Thanks.

    you can have two data-set or query , and select concatenated data and have a single xml file.
    But pdf template will look at those, dataset in the xml, which you want. and CSV will look only on the other dataset.
    what method are you using for CSV ?

  • Datasources and Extract structure

    Hi guys,
    I am pretty confused about DataSources and Extract structure.
    Can someone please explain it me in simple words.

    Hi Zubin,
    Data Source is a consoliated list of fields available and the extract structure is a data dictionary structure which illustrates the fields with additional technical elements like DATA ELEMENT , DOMAIN ans so on...
    To make it more clear look at this description from F4 help:
    A DataSource is an object for retrieving data. The DataSource is localized in the OLTP system.
    It has
    an extract structure,
    an extraction type, and
    an extraction method.
    The extract structure describes the fields of the internal table that contain the extracted data. The extraction type describes which type of extractor the DataSource uses. The extraction method extracts the data and transfers it into an internal table with the same type as the extract structure.
    The DataSource also contains information on the type of data that it stages, for example, attributes, transactional data, hierachies, or texts. It can also support different types of data update.
    Extract Structure for a DataSource
    The extraction structure for a data source shows the format in which the DataSource, or the extractor for the DataSource, transfers its data.
    A data element must be assigned to each field of the extraction structure. This allows in the Business Information Warehouse an intelligent mapping between field names and InfoObjects using just this data element.
    The extract structure must be created in the DDIC as a dictionary structure or transparent table. A view is not permitted here since it would then not give you the option to add an append.
    Appends enable you to convert your individual requirements and own "Business Logic" in the extraction process. You can fill the fields in the append using function enhancements.
    Hope this helps
    Thanks,
    Raj

  • Business scenarios on SD and MM modules for generic datasources and enhance

    Hi,
      Can anybody send some documents on SD and MM module on generic datasource and on enhancements.Pl send it to my MailID:[email protected]
    Thanks,
    Chinna

    Hi,
    MM Process flow:
    The typical procurement cycle for a service or material consists of the following phases:
    1. Determination of Requirements
    Materials requirements are identified either in the user departments or via materials planning and control. (This can cover both MRP proper and the demand-based approach to inventory control. The regular checking of stock levels of materials defined by master records, use of the order-point method, and forecasting on the basis of past usage are important aspects of the latter.) You can enter purchase requisitions yourself, or they can be generated automatically by the materials planning and control system.
    2. Source Determination
    The Purchasing component helps you identify potential sources of supply based on past orders and existing longer-term purchase agreements. This speeds the process of creating requests for quotation (RFQs), which can be sent to vendors electronically via SAP EDI, if desired.
    3. Vendor Selection and Comparison of Quotations
    The system is capable of simulating pricing scenarios, allowing you to compare a number of different quotations. Rejection letters can be sent automatically.
    4. Purchase Order Processing
    The Purchasing system adopts information from the requisition and the quotation to help you create a purchase order. As with purchase requisitions, you can generate Pos yourself or have the system generate them automatically. Vendor scheduling agreements and contracts (in the SAP System, types of longer-term purchase agreement) are also supported.
    5. Purchase Order Follow-Up
    The system checks the reminder periods you have specified and - if necessary - automatically prints reminders or expediters at the predefined intervals. It also provides you with an up-to-date status of all purchase requisitions, quotations, and purchase orders.
    6. Goods Receiving and Inventory Management
    Goods Receiving personnel can confirm the receipt of goods simply by entering the Po number. By specifying permissible tolerances, buyers can limit over- and underdeliveries of ordered goods.
    7. Invoice Verification
    The system supports the checking and matching of invoices. The accounts payable clerk is notified of quantity and price variances because the system has access to PO and goods receipt data. This speeds the process of auditing and clearing invoices for payment.
    Common Tables used by SAP MM:
    Below are few important Common Tables used in Materials Management Modules:
    EINA Purchasing Info Record- General Data
    EINE Purchasing Info Record- Purchasing Organization Data
    MAKT Material Descriptions
    MARA General Material Data
    MARC Plant Data for Material
    MARD Storage Location Data for Material
    MAST Material to BOM Link
    MBEW Material Valuation
    MKPF Header- Material Document
    MSEG Document Segment- Material
    MVER Material Consumption
    MVKE Sales Data for materials
    RKPF Document Header- Reservation
    T023 Mat. groups
    T024 Purchasing Groups
    T156 Movement Type
    T157H Help Texts for Movement Types
    MOFF Lists what views have not been created
    A501 Plant/Material
    EBAN Purchase Requisition
    EBKN Purchase Requisition Account Assignment
    EKAB Release Documentation
    EKBE History per Purchasing Document
    EKET Scheduling Agreement Schedule Lines
    EKKN Account Assignment in Purchasing Document
    EKKO Purchasing Document Header
    EKPO Purchasing Document Item
    IKPF Header- Physical Inventory Document
    ISEG Physical Inventory Document Items
    LFA1 Vendor Master (General section)
    LFB1 Vendor Master (Company Code)
    NRIV Number range intervals
    RESB Reservation/dependent requirements
    T161T Texts for Purchasing Document Types
    Transaction Codes:
    RFQ to Vendor - ME41
    Raising Quotation - ME47
    Comparison of Price - ME49
    Creation of PO - ME21N
    Goods Receipt - MIGO
    Invoice (Bill PAssing) - MIRO
    Goods Issue - MB1A
    Physical Inventory - MI01( Create doc)
    MI04 (Enter Count)
    MI07 (Post)
    Also please check this links.
    http://www.sapgenie.com/sapfunc/mm.htm
    http://www.sap-basis-abap.com/sapmm.htm
    SD Process Flow:
    The sales documents you create are individual documents but they can also form part of a chain of inter-related documents. For example, you may record a customer’s telephone inquiry in the system. The customer next requests a quotation, which you then create by referring to the inquiry. The customer later places an order on the basis of the quotation and you create a sales order with reference to the quotation. You ship the goods and bill the customer. After delivery of the goods, the customer claims credit for some damaged goods and you create a free-of-charge delivery with reference to the sales order. The entire chain of documents – the inquiry, the quotation, the sales order, the delivery, the invoice, and the subsequent delivery free of charge – creates a document flow or history. The flow of data from one document into another reduces manual activity and makes problem resolution easier. Inquiry and quotation management in the Sales Information System help you to plan and control your sales.
    Transaction Codes:
    Inquiry - VA11/VA12/VA13
    Quotation - VA21/VA22/VA23
    Sales Order - VA01/VA02/VA03
    Delivery - VL01N/VL02N/VL03N
    Billing/Invoicing - VF01/VF02/VF03
    Also please check this links.
    http://www.sapgenie.com/sapfunc/sd.htm
    http://www.sap-basis-abap.com/sapsd.htm
    http://www.sapgenie.com/abap/tables_sd.htm
    Production Planning:
    For example, consider a pump manufacturing plant, based on the customer requirement, planning is done for future months ( we plan for a qty on particular
    date). Pump is an assembly - were main component would be manufactured in the plant and others would be procured. As PP, we are concerned only in the inhouse
    manufacturing but the final assembly (considering BOM) can be done only if the procured components are available. MRP helps in planning the shortage, on
    particular date based on the planned date. Work center (ex. lathe) place the components are machined/assembled (were the operation is done). Sequence of
    operation is routing (lead time scheduling data is got from routing). In the MRP Run,basic or lead time scheduling (need to know when to start/finish date)
    is done. On creation of the production order, system checks for which BOM and routing to be picked up (if there are many routings or BOM for that particular
    finished product). Availabilty checks for material,PRT and capacity needs to be done. on release of the order, confirmation of the order can be done (on
    completion of the order or after manufacturing the quantities). GI and GR have to be done.PP flow ends here
    step 1: creation of master data (Material master,BOM,Work center,Routing)
    step 2: Planning - can be done by Planned independent requirement (MD61), Independent requirement (MD81).
    we plan for a quantity, on which date (it would be finish date).
    step 3: MD04 -stock/requirement lsit (plan made can be viewed in MD04)
    step 4: MRP run - MD02, PIR is converted into Planned order
    step 5:Planned order to be converted production order - CO40, CO41
    step 6: production order to be released - CA02
    step 7: confirm the production order (order confirmation-CO15 (after which GI and GR is done)
    assign pts if helpful...

  • Loading the cube from 3 datasources and getting 3 records for each keyfield

    Hi All,
    I am loading an InfoCube from 3 separated datasources. These 3 datasources are UD Datasources and their unique source system is UD Connect.
    Each of the datasource contains a unique key field 'Incident Number' (same as we use have in Datasources for DSO).
    The problem is, when I am loading data with these 3 datasources to the cube, for each 'Incident number' there becomes 3 records.
    We have reports on this Infocube and the report also displays 3 records for each incident number.
    If I remove Incident Number key field from 2 of the Datasources, the data from these datasources do not reach to the Cube.
    For many of you, this may be a minor problem ( or may not be a problem at all !!! ) , but as a New Joinee in SAP field, this has become a showstopper issue for me.
    Please suggest.
    Thanks in Advance.

    Hi Pravender,
    Thanks for your interest.
    The scenario is, I have 3 datasources form the same source system, All the 3 datasources have different fields except 'Incident Number'. So, each and every field has only one value in the report. But due to 3 separate datasources, it creates 3 records displahying values of each datasource in a separate record.
    There is no field in the query output which is having different values for the different source systems. Due to 3 records in the cube, one record will contain the value for a particular field and the other two records will show a Blank for that field.
    Regards.

  • Using two different datasource driver into a transaction

    Hi all,
    i have two database : one under Informix and another under Oracle.
    Well, well, i have declared two datasources in my apllicationserver ( Sun ONE 7).
    I have to use a session EJB to write into the two databases some data and i have to open an UserTransaction to deal with it.
    The flow is :
    - open the UserTransaction
    - Get the connection from the first datasource
    - launch the INSERT query in Informix
    - Get the connection from the second datasource
    - launch the INSERT query in Oracle
    My doubt is : Will the transaction work fine even if i have to use two different connection from two different datasources ?
    Using only one database the transaction work fine.
    Cheers.
    Stefano

    Hi,
    This will work correctly if you use XA drivers (XADataSource instances).
    You can check the vendor docs to see what exact classes you need to deploy for each database.
    Beware of the pitfall: if you don't use XA drivers then commit might very well appear to work, but rollback won't.
    Also, don't forget to close the connections.
    Hope that helps,
    Guy
    Atomikos TransactionsJTA - visit our new JTA forum at http://www.atomikos-support.com

  • Extraction from different datasources

    hi,
    my problem is we need some fields from one datasource and some in other and some in another.so how can i extract these fields and can use them .can any body give a solution how to achive this.or can we extract the fields from the tables in r/3 which is better option.

    Sekhar
    There are 3 options of doing this :
    Option 1:- If fields that you want from different datasources are related to one particular application area say purchasing/sales then you can enhance the base datasource(contains max no of fields you want) with the required fields from other data sources ...write an ABAP user exit to populate these fields .
    Option 2 :- You always have option of creating generic data source based on view/infoset query extraction/function module .
    Option 3 : If the required fields are from one particular application area then extract data from these data sources into respective ODS objects . Then you can manipulate the data into Infocube/ODS on top of these base ODS objects if it suits ur requirement.

  • Dynamically connecting to two different DataSources in ADF BC application.

    Hi All,
    I have a requirement where my ADF BC application need to connect to different data bases(connections maintined as datasources in OAS) depending on the user logs in.
    I have two databases schemas TENCA and TENUS for which I have created a datasources with jndi loaction names as jdbc/TENCA and jdbc/TENUS in OAS and I have hardcorded jdbc/TENCA in the JDev 10.1.3.2 for the Appln Model ServiceImpl by editing the configurations of ServiceImpl and deployed the ADF BC application on OAS with this I was able to access data of TENCA schema but not the TENUS. IS there any way I can dynamically point DAF BC appln to different datasources during appln start up? Please assist.
    Thanks,
    Muniraj

    Thanks Timo,
    link: ADF BC: Choosing between two identical DB schemas on application startup
    looks like give more closer solution for my problem but still..
    Thanks,
    Muniraj

  • Difference datasource and txdatasource

    Hi,
    What exactly is the difference between a datasource and a txdatasource..? I
    know that the txdatasource is to support transactions and all but let us say
    if I am using the oracle driver (type 4 from classes12.zip which I am
    assuming is a non-XA driver ????) what additional stuff does the weblogic
    server do when I chose the tx version..??
    thx,
    A

    Hi Raghu,
    When you use TXDataSource with non-XA backing driver,
    weblogic will make sure that all operations within a transaction
    go through the same pool connection, that first participated in the
    transaction.
    This approach has some disadvantages. For example, such datasource
    can not be used for transactions that span between different databases.
    By the way, since 8.1.7 classes12.zip contains XA datasource
    that can be used to create normal TXDataSource.
    Regards,
    Slava Imeshev
    "Raghu Arni" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    What exactly is the difference between a datasource and a txdatasource..?I
    know that the txdatasource is to support transactions and all but let ussay
    if I am using the oracle driver (type 4 from classes12.zip which I am
    assuming is a non-XA driver ????) what additional stuff does the weblogic
    server do when I chose the tx version..??
    thx,
    A

  • Etraction from different datasources

    hi,
    my problem is we need some fields from one datasource and some in other and some in another.so how can i extract these fields and can use them .can any body give a solution how to achive this.or can we extract the fields from the tables in r/3 which is better option.

    Hello Sekhar,
    you can have a single infosource created for two different datasources. Select the fields accordingly and map the transfer rules.
    You can process with the load to data target thro' updte rules by the usual procedure.
    You can also have a generic datasource created by creating a view if you know the base R/3 tables and have common key fields in both the tables.
    Hope this helps..
    thanks,

  • My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    My serial number for Logic Studio doesn't work. I used one from a different box and it worked. How can I get a new number?

    http://support.apple.com/kb/TS2005
    http://support.apple.com/kb/HT1861
    https://ssl.apple.com/support/proapps/serialnumbers/

  • I send an email from my Iphone to a friend.  My friend receives it on her Iphone, but as text message.  She replies and it goes back to my daughter's phone, a completely different email and phone number.  Why?

    I send an email from my Iphone to a friend.  My friend receives it on her Iphone, but as text message.  She replies and it goes back to my daughter's phone, a completely different email and phone number.  Why?

    We went through my friend's phone and my daughter's email and phone number are not in it.  I have never given my daughter's iphone number to my friend.  Is it something to do with gmail or my apple id?  My daughter (14) has been using my computer as her "base" for HER Iphone. 
    My friend does use her iphone number as an email address as well.
    For instance:  her phone number might look like this:  (493) 305-3958
    and her email address would look like this:  [email protected]
    If I Iphone/email my friend, she receives it as a text message.  Then if she replies to that text message, it goes to my daughter's phone and not mine.  It's completely crazy!  We searched her phone contacts and did not find my daughter's phone number anywhere or attached anywhere to mine.  Since when does Iphone emailing wind up in the text messaging area?

  • Single sign-on and different usernames and passwords

    Hello,
    I am building a Portal with WLPS 3.5 and WLS 6.0. I tried to get
    information about the background of single sign-on.
    I understand, that I need a Realm (i.e. LDAP Realm) to authenticate the
    user for the first login to the portal (with username and password).
    Now I would like to integrate my webmail-programm (to get emails from
    Lotus Notes via Internet) as a portlet.
    For my understanding the user has to authorizate to get access to webmail.
    Therefore I create a ACL for webmail and this ACL is assigned to my
    security Realm.
    I would like the portlet to show after login the number of mails for the
    specific user. But where are the username and password for webmail stored
    and how are they received and forwarded?
    I understand that my ACL included all users that have access to webmail
    (i.e. all users). But I only want emails for the specific user.
    Does WLS get all usernames and passwords while the first login? Do I have to
    implement a algorithmen to get the specific username and password for the
    requested resource in my portlet?
    Has anyone solved a similar problem or can tell me where I can get more
    information. I read the WebLogic Security document but I cant find a
    answer to my questions.
    Thanks
    Lydia

    Lydia,
    I'm not an expert in this area, but I can give you a start.
    As for single sign-on, there are different levels. For single sign-on across web-apps,
    the servlet spec requires this (section 12.6 of th 2.3 spec) and therefore Weblogic
    does this.
    What you are talking about is single sign-on across back-end applications through
    a web-app. BEA has partnered with Securant (just acquired by RSA) to provide this
    kind of functionality. Browse to http://www.rsasecurity.com/products/ and look
    at the ClearTrust product. BEA has also partnered with Netegrity (www.netegrity.com)
    with their SiteMinder product. Neither is included in the Weblogic license. I'm
    sure either vendor would be excited to explain how their product will solve your
    problem if you give them a call.
    As for where the username and passwords are stored, that is up to the realm. If
    you are using the default WLPS RDBMSRealm, the username and encrypted password
    are stored in the WLCS_USER table. If you are using LDAPRealm, they are stored
    in your LDAP server.
    Hope this was useful!
    PJL
    [email protected] wrote:
    Hello,
    I am using PersonalizationServer 3.5 and WLS 6.0 SP 2.
    Now I try to unterstand the functionality of Single sign-on when a user
    has different usernames and passwords for different applications.
    Can someone explain where the usernames and passwords for a user are
    stored (all in the LDAP-realm or a RDBMS-realm?) When a user access the
    application how username and passwords are mapped? Or usernames and
    passwords for all applications are the same and will be equalized?
    Precisely I would like to get access to a mail-account for a specific
    user
    (webmail from Lotus Notes).
    Thanks for any help
    Lydia

  • HT2729 i downloaded 3 songs to my pc and sync'd my ipod and the songs do not tranfer.  is this related to not having the proper itunes version vs ios?  I cannot get the songs to sync, but I can move other songs to different playlists and they sync fine...

    i downloaded 3 songs to my pc and sync'd my ipod and the songs do not tranfer.  is this related to not having the proper itunes version vs ios?  I cannot get the songs to sync, but I can move other songs to different playlists and they sync fine...any ideas what's wrong?

    Hi Dennis!
    I have a couple of steps for you to try in order to get those songs transferred to your iPod touch. First, make sure all of your software is updated with the latest versions. If the songs were downloaded from iTunes, you will also want to delete the songs from your library and then download them again from the list of past purchases on your iTunes account. An article about doing that can be found here:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you try a sync after those two steps and are still seeing the issue, then I would like you to try syncing the iPod by setting it to manually manage. An article outlining more information on manually managing your iPod sync can be found here:
    Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/ht1535
    If you are still having issues after that, I have another article that can outline some other reasons why your songs may not transfer to your iPod, and it can be found here:
    Some songs in iTunes won't copy to iPod
    http://support.apple.com/kb/TS1420
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

Maybe you are looking for

  • Error in SOAP response

    I am getting following error response when I was trying to post input soap message from altova xml spy(scenario:webservice to SAP) <SOAP:Envelope xmlns OAP="http://schemas.xmlsoap.org/soap/envelope/">      <SOAP:Body>           <SOAP:Fault>          

  • FB01 BDC substitution problem

    Hi, I wrote a batch program to transfer GL data from text file to SAP. It uses FB01. Everything works fine except for some GL accounts that do not need cost center input. When such account inserted my program has an error saying that there is no fiel

  • Creating custom LAF - failing with 'unexpected error'

    Hi, I'm trying to create a custom LAF based on the simple.desktop. I follow the steps for 'Create Look and Feel' and enter - Name: test-desktop Family: test Description: Test LAF Base Look and Feel: simple.desktop click Next and the 'Customise Styles

  • Cisco Prime 2.1 HA and NFS backup

    Hi, I've just configured my Cisco Prime with the external NFS backup server using instruction from the Administration Guide, http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-1/administrator/guide/PIAdminBook/backup_restore.html#pg

  • How much traffic?

    Hello! I want to use my vacation in adobe connect. How much traffic can be expected per hour? It is only PowerPoint and audio used by the trainer. greeting Jan