Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rkpatelqlikview
Creator III
Creator III

How to count same records from two tables

Hi

can anyone please give me a clarity on this.

Please find the attached sample document.

There are 2 tables. One is Sub and another is Master.

Sub table having the fields Tid, Vnum, Status, Dnum,Date.

Master table is having fields Dnum, Vnum, Date.  This Master table having all the missed Dnum's from Sub.

Sub table is missed some Dnum's.

I need to count the number of entries of Dnum's with Sub  and with out Sub from the Master table.

Please suggest.

Thanks in advance.

1 Solution

Accepted Solutions
techvarun
Specialist II
Specialist II

Please check the attached helps.

If not share the expected results

View solution in original post

7 Replies
karthikoffi27se
Creator III
Creator III

Hi Kumar,

You can concatenate two tables and then count the Dnum's. This will give the count from two tables.

Many Thanks

Karthik

rkpatelqlikview
Creator III
Creator III
Author

Thanks for your quick response Karthik.

Need to count matched Dnum's and Unmatched Dnum's from the both tables.

how to achieve this?

After concatination its showing like below Nulls.

112.PNG

arvind1494
Specialist
Specialist

count(master.Dnum)-count(sub.Dnum)  will give you entries without sub

and

count(sub.Dnum) will give entries with a sub


tamilarasu
Champion
Champion

Hello Kumar,

Please look at the attached file and let us know whether this is your requirement or not.

techvarun
Specialist II
Specialist II

Please check the attached helps.

If not share the expected results

rkpatelqlikview
Creator III
Creator III
Author

Correct one. Thanks for your support

43918084
Creator II
Creator II

Would you mind to share the file Comm-289555.qvw    for this solution?