I have two tables on SQL Server.
Table A:
| EmployeeID | FollowingID | StudentID |
| 2 | 1 | 8 |
| 2 | 2 | 9 |
| 2 | 3 | 7 |
Table B has ten columns with the common key between the two tables being the StudentID. Table B has 500 rows.
Using the info in Table A, an inner join should return three rows of data.
However, if I use this code it returns 500 rows.
ClearCollect(colJoin,
AddColumns(vw_Students_CaseNumber,"FollowingNumber",LookUp(colFollowing,personID=colFollowing[@StudentID],FollowingID)))
If I use this code, it returns three rows.
ClearCollect(colJoin, AddColumns(colFollowing,"CaseNumber",LookUp(vw_Students_CaseNumber,StudentID=vw_Students_CaseNumber[@personID],casenumber)))
I want to use the former code example as that table has all of the columns, except one, that I want.
Why isn't this working? What am I missing?
Thanks,
Steve