store
| Store ID | Description | Location | Telephone | Manager |
------------------------------------------------------------------------------------------------------
| 00001 | ABC Stores | tyhth | 0112 675432 | ffff |
| 00002 | XYZ Sores | yuyu | 0112 342123 | nnn |
---------------------------------------------------------------------------------------------------
Store_Employee
| Store ID | Employee ID | Assigned Date/Time | Assigned by | Is Active? |
---------------------------------------------------------------------------------------------
| 00001 | 11111 | 2012/05/26 10:50AM | Admin | TRUE |
| 00002 | 11112 | 2012/05/27 11:50AM | Admin | TRUE |
| 00002 | 11113 | 2012/05/28 12:50AM | Admin | TRUE |
---------------------------------------------------------------------------------------------
this an example how iam assigning employees to stores.
"SELECT * FROM Store_Employee WHERE Store_ID = '00001' AND Employee_ID = '11111'" will result not null result.
But same employee going to access store id 00002 with same type select query he will obtained null set. because he isnot asigned to that store.
my problem is this, how can i implement admin who can access all stores in these conditions. Your ideas are highly appreciated