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 > SQL queries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-19-04, 19:33
thomyorker thomyorker is offline
Registered User
 
Join Date: Mar 2004
Posts: 1
SQL queries

So, my teacher is an jerk, and threw this project at us without any examples. I'm not kidding. We just began SQL programming a week ago, and this particular project is giving me alot of headaches. I would appreciate any help.

3. Find the names of customers that have purchased items from two or more different employees, where the items have come from the same vendor.

4. Find the names of vendors that have had items sold by employees of only one department.

*** arf_department
DEPT_NO
DEPT_NAME

*** arf_customer
CUST_NO
CUST_NAME

*** arf_vendor
VENDOR_NO
VENDOR_NAME

*** arf_employee
DEPT_NO
EMP_NO
EMP_NAME

*** arf_inventory
VENDOR_NO
ITEM_CODE

*** arf_sales_transactions
EMP_NO
CUST_NO
ITEM_CODE
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