Need a help to merge two rows with similar name up to X from a table.
Hello Team,
Can you help me to get desire output.
Table name TBS with below details.
Name number
---------- -------------
ABCD_data2 10
ABCD_index2 20
XYZ_data2 30
XYZ_index2 20
i want output as below.
Name number
------------ ---------------
ABCD 30
XYZ 50