If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > query problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-05, 12:52
idiotphp idiotphp is offline
Registered User
 
Join Date: Oct 2005
Posts: 1
query problem

Task: DB schema of a system which is currently working as follow.

Employees:- different levels/types of user in organisation like CEO, administrator, Manager, Supervisiors, workers etc etc

Departments
HR, IT, Health, Accounts etc etc

Each employee is working in multiple roles like user "ABC" is working manager as well as worker. It is also possible that manger of "ERT" dept and "SGY" can assign duty to worker "XYZ"

1 Please design a DB schema which handles this situation in a most efficient way. Please design most suitable and best way to handle all these activites. and also poplule some data in DB and design SQL queries which gives us following results

1.1 Show managers who are also reporting to other managers of other departments.

1.2 Show all employees who have more than 1 managers.

1.3 Show all employees who don't have any managers.
Reply With Quote
  #2 (permalink)  
Old 10-31-05, 02:47
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,260
Hi Idiot PHP
what did you do during your lectures / tutorials / school classes? Have you gone back to your teacher / lecturer for any guidance, there's a real good reason for doing this, if you have attended all your classes and are not in a position to even attempt it then either the teaching was poor and they (either the teacher or institution) need to improve it urgently.

BTW the forums generall don't assist with homework.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On