I need a view compatible SQL query to accomplish the following result (View 1).
Table 1:
--------------
ID | Folder
--------------
1 | foo
2 | bar
Table 2:
-------------------------------------
ID | Table1_ID | Name | Right
-------------------------------------
1 | 1 | fooUser | W
2 | 2 | barUser | R
View 1:
-------------------------------
Folder | fooUser | barUser
-------------------------------
foo | W |
bar | | R
I was only able to do so with custom functions, but I can only use this as storage procedures. I want to bind the result to a GridView. I hope anybody can help me out.