[Help] How to merge two rows in a datagrid?
How to merge two rows of a specific column in a datagrid?
ex.
|_______|_____|_____|
| merged |_____|_____|
|_______|_____|_____|
|_______|_____|_____|
thx a lot~
I need to merge column heading. Have u find any solution for
ur problem?
Similar Messages
-
How to merge two cells in a row
hi freinds,
how to merge two cells in alv grid using oops.
for eg ,in the first row there is text premraj
n in the second row there is cheguri
my requriment is two merge the two cells ie to remove the horizontal line between them
thanks & regards,
premrajWell, as a new member you should learn to search the forum first before posting questions. Using keywords like "jtable merge cell" will find other postings on this topic. Some with solutions some without, so you will need to read a few and decide on the approach you want to take.
-
Merge Two Rows of a table to One row but into two columns
Hi
I Am struck in writing a query to merge two rows into two columns of one row.
Here is the Sample data i am working with,
Col 1 Col 2 Col3 Col4 Col Col6
5000 573-3000 2 0 Phone
5000 573-3036 1 0 Fax
5000 893-5703 3 0 WOrk
3000 232-5656 1 0 Phone
3000 353-5656 2 0 FAx
Here Col,Col3,Col4 form the Key.
now wht i am trying to do is to Merge these type of rows put them into Columns P,F,W,E respectively to achive a Structure as below
Col1 P F W
5000 573-3000 573-3036 893-5703
3000 232-5656 353-5656
Can you please help me how could i do this.
I am pretty ordinary at writing SQL's.
Thanks a Lot in Advance
Message was edited by:
SreebhushanSearch the forum for PIVOT and you'll find plenty of examples.
-
How to merge two repositories using(MUD)
hi all,
how to merge two repositories using mude, for example i have sh rpd and paint rpd how to merge two repositories using Multi user development(mud), please don't give venkat forums link and oracle's training doc links.
Is this possible? if it is possible please help me .
Thanks
NareshHi Naresh,
What you could do is:
1. do a ontime command line merge of both repository using the nqudmlexec tool
2. In the mergerd repository created two project (sh and paint) and assign one bussiness model to each project.
3. Make this the master repository for your MUD.
4. Check the projects in and out.
regards
John
http://obiee101.blogspot.com -
How to merge two XML's with JDOM?
How to merge two xmls's using jdom? like:
is there a way to add the complete content one xml into the parent node of another xml?
//in.xml
<?xml version="1.0"?>
<people>
<person>
<name>ABC</name>
<email>[email protected]</email>
</person>
</people>
//out.xml
<?xml version="1.0"?>
<address>
<city> abccounty</city>
<state> abcstate</state>
</address>
Merged XML:
<?xml version="1.0"?>
<people>
<person>
<name>xyz</name>
<email>[email protected]</email>
</person>
<address>
<city> abccounty</city>
<state> abcstate</state>
</address>
</people>
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
public class MergeXMLS {
public static void main(String[] args) {
try{
SAXBuilder builder = new SAXBuilder();
Document books = builder.build("D:/in.xml");
Document onebook = builder.build("D:/out.xml");
Element root = books.getRootElement();
List rows = root.getChildren();
for (int i = 0; i < rows.size(); i++) {
Element row = (Element) rows.get(i);
onebook.getRootElement().addContent(row.detach());
System.out.println(row.getName());
new XMLOutputter(Format.getPrettyFormat()).output(onebook, System.out);
}catch(Exception e){
e.printStackTrace();
}The above code only add's the first node.
I changed the code little differently to
SAXBuilder builder = new SAXBuilder();
Document books = builder.build("D:/in.xml");
Document onebook = builder.build("D:/out.xml");
//trying to add second xml into the first
books.getRootElement().addContent(onebook.getRootElement().getContent());
new XMLOutputter(Format.getPrettyFormat()).output(books, System.out);
here is the exception from the above code:
org.jdom.IllegalAddException: The Content already has an existing parent "address"
at org.jdom.ContentList.add(ContentList.java:218)
at org.jdom.ContentList.add(ContentList.java:140) -
How to merge two adjacent partitions?
How to merge two adjacent partitions?
The formal steps are delete the second partition and right click on first one, choose "extend".
Of course this will erase data on second partition.
Some third party tools can help do the job with keep data on second partition.
If you have any feedback on our support, please send to [email protected] -
How to compare two rows in PL/SQL?
Hi All,
How to compare two rows in PL/SQL? Is there any method that I can use instead of comparing them column by column?
Any feedback would be highly appreciated.PhoenixBai wrote:
Hi All,
How to compare two rows in PL/SQL? Is there any method that I can use instead of comparing them column by column?What "rows" are you referring to?
If you're talking of rows within a PL/SQL associative array there are techniques as described in the documentation... e.g.
SQL> ed
Wrote file afiedt.buf
1 declare
2 type v1 is table of number;
3 r1 v1 := v1(1,2,4);
4 r2 v1 := v1(1,2,3);
5 begin
6 if r1 MULTISET EXCEPT DISTINCT r2 = v1() then
7 dbms_output.put_line('Same');
8 else
9 dbms_output.put_line('Different');
10 end if;
11* end;
SQL> /
Different
PL/SQL procedure successfully completed.
SQL> ed
Wrote file afiedt.buf
1 declare
2 type v1 is table of number;
3 r1 v1 := v1(1,2,3);
4 r2 v1 := v1(1,2,3);
5 begin
6 if r1 MULTISET EXCEPT DISTINCT r2 = v1() then
7 dbms_output.put_line('Same');
8 else
9 dbms_output.put_line('Different');
10 end if;
11* end;
SQL> /
Same
PL/SQL procedure successfully completed.
SQL>If you're talking about rows on a table then you can use the MINUS set operator to find the rows that differ between two sets of data...
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 00:00:00 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 00:00:00 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 00:00:00 2850 30
7782 CLARK MANAGER 7839 09-JUN-1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 00:00:00 3000 20
7839 KING PRESIDENT 17-NOV-1981 00:00:00 5000 10
7844 TURNER SALESMAN 7698 08-SEP-1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7902 FORD ANALYST 7566 03-DEC-1981 00:00:00 3000 20
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10
14 rows selected.
SQL> select * from emp2;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7521 WARD SALESMAN 7698 22-FEB-1981 00:00:00 1250 500 30
7566 JONES MANAGER 7839 02-APR-1981 00:00:00 2975 20
7782 CLARK MANAGER 7839 09-JUN-1981 00:00:00 2450 10
7788 SCOTT ANALYST 7566 19-APR-1987 00:00:00 3000 20
7839 KING PRESIDENT 17-NOV-1981 00:00:00 5000 10
7900 JAMES CLERK 7698 03-DEC-1981 00:00:00 950 30
7934 MILLER CLERK 7782 23-JAN-1982 00:00:00 1300 10
7 rows selected.
SQL> select * from emp
2 minus
3 select * from emp2;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-1980 00:00:00 800 20
7499 ALLEN SALESMAN 7698 20-FEB-1981 00:00:00 1600 300 30
7654 MARTIN SALESMAN 7698 28-SEP-1981 00:00:00 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-1981 00:00:00 2850 30
7844 TURNER SALESMAN 7698 08-SEP-1981 00:00:00 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-1987 00:00:00 1100 20
7902 FORD ANALYST 7566 03-DEC-1981 00:00:00 3000 20
7 rows selected.If you actually need to know what columns data is different on "non-matching" rows (based on your primary key) then you'll have to compare column by column. -
How to merge two search button from different criteria
How to merge two search button from different criteria
this image show the question
http://s24.postimg.org/4algthuj9/1111.jpg
two different criteria for the same view and I need to merge it in one button as when I click
on the button search result give from two criteria parametersYou can!t using af:query. the af:query component comes as is. If you can't do it through the properties, you probably can't do it at all.
As in your other thread, the way to go is to program your own search form. This way you can use a layout and functionality you like.
For this you create a form with input fields for the values you are searching for, put them on hte page in a way you like and in the end by hitting on a button (e.g. called Search) map all inputfields to parameters of a service method you defined in your application module or VO. This service method then executes a view criteria returning all matches in the default iterator (just as if you had used af:query.
Timo -
How to compare two rows from two table with different data
how to compare two rows from two table with different data
e.g.
Table 1
ID DESC
1 aaa
2 bbb
3 ccc
Table 2
ID DESC
1 aaa
2 xxx
3 ccc
Result
2Create
table tab1(ID
int ,DE char(10))
Create
table tab2(ID
int ,DE char(10))
Insert
into tab1 Values
(1,'aaa')
Insert
into tab1 Values
(2,'bbb')
Insert
into tab1 Values(3,'ccc')
Insert
into tab1 Values(4,'dfe')
Insert
into tab2 Values
(1,'aaa')
Insert
into tab2 Values
(2,'xx')
Insert
into tab2 Values(3,'ccc')
Insert
into tab2 Values(6,'wdr')
SELECT
tab1.ID,tab2.ID
As T2 from tab1
FULL
join tab2 on tab1.ID
= tab2.ID
WHERE
BINARY_CHECKSUM(tab1.ID,tab1.DE)
<> BINARY_CHECKSUM(tab2.ID,tab2.DE)
OR tab1.ID
IS NULL
OR
tab2.ID IS
NULL
ID column considered as a primary Key
Apart from different record,Above query populate missing record in both tables.
Result Set
ID ID
2 2
4 NULL
NULL 6
ganeshk -
Hi,
I want to merge two rows in my reprt.For ex:
<u>Now my report is showing in this format:</u>
Customer Plant Value
A B 0
B 12.5
<u>I want to make it as</u>
Customer Plant Value
A B 12.5
Any suggestions. Thanks.You can try doing a lookup for your field A at the cube or the ODS level[in your update Rules].
You get two different records because your Field A is # not assigned in this record. Try populating your field A doing a lookup to other related ODS or cube based on your key fields. This would get you a single record with all the fields and a single record at the report level. -
How can update two rows in one query?
How can update two rows in one query?
Edited by: OracleM on May 4, 2009 12:16 AMWhat do you mean with "two rows"? May be two columns??
If the where clause of UPDATE query matches two rows, then it will update two rows. If you want to update two columns, then add column names to your query
UPDATE your_table SET col1=value1, col2=value2 WHERE your_where_clause- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
How to merge two accounts?
How to merge two accounts apple id and icloud (purchase)?
You can't. See: http://support.apple.com/kb/HT4895
-
How to merge two Outlook 2010 pst data files?
How to merge two Outlook 2010 pst data files?
Easy way: with the one you want to use open in Outlook and the other one not in your profile, go to File, Open, Import.
If you only want to merge some content, open both pst files in outlook and drag between folders. For calendar, use a list view to see all of the appointments.
Diane Poremsky [MVP - Outlook]
Outlook Daily Tips |
Outlook & Exchange Solutions Center
Subscribe to Exchange Messaging Outlook weekly newsletter -
How to merge two conflicting contact on iPhone and on laptop?
How to merge two conflicting contacts?
When syncing my iPhone w/ my Mac laptop, it seems that Apple does not provide an option that allows you to merge the data from two conflicting contacts. For example, you have a contact on your iPhone for Andy Summer and a contact on your laptop for Andy Summers - one contact contains only Andy's name and email address, the other contact contains only Andy's name and his mailing address. I'd like to be able to merge the data from these two contacts into one and save it to both, but the Conflict Resolver in the syncing program (I think it's in iTunes) does not offer an option for merging the two.
Does anyone have any knowledge about 1) how to merge data from two conflicting contacts, or 2) some other way to keep the data from each so that I don't have to choose one over the other?Jawad,
First of all,You need to make teaming on both the interfaces on the server side.Which mode do you want to use? Active-Active or Active-Standby.
Server side :Active-Active - You need to configure the switch side to be a etherchannel/LACP. It can be done by the commands on the cisco 4006.
Server side :Active-Standby - You need nothing to do at the switch side.
Note: Seems PAGP is a proprietary of cisco. Server shouldn't know that. To be bound with mode "on" of "lacp" should be fine. It depends on the server side as well.
HTH
Thot -
How to merge two movies documents into 1 in iTunes?
Can anyone tell me how to merge two movies documents into one in iTunes? Sorry maybe this is an easy and dumb question for you, but I have totally no idea. I download some movies in Windows and use Kigo Video Coverter to converte them into mp4 format. So I can watch it through new Apple TV in my big screen TV. Now I am thinking maybe I can upgrade my experience a bit more. Because some movies are downloaded into 2 or 3 separated document and I have to choose and click them while seeing. Is there any software can merge those separated documents into one single in mp4 format? I wish you could give me several to choose . Freeware is better. Thanks in advance.
Thanks. I've tried simplemovies application but it seems too much complicated for me. I read some passages online and bought Quicktime Pro ($30) and finally link 2 mp4 documents together. So easy. Only issue is I have to pay $ 30 .
Maybe you are looking for
-
View contents of external display on main display (PIP-style)
I occasionally connect a TV to my MacBook Pro to watch movies and TV shows. The problem is that I cannot see the TV from where the computer is located. The computer must stay in this location in order to remain connected to the external HD and A/V
-
Applet lodaing on a machine that doesnot have JRE installed
I am developing an applet that uses several awt components. If a client does not have JRE installed on his/her machine then firts JRE is downloaded then applet is started. Is there any way that i don't need the JRE or some procedure to minimize the d
-
Compilation Albums in Itunes 7.0
A problem I have yet to see on these boards with 7.0 Compilation albums will not display in track order (or play in track order!) Some of them seem to go into artist order on the album and I can't work out what the order is for others - it doesnt pla
-
Multi Threaded Insert in Berkeley DB
Hi, This is my requirement. Have to read 9 million records from Oracle DB. Have to identify KEY and have to instantiate VO object as VALUE Have to insert 9million records (key and value VO's) into Berkeley DB. What is the best way to do this? Perform
-
How to uninstall SMP3.0 SP6
Hi, We have recently upgraded the SMP3.0 from SP5 to SP6, but have issues in publishing the package. If I want to uninstall the SP6 or reinstall SP5, what is the best practice? Ahmad