Identify join condition between any two table.
Hi,
I have set of tables. I don't know whether these tables are interlinked or not. I need to identify the underlying join condition in. As per my knowledge if my datasource is based upon infoset query , then I can go to SQ02 and find the underlying join condition. But in this case, I have only table names. How do i find whether they are interlinked or not.
Thanks in advance
Regards
Snehasish
Hi ,
Go to SE11 t-code
select VIEW radio button
give view name start with Z.select create button
select databseview radiobutton. select copy button.
it opens a view creation window.
give table names in leftside .
select RELATIONSHIP button.
Similar Messages
-
Hi all,
Is it possible to propose a join condition (using SQ02) between two fields of two tables other than what is proposed by the system?
Thanks
SandeepHi Sandeep,
You can very much match other fields of two tables in SQ02.
1. Goto SQ02
2. Give the infoset name
3. Goto change mode
4. Press the Join button, it will display the join conditions between the two tables.
5. Press Join Conditions, it will propose the system generated join conditions
with key fields
6. If you want to match your own fields other than the key fields you can just
point the mouse pointer on the field of the first table and just drag it to the field
of the second table. It will create a join condition.
7. Save the infoset.
Regards,
Jayaram... -
Can any one tell me how to make a join in between RESB & VBAP Table
Hi.
can any one tell me how to make a join in between RESB & VBAP Table. Please do the needful.u have Sales order number and sales order item number in RESB table..
KDAUF Sales Order Number
KDPOS Item Number in Sales Order -
Join condition between PO_REQUISITION_HEADERS_ALL and WF_NOTIFICATIONS
Hi,
Could anyone tell me what is the join condition between PO_REQUISITION_HEADERS_ALL and WF_NOTIFICATIONS?
I joined these two tables by WF_NOTIFICATIONS.ITEM_KEY = PO_REQUISITION_HEADERS_ALL .WF_ITEM_KEY.But I cannot found some approved requisitions item key in WF_NOTIFICATIONS table.
Please help.
I paste my query below:
SELECT PRH.ORG_ID ORG_ID,
WF.ITEM_KEY,
WF.FROM_ROLE,
PRH.WF_ITEM_KEY,
WF.RECIPIENT_ROLE APPROVERS_NAME,
TRUNC(NVL(PRH.APPROVED_DATE, '')) DATE_APPROVED,
WF.SUBJECT SUBJECT,
PRH.DESCRIPTION REQ_DESC,
PRH.SEGMENT1,
(SUM(NVL(PRL.AMOUNT, 0)) +
SUM(NVL(PRL.UNIT_PRICE, 0) * NVL(PRL.QUANTITY, 0))) REQ_AMT,
GL.SEGMENT1 || '.' || GL.SEGMENT2 || '.' || GL.SEGMENT3 || '.' ||
GL.SEGMENT4 || '.' || GL.SEGMENT5 || '.' || GL.SEGMENT6 || '.' ||
GL.SEGMENT7 || '.' || GL.SEGMENT8 CHARGE_ACCT
FROM APPS.WF_NOTIFICATIONS WF,
APPS.PO_REQUISITION_HEADERS_ALL PRH,
APPS.PO_REQUISITION_LINES_ALL PRL,
APPS.PO_REQ_DISTRIBUTIONS_ALL PRD,
APPS.GL_CODE_COMBINATIONS GL
WHERE WF.FROM_ROLE IN ('GHAWKINS', 'GHALVERSON', 'NCERNOTTA', 'DCOLLOPY', 'RHAY')
AND BEGIN_DATE > SYSDATE - 60
AND WF.MESSAGE_TYPE = 'REQAPPRV'
AND WF.ITEM_KEY = PRH.WF_ITEM_KEY --added
AND PRH.AUTHORIZATION_STATUS = 'APPROVED'
AND PRL.REQUISITION_HEADER_ID = PRH.REQUISITION_HEADER_ID
AND PRD.REQUISITION_LINE_ID = PRL.REQUISITION_LINE_ID
AND PRD.CODE_COMBINATION_ID = GL.CODE_COMBINATION_ID
GROUP BY PRH.ORG_ID,
WF.ITEM_KEY,
WF.FROM_ROLE,
PRH.WF_ITEM_KEY,
WF.BEGIN_DATE,
WF.SUBJECT,
WF.RECIPIENT_ROLE,
PRH.APPROVED_DATE,
PRH.DESCRIPTION,
PRH.SEGMENT1,
PRL.REQUISITION_HEADER_ID,
GL.SEGMENT1 || '.' || GL.SEGMENT2 || '.' || GL.SEGMENT3 || '.' ||
GL.SEGMENT4 || '.' || GL.SEGMENT5 || '.' || GL.SEGMENT6 || '.' ||
GL.SEGMENT7 || '.' || GL.SEGMENT8Pl see if these MOS Docs can help -
603232.1 - How to Diagnose Purchasing Document Approval Routing
579522.1 - Forward Document Form FAQ
431767.1 - How To View Requisition From The Email Notifications For Which Workflow Data Is Purged
HTH
Srini -
Hi,
What is the Join condition between mtl_system_items_b and mtl_onhand_quantities_detail?
Thanks & Regards,
Hari BabuPlease see the query in (Consolidate Onhand Quantity /Sum Quantity Zero in MTL_ONHAND_QUANTITIES_DETAIL (MOQD) / Concurrent Program Consolidate Inventory Onhand Quantities / Datafix for 0 Quantity Displayed For Finished Goods (Doc ID 353345.1)), is shows how to join those 2 tables.
http://etrm.oracle.com
Thanks,
Hussein -
Get RSSI between any two devices for WRT54GL in adhoc mode?
Hi,
I am running five WRT54GL routers in ad-hoc mode (with OpenWRT installed). Routing protocol is AODV. I would like to find out if it is possible to retreive the RSSI values between any two of these devices by some available methods (as opposed to just getting the RSSI at an interface level)?
When I check the /proc/net/wireless file in any one of the routers, it appears that there is only one RSSI shown at its own interface level, and not 4 RSSI values, with respect to each for the other 4 devices within communication range.
Thanks in advance for any advice.
Regards,
WongAs you have tired all the settings on your WAP, and still its not working in an AP mode. I would suggest you to Re-Flash the firmware of your WAP. Go to website linksysbycisco.com/downloads.........insert model no of your AP in serach tab......select proper version of your AP........download the firmware file......save that file on desktop. Once you have downloaded the firmware on your AP.
Follow these steps to upgrade the firmware on the device : -
Open an Internet Explorer browser page on a computer hard wired to the AP...In the address bar type - 192.168.1.245...Leave the username blank & in password use admin in lower case...
Click on the 'Administration' tab- Then click on the 'Firmware Upgrade' sub tab- Here click on 'Browse' and browse the .bin firmware file and click on "Upgrade"...Wait for few seconds until it shows that "Upgrade is successful" After the firmware upgrade, click on "Reboot" and you will be returned back to the same page OR it will say "Page cannot be displayed".
Now reset your AP :
Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your AP, wait for 30 seconds and re-connect the power cable...Now re-configure your AP...
I think this might solve your problem. -
Between any two computers, using hashCode() will get same digit?
between any two computers, using hashCode() will get same digit?
For the same object on the same machine running in the same JVM, hashcode is required to return the same integer primitive if the object is to be successfully manipulated in containers.
All other bets are off.
Dave. -
Left Outer Join with more than two tables in both CR 8.5 and XIR2
I am trying to create a report and I have tried two versions of Crystal but I ultimately need the report in CR8.5 for compatibility with the client's system. I think I am starting to figure out what might be wrong and it might be my understanding of SQL, but I can't see why someone hasn't needed this in the past. Ultimately I want to see all projects and any journal entry that might be posted for that project.
Database is MySQL 5.0.38 and using MySQL ODBC driver 3.51.19.
Project header table information will be populated. Each line item on a journal entry can be tagged with the project ID. But for me to pull the journal entry date I need also to link to a third table for the journal entry header info.
I want to see all projects, whether a journal entry has been posted or not.
So the links are like this
ProjectHeader --->Left Outer Join ---> JELines ---> Inner Join ---> JEHeader
I think in this scenerio Crystal is treating the LOJ as an IJ.
I created two brand new reports today, one in CR8.5 and one in CR XIR2. Once I edited the automatic CR8.5 SQL statement (which I have been doing for years, usually without problem), they both ran properly. I linked customers to their invoices. Customers without invoices showed properly. But then I linked the invoices to the payments of the invoices and immediately lost customers without orders in both reports.
So apparently only two tables are allowed in Outer Joins. Does this make sense? I checked out the w3schools tutorial on SQL and it doesn't mention this limitation and I can't find anywhere else that it specifically indicates this but all samples of code I have seen only show two tables. I just thought for presentation as a sample that was easiest to understand and we could expand as necessary.
If this is correct, how does one go about accounting for this kind of thing? One solution that goes through my mind is creating a view at the database level for the link between journal entry lines and journal entry headers. Would this be a good solution under normal circumstances?
A second option that I had to implement because of timelines, is to use a subreport linked to the main report through the project ID to pull the information for the journal entries and just pass the totals I need to the main report through a shared variable.
These aren't normal circumstances because I don't have access to the database so I can't create the view. I have come across this concept several times and I have been able to use subreports to solve it but I am trying to find a better solution for the future as sometimes subreports can be slow. So are there any alternatives I have not considered here?
TIA rasincSo after some more work and another post. I was able to get this to work.
Items disappear when linking to another table
My issues were two fold. I was selecting on the tables on the right-side of the original Inner Join. However, I was checking for Nulls. This apparently is correct but you must check for the Nulls first eg. (IsNull (JEHeader.Field1) OR JEHeader.Field1 <= 100). I had my original statement reversed checking for <= 100 before checking for Nulls.
I also did not set all links to be Left Outer Join. I had the Inner Join. I actually have about 6 tables in this report so all the links need to be set Outer Join. So this now seems to be corrected.
Thanks -
How link between the two tables
Hi All
In fact, I am new in Oracle and also, in this forum, and I hope that I find useful and benefited also reportedly.
My oracle is Oracle Database 10g Express Edition.
I have now two tables and one for staff and the second of the equipment used by staff.
Well now how link between tables in the agenda third.
ThanksYou could read one of the many books on the subject, or you could just try something real simple like
SQL> desc a
Name Null? Type
USERNAME NOT NULL VARCHAR2(30)
PROFILE NOT NULL VARCHAR2(30)
SQL> desc b
Name Null? Type
USERNAME VARCHAR2(30)
ROLENAME NOT NULL VARCHAR2(30)
SQL> select * from a natural join b;
USERNAME PROFILE ROLENAME
USER_ONE DEFAULT CRISYS_SYSADMIN
USER_TWO END_USER USER_CONNECT
USER_TWO END_USER CARS_APP_USER
USER_THREE BATCH_USER BATCH_CONNECT
USER_THREE BATCH_USER APPLICATION_OWNER
etc. -
How to find the unmatched records between the two tables?
We have to tables in SQL Server database.
But unable to find the unmatched record betwwen these two tables.
There 12 records are unmatched. But unable to get those records.
I am using the below sql:
select c1,c2,c3,c4,c5,c6 from Table1
except select c1,c2,c3,c4,c5,c6 from Table2
Please help. Thanks in advance.Hi knra,
Please try the following codes:
select c1,c2,c3,c4,c5,c6 from Table1 t1
where not exists
(select * from Table2 t2
where t1.c1= t2.c1
and t1.c2= t2.c2
and t1.c3= t2.c3
and t1.c4= t2.c4
and t1.c5= t2.c5
and t1.c6= t2.c6)
Best Regards,
Allen Li
Allen Li
TechNet Community Support
This is what I would've said, but it would make life much easier for you if you have a reference or ID for each entry, this is why we use keys. -
Join conditions for the given tables
Hi,
I would like to join the below tables
FA_INVOICE_DETAILS_V FID
,AP_INVOICE_PAYMENT_HISTORY_V AIP
,PO_DISTRIBUTIONS_all PD
,AP_BATCHES_ALL AB
,PO_HEADERS_ALL POH
,PO_LINES_ALL POL
,FA_ADDITIONS_V FAA
can anyone give me the conditions to join the above tables. Its an urgent please suggest me
Thanks in advanceOnly you can know how to join those tables. We don't know your business, your data, or your requirements.
If you would like us to help you, you need to provide the definitions of all the tables and which columns match between these tables. Then you have to tell us if you want inner joins, outer joins, theta joins, etc.
Please see the following link:
Urgency in online postings -
How to Join data's of two tables
hi
(SELECT ((T1.LineTotal (.6/100)) - ((T0.DocTotal-T0.PaidToDate)0.1)) FROM [dbo].[OINV] T0 INNER JOIN [dbo].[INV1] T1 ON T0.DocEntry = T1.DocEntry
WHERE T2.[SlpName] ='1- Pradeep N' ) as '1- Pradeep N IP'
there is some problem in this query in Join function.
Kindly guide me.
I'm using SAP Business One 2007B PL:4
Edited by: Gayathri Panneerselvam on Feb 5, 2009 4:09 PMHi,
(SELECT ((T1.LineTotal *(.6/100)) - ((T0.DocTotal-T0.PaidToDate)*0.1)) FROM dbo.OINV T0
INNER JOIN dbo.INV1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T2.SlpName ='1- Pradeep N' ) as '1- Pradeep N IP'
What for should be the T2.SlpName ? Would you join OSLP, cause nowhere you joined the table or create a symlink for T2.
If you like to join OSLP, try this query :
(SELECT ((T1.LineTotal *(.6/100)) - ((T0.DocTotal-T0.PaidToDate)*0.1)) FROM dbo.OINV T0
INNER JOIN dbo.INV1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OSLP T2 ON T2.SlpCode = T0. SlpCode
WHERE T2.SlpName ='1- Pradeep N' ) as '1- Pradeep N IP'
Regards Steffen -
Joining the data from two Tables
I create a table with six months date from Jan to Jun. Another table with July trough Sept.
Now I want one table in which I am going to at the end of the year have all 2007 fiscal data.
I do not want to restore them ever back to the components. How do I do this?If I understand you correctly, I think you merely want to enlarge the first table enough to accommodate the data from the second table. Then select the cells in the second table and copy and paste them into the newly created space in the first table. Ask if you need more detail instructions on how to do this.
-
Join Two tables based on TO_DATE,TRIM,UPPER Functions in RPD
Hi All,
I have a requirement where I have to join 2 tables based on the functions TO_DATE,TRIM,UPPER.
I have Date Of Birth, Person Name . So I have to use these functions and then join in the RPD.
Is it possible to achieve. I am stuck in this problem.
Regards,
KrishnaHi Dann,
Thanks for your reply. I had tried adding these functions but I get the error 'Only columns,designated predicates and operators are allowed". Niether in the Business not in the Physical layer we are allowed
to enter any functions in the join conditions between the two tables.
I am not very sure whether this is the normal behaviour or I can avoid this by doing something.
Thanks,
Krishna -
Hi all
How to query in two different tables? Should i use the following
SET_BLOCK_PROPERTY('ins1', ONETIME_WHERE, 'serial = ''' || :GLOBAL.CODE || ''''); this is working but for one table if i want for both tables and and it display the related information in main form , eg..tables are referenced by primary key constraint and foreign key.
sarah
Edited by: SarahSarahSarah on Sep 1, 2009 4:59 AMFor the primary forign key tables no need to create two forms use the master detail functionality of forms.
create a Master/Detail form using the DEPARTMENT, EMPLOYEE tables.
DEPARTMENTwill be the Master block and EMPLOYEE will be the Detail block. The join condition between the two tables is where the deptno column of DEPARTMENT is equal to the deptno column of EMPLOYEE .
The following is an outline of the steps:
Create the DEPARTMENT data block and include the all the fields on the form.
Use the Form layout and only display one record at a time.
Go back to the Object Navigator and select the "Data Blocks" tree. Make sure the DEPARTMENT block is not selected and run the Data Block Wizard again.
Create the EMPLOYEE data block and include all of the columns.
For the master/Detail relationship, de-select the "auto" option, use a Join relationship, choose the DEPARTMENT data block as the Master and set EMPLOYEE.DEPTNO= DEPARTMENT.DEPTNO for the join relationship.
In the Layout Wizard for the Dependents data block, display all of the fields
Choose a Tabular style and display 4 up to records at once with 0 space between each record.
Save the form and run the form.
Thanks
Maybe you are looking for
-
Problem in creation of ARD using B1DE 1.5
Hi Experts I have develop an AddOn using B1DE 1.5. It is working properly. Now I want to create ARD file of addon . I use 'SAP B1 AddOnInstaller.Net wizard to create ARD file. I follow all the setps of wizard. It finish without any error. But it does
-
Validation option for Vendor payments
Hi Everybody, We have about 150 vendors for whom we make cheque payments (manual payment processing). Now, we started implementing online payments and currently we are making online payments for about 30 vendors. We want to create validation process
-
How can I sort movies by genre on itunes from ipad 2 ?
If i find a movie for buy in itunes ( from pc ) i can select the genre (action , comedy ..) for optimize the search. In mi ipad 2 i cannot do this , i can select genre for music , apps , etc but in movies i only see alphabetical order and older / ne
-
Error occur while doing Determination the dep. area in the asset class
Hi All Query about FI - AA when I m trying to do determine depreciation area in the asset class with following path Path in IMG FA- AA- Valuation-- Determine depreciation area in the asset class By following above path and my Asset class as soon as I
-
How to enabe RSS in Cisco enic using UCS?
I need to enable RSS (receive-side scaling) on the enic interfaces in UCS. I followed the document at this link. However, all the interrupts are still being delivered on only one CPU. There are 8 CPU queues with 7 of them always empty. "ethtool -k" a