Home » SQL & PL/SQL » SQL & PL/SQL » One URGENT question about SQL
One URGENT question about SQL [message #37475] Mon, 11 February 2002 06:32 Go to next message
Chen Wen
Messages: 26
Registered: February 2002
Junior Member
There are three tables: course, sect and enrolled.
How to list all departments, numbers, minimum enrollment, and how far they're under that will be cancelled due to under-enrollment.
course:
DEPT NUM NAME CREDITS
-------------------------------
CSCI 541 Database 3
CPT 541 Access 4
CSCI 702 PhD Thesis 3
sect:
DEPT NUM SECT MIN_NUM MAX_NUM
----------------------------------------
CSCI 541 B332 20 30
CPT 541 S873 30 150
CSCI 701 B411 1 1
CSCI 702 B445 1 3
CSCI 701 B412 1 2
CSCI 701 B4131 1 1
enrolled:
SIDN SECT CREDITS
---------- ----- -------
111111111 B411 2
222222222 B332 3
111111111 B412 3
222222222 B412 4
333333333 B412 3
Re: One URGENT question about SQL [message #37514 is a reply to message #37475] Tue, 12 February 2002 14:58 Go to previous message
Raj
Messages: 411
Registered: November 1998
Senior Member
please clarify this part of your question'and how far they're under that will be cancelled due to under-enrollment.'
Raj
Previous Topic: after coding the sucessful cursor what are the steps to get the cursor output
Next Topic: selecting only a specified portion of a select
Goto Forum:
  


Current Time: Wed Apr 24 19:32:01 CDT 2024