MySQL Forums
Forum List  »  Newbie

how to get rid of repeating row label in mysql result set
Posted by: Waseem Asghar
Date: July 28, 2019 09:35PM

I have two tables named customers with primary key cid and installment with foreign key cid. i join both table. Result set contains repeating items labels.But i want result set do not contain repeating items labels. explanation as under
custom table
cid name cell
12 Ramzan 033333
15 zahid 034444
21 Shahid 035222

installment table

cid amount date
12 1500 12-05-19
15 1500 13-05-19
12 1500 15-05-19
15 1500 17-05-19
21 2000 20-05-19

Resultant table

cid name cell date amount
12 Ramzan 03333 12-5-19 1500
12 Ramzan 03333 15-05-19 1500
15 Zahid 03444 13-05-19 1500
15 Zahid 03444 17-05-19 1500
21 Shahid 035222 20-05-19 2000


But i want to get this resultant Table

cid name cell date amount
12 Ramzan 03333 12-5-19 1500
15-05-19 1500
15 Zahid 03444 13-05-19 1500
17-05-19 1500
21 Shahid 035222 20-05-19 2000
total 8000

But i want to get this resultant Table

cid name cell date amount
12 Ramzan 03333 12-5-19 1500
15-05-19 1500
15 Zahid 03444 13-05-19 1500
17-05-19 1500
21 Shahid 035222 20-05-19 2000
total 8000

Options: ReplyQuote


Subject
Written By
Posted
how to get rid of repeating row label in mysql result set
July 28, 2019 09:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.