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 > Data Access, Manipulation & Batch Languages > ANSI SQL > Exam Tommorrow Help me please

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-06, 17:55
jaypee007 jaypee007 is offline
Registered User
 
Join Date: Mar 2006
Posts: 14
Exam Tommorrow Help me please

Hi there I have an exam tommorrow and i am studying for my SQL which I havent done in months and cant even work out how to do my revision problems.

DELEGATE: course coude, employee num, date, attended
EMPLOYEE: employee num, forename, surname,address,DOB,joined,department
DEPARTMENT: department num, department name, manager, email
SALARY: salary grp, salary

Could someone please help me with the code for these two queries it would be greatly appreciated.

1. List the number of ppl in each department who attended a training course (attended = yes). output department name and count only.

2. Calculate a bonus for every member of staff, if they joined more than 10 years ago they get a 5% on their salary, else they get 2.5%
Reply With Quote
  #2 (permalink)  
Old 05-22-06, 20:31
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by jaypee007
Hi there I have an exam tommorrow and i am studying for my SQL which I havent done in months
oh, man, that's too bad

my advice: get off the internet and re-read your books and course notes, then get a good night's sleep
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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