Ok i'm sorry about the vague Title cos I don't know how to put this. this is my problem.
CREATE TABLE dwd_temp (con VARCHAR2(10),line_no VARCHAR2(10),wgt NUMBER,pallet VARCHAR2(10));
insert INTO dwd_temp VALUES('a','1',10,NULL);
insert INTO dwd_temp VALUES('b','1',11,'x');
insert INTO dwd_temp VALUES('b','2',12,'x');
insert INTO dwd_temp VALUES('b','3',13,'y');
now my requirement is to 'replace' the lines that have the same "pallet" that is at the end i need a query to have one line that reads b,1,23,x instead of the two lines with the pallet as 'x'. so my result should be
a 1 10 null
b 1 23 x
b 3 13 y