I have two tables like :
first:
number fact
1 ADMIN
2 MANAGER
3 ALL RIGHTS
4 NO RIGHTS
second:
stuff rights
1 3
2 4
I need to get this:
stuff rights
ADMIN ALL RIGHTS
MANAGER NO RIGHTS
How should I write code in sql?