How to join 1 datablock with 2 same datablocks??
Dear Guys,,
My Q. is how to create 2 relations between one data block (block1) with other 2 same data blocks (block2,block3)
(2 same data blocks : reference to same physical tables) ??
any thoughts?
thx sara for quick reply :)
I know how to join between datablocks,, the problem occurs when i want to join 1 details data block with two master data blocks that refer to the same table !!
one relation breaks the other one !!
thx
Similar Messages
-
Topic: How to refer columns with same name in jdbc
I have a join statement :
Select a.col1, a.col2, b.col3, b.col2 from TABLE1 a, TABLE2 b where a.col1 = b.col1
how do I refer with same column name suppose I want to get b.col2
I get error when I try rs.getString("b.col2") or
rs.getString("TABLE2.COL2")..
note I donot want positional retrieval i.e rs.getString(x) , where x is column number.
can you suggest how to refer the b.col2 uniquely.Select a.col1, a.col2, b.col3, b.col2 from TABLE1 a,
TABLE2 b where a.col1 = b.col1You can use a column alias, like below. They "as" keyword isn't always necessary, depends on your database.
Select
a.col1 as a_col1,
a.col2 as a_col2,
b.col3 as b_col3,
b.col2 as b_col2
from
TABLE1 a,
TABLE2 b
where
a.col1 = b.col1 -
How to join GRPO with AP invoice thru query ?
hi all,
How to join GRPO with AP invoice in sql query ?
JeyakanthanHi Jeyakanthan
Are you using query in SAP Business One or outside the system? If you select the tables in SAP Business One as OPCH and OPDN then no inner join will appear, as the links sit on the line level. You will need PCH1 and PDN1. The link can be found in both directions, but bear in mind that 1 AP Invoice could be based on more than 1 Goods Receipt PO. For this reason the best approach is to start at the AP Invoice line level and use the BaseType and BaseRef fields to view which lines were pulled from which Goods Receipt PO's.
Kind regards
Peter Juby -
How to send File with Same name to Receiver
HI Frnds,
In my peoject i have one scenario,
I have to access Orders is the name of file , available in FTP Server, i have to send same file to Receiver side with same name Orders
Is it possible with same name dynamically??
Regards,
Rajhi,
You have to go for variable substitution option available in receiver file adapter,but for that you have to get the file name in receiver payload.
http://help.sap.com/saphelp_NW04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
these links are also helpful
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
/people/sriram.vasudevan3/blog/2005/11/21/effective-xsl-for-multimapping-getting-source-filenames-in-legacy-legacy-scenarios
regards,
ujjwal kumar -
How to create directories with same name in different schemas
I have two schemas on the same database.
I am trying to create directories with same name, but different paths in both the schemas.
When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
Is there any solution to create directories with same name, but different path in two different schemas on the same database.
Thanks,
Sridhar.Hi,
>>When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
If you have removed the REPLACE clause of your create statement, then you would see that is not possible.
SYSTEM> connect scott/tiger
Connected.
SCOTT> create directory mydir as '/tmp';
Directory created.
SCOTT> connect legatti/pwd
Connected.
LEGATTI> create directory mydir as '/tmp';
create directory mydir as '/tmp'
ERROR at line 1:
ORA-00955: name is already used by an existing object
LEGATTI> select owner,object_name,object_type,created
2 from dba_objects where object_name='MYDIR';
OWNER OBJECT_NAME OBJECT_TYPE CREATED
SYS MYDIR DIRECTORY 19/12/2007Cheers
Legatti -
How to use facetime with same apple id
If I've already downloaded facetime on my imac do I have to buy it again for my mac book which is older and didn't come with facetime? And also, my husband has taken our ipad to Asia and I wanted to facetime with him using my imac at home, however I only have one apple ID so how do we call each other if the apple ID's are the same??
It's only 99 cents, and I do believe you'll be charged for the second download to the Macbook. Your Mac book must have osx, 10.6.6 or later, installed. You can use the same apple ID, but you must supply a different individual e-mail for address to the ipad, and you should also supply another different individual e-mail address to the Mac book.
-
How to make tabs with same width in tabbedPane?
I have a JTabbedPane with seven tabs, but can I make them same width? and fill out whole top side.
Thank you.not directly without knowing how much space there is an adding spaces to the labels accordingly to space them out. You'd have to modify the tabbedpane UI classes for the L&F.
-
How to join gl_daily_rates with AR and SO and Customers
Hi All,
i need to populate the overall credit limit of the customer, if he has any SO backlog(not shipped) amount for all SO's and in AR not paid transactions for the customer, i need to convert the fuctional currency to foreign currency of the all types of amounts.
1) how to link with daily rates table with AR and OM?
2) how to get term name of the customer and Legal entity name?
please help me asap.
Thanks
sreeniQuickTime X can join your two files. Edit menu "Add Clip to End..."
-
How to identfy rows with same column value
Hi
I have a table student
id ( pkey)
name
class
marks
i need to check the existence of duplicate values like
say the values are :
id name class marks
1 alan 6 85
2 victor 4 97
3 alan 6 85
i need to know if there is any matching row in the table --- like in this case id=1 and id=3 have same value for all the columns except for id .
so the result shud tell me the ids which have duplicate values for name , class , marks and also those ids for which there is no duplicacy
for id= 1 i see that id= 3 has same values
and id=2 has no duplicates
how do i show it ??
The result i expect is
name class marks count
alan 6 85 2
victor 4 97 1
Message was edited by:
SHUBHEMP
id name class marks
1 alan 6 85
2 victor 4 97
3 alan 6 85
You can use a self join to pull out the data which are almost duplicate without a column values here in this example without id the first and third records are duplicate.
select e.id,e.name,e.class,e.marks from EMP e,EMP d where e.name=d.ename and e.class=d.class and e.marks=d.marks and e.id<>d.id; -
How to reference objects with same name?
Probably another easy one, but again, couldn't find the answer in old discussions...
I have some objects with the same name on my form. Designer has made them unique by making an array out of them...object[0], object[1], object[2] etc. How can I reference the individual objects in javascript? I tried the obvious by referencing them as an array, but to no avail. I suppose it'd be just as easy, if not better, to just have unique names, but in this case, the objects are related and having them in an array would be handy.You can try like below.
var oObject = xfa.resolveNode("Object[1]");
xfa.host.messageBox("" + oObject.rawValue);
Thanks
Srini -
How to import XSD with same name
Hi,
I have a Parent XSD which imports 3 XSD's.
The parents XSD name and one of the imported XSD name is same in the XSD.
Say for Ex: 1.xsd is a parent
which import 2.xsd , 3.xsd & 1.xsd ( from different directory - import path in the XSD is different - <xsd:import namespace="www.localdomain.com/1.xsd" schemaLocation="C:/container/path/1.xsd"/>
where as the parent 1.xsd is in c:/jms/path/1.xsd
So whenever i import into the workshop it is giving me compilation error.
How to fix this ? pls help.
Thanks,
-Raj..You can try like below.
var oObject = xfa.resolveNode("Object[1]");
xfa.host.messageBox("" + oObject.rawValue);
Thanks
Srini -
I had my IPOD Stolen, bought a new one how do I use with same account
I lost an IPOD, I have bought a new IPOD 5th Gen, however I have heard that if i install the new IPOD onto the account I will lose all the IPOD files and downloads, if this is true how do I prevent this?
toshiba Windows XPYou just need to connect your new iPod and follow the on screen instructions. It will connect to your existing iTunes and update.
-
How to differentiate tags with same name/different attributes using JDOM?
Hello,
If I have the following xml file:
<level1>
<level2 att="a1">first</level2>
<level2 att="a2">second</level2>
<level2 att="a3">third</level2>
</level1>
how do I distinguish them from each other and add another attribute to each element?
<level1>
<level2 att="a1" insert="s1">first</level2>
<level2 att="a2" insert="s2">second</level2>
<level2 att="a3" insert="s3">third</level2>
</level1>
regrads,
Happy New Year!Document document;
NodeList nodeList=document.getElementsByTagName("level2");
for(int i=0; i<nodeList.getLength(); i++){
if(((Element)(nodeList.item(i)).getAttribute("att")).equals("a1"))
((Element)(nodeList.item(i))).setAttribute("insert","s1");
if(((Element)(nodeList.item(i)).getAttribute("att")).equals("a2"))
((Element)(nodeList.item(i))).setAttribute("insert","s2");
if(((Element)(nodeList.item(i)).getAttribute("att")).equals("a3"))
((Element)(nodeList.item(i))).setAttribute("insert","s3"); -
How to Select data using same column name from 3 remote database
Hi,
Can anyone help me on how to get data with same column names from 3 remote database and a single alias.
Ex.
SELECT *
a.name, b.status, SUM(b.qty) qantity, MAX(b.date) date_as_of
FROM
*((table1@remotedatabase1, table1@remotedatabase2, table1@remotedatabase3)a,*
*(table1@remotedatabase1, table1@remotedatabase2, table1@remotedatabase3)b)*
WHERE b.dept = 'finance'
AND a.position = 'admin'
AND a.latest = 'Y' AND (b.status <> 'TRM') AND b.qty > 0;
GROUP BY a.name, b.status ;
NOTE: the bold statements is just an example of what I want to do but I always gets an error beacause of ambiguous columns.
Thanks in advnce. :)
Edited by: user12994685 on Jan 4, 2011 9:42 PMuser12994685 wrote:
Can anyone help me on how to get data with same column names from 3 remote database and a single alias.Invalid. This does not make sense and breaks all scope resolution rules. And whether this is in a single database, or uses tables across databases, is irrelevant.
Each object must be uniquely identified. So you cannot do this:
select * from (table1@remotedatabase1, table1@remotedatabase2, table1@remotedatabase3) a3 objects cannot share the same alias. Example:
SQL> select * from (dual, dual) d;
select * from (dual, dual) d
ERROR at line 1:
ORA-00907: missing right parenthesisYou need to combine the objects - using a join or union or similar. So it will need to be done as follows:
SQL> select * from (select * from dual d1, dual d2) d;
select * from (select * from dual d1, dual d2) d
ERROR at line 1:
ORA-00918: column ambiguously definedHowever, we need to have unique column names in a SQL projection - so the join of the tables need to project a unique set of columns. Thus:
SQL> select * from (select d1.dummy as dummy1, d2.dummy as dummy2 from dual d1, dual d2) d;
DUM DUM
X X
SQL> I suggest that you look closely at what scope is and how it applies in the SQL language - and ignore whether the objects referenced are local or remote as it has no impact to fundamentals of scope resolution. -
I can not join my Apple extreme with the Apple express. I shows a conflict in the network! I've tried everything. How can they join on the same network?
It says that my DHCP has to be changed! How? to what?
It is 802.11g.express. but is set to default by the computer (Macbook Air).
The other is 802.11n. (express)
Extreme is 802.11.g. Is the Main Airport.
It is on ethernet & wep 128 security.
Maybe you are looking for
-
Some Songs No Longer Recognized in My iTunes Library
I am running Windows 7 and the latest version of iTunes. For the third time in about a year, iTunes has just "dropped" a number of my songs; 45 this time. I have no idea which ones. I realize that the actual songs are in another folder, but how ca
-
Reporting Agent - HTML Generated not allowing Navigation
Hi all, I created a WebTemplate with a single query and four DropDown Box for allowing the user navigation. The WebTemplates works fine in Bex Web and the user may apply the filters in the dropdowns. We configured this WebTemplate on Reporting Agent
-
Photoshop Elements trial version problem
I'm from the UK but am in France. I want to download P/S Elements 30 day trial UK version for my Mac OS 10.7.4. The screen was in French but I changed the version to say "UK". Download Assistant was in English, but it then seemed to be downloading th
-
hi all, we are implementing some tracking number scenario for Purchase order. filed length of tracking number is of 10 digit can it be expandable to 14 to 15 digit ? please advise. thanks in advance.
-
How do I roll back Itunes out of 10.6?
How do I roll back Itunes out of 10.6?