Suppose I have this simple table
UserID|Name |Aid ID
1 |Bob | 3
2 |Alice | 1
3 |Ted | 4
4 |Sam | 2
In a query, I would have to list the name of the person, and the name of the person that they aid. I thought about doing a View, but I feel like this could be done in a simple query than creating a view. How would I do that, and how does the query work exactly, like the fundamentals behind it?
you need to join the table to itself