Hi guys,
I want to compare a table coloum with the last entry of another (by foregn key given) table. And then fobit the entry, when it's the last.
So:
- Table 1 - Coloum userid - value: 1000
- Table 2 . Coloum userID - value: 1000 // Coloum rowID: 1
- Table 2 . Coloum userID - value: 2000 // Coloum rowID: 2
- Table 2 . Coloum userID - value: 1000 // Coloum rowID: 3
Should be: NO
So:
- Table 1 - Coloum userid - value: 1000
- Table 2 . Coloum userID - value: 1000 // Coloum rowID: 1
- Table 2 . Coloum userID - value: 2000 // Coloum rowID: 2
Should be: YES
My try:
(from a in dc.table1
where a.UserID != a.table2.Last().UserID)
But it don't work. Error is "The query operator 'Last' is not supported."