The solution to this topic is evading me.
I have a table similar (apart from other fields that have nothing to do with my question):
NAME, CARDNUMBER, MemberType
Now I want the view to show lines in which the card number and item type are identical. Both of these fields are integers. The name is VARCHAR. The name is not unique, and duplicate the card number, the type of participant must show the same name.
those. if the following table:
JOHN | 324 | 2 PETER | 642 | 1 MARK | 324 | 2 DIANNA | 753 | 2 SPIDERMAN | 642 | 1 JAMIE FOXX | 235 | 6
I would like to:
JOHN | 324 | 2 MARK | 324 | 2 PETER | 642 | 1 SPIDERMAN | 642 | 1
it can simply be sorted by card number to make it useful to people.
What is the most effective way to do this?
source share