on 06-17-2017 11:24 AM
You need to check you table joins to give you a one to many link and not a many to many.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just use a left outer join from main to subtable on ID.
If data exists in subtable it will show and if not data will still be displayed from main table.
ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Ian Waterman when use a left outer join from main to subtable on ID after this the show me the problem is :
my problem :
show ID 20 in (main table) and show all ID from (sub-table)
And so on
show ID 21 in (main table) and show all ID from (sub-table)
And so on
show ID 22 in (main table) and show all ID from (sub-table) , How to solve ?
I want As shown in the picture of the question :
show ID 20 in (main table) and show all ID (20) only from (sub-table)
show ID 21 in (main table) only and don't show all ID from (sub-table)
show ID 22 in (main table) and show all ID (22) only from (sub-table)
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.