pleaseee can anyone make many to many relationship between;
CREATE TABLE COURSE(
CNO NUMBER(4) NOT NULL,
CNAME VARCHAR2(20),
PRIMARY KEY(CNO)
);
CREATE TABLE TEACHERS(
TCODE NUMBER(3) NOT NULL,
TNAME VARCHAR2(12),
TADRESS VARCHAR(10),
DEPT VARCHAR2(4),
PRIMARY KEY(TCODE)
);
how a new born child is coming here? from nowww thanks your help!
5 8226
As you have posted a question in the articles setion it is being moved to Oracle Forum.
MODERATOR.
Could you be more specific on your requirement?
Theoritically defining, MANY-TO-MANY relationship can be defined as the objects on either side are related to each other more than once.
For Eg: Object Teacher can handle more than one subject, and a single subject can be handled by more than one teacher.
But from the two tables that you have created cannot be joined because there is not column that can be used to join these two tables.
can you give me another example for many to many relationship?
STUDENT - COURSE (A student can undergo any no of courses. A single course can be studied by more than one student)
TEACHER - DEPARTMENT (A teacher can belong to Science as well as Maths Dept and many teachers can be a member of single dept)
pleaseee can anyone make many to many relationship between;
CREATE TABLE COURSE(
CNO NUMBER(4) NOT NULL,
CNAME VARCHAR2(20),
PRIMARY KEY(CNO)
);
CREATE TABLE TEACHERS(
TCODE NUMBER(3) NOT NULL,
TNAME VARCHAR2(12),
TADRESS VARCHAR(10),
DEPT VARCHAR2(4),
PRIMARY KEY(TCODE)
);
how a new born child is coming here? from nowww thanks your help!
Hi
what i think means.... One teacher takes several course..one course can handle by different teachers
this is a many to many reletionship
thanks
michael
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Prabu |
last post by:
Hi,
I'm new to python, so excuse me if i'm asking something dumb.
Does python provide a mechanism to implement virtual functions?
Can you please give a code snippet also...:)
Thanx in advance
-Prabu.
|
by: susmita_ganguly |
last post by:
Hi
I am trying to upgrade from oracle 8i to oracle 9i on the same server
..I don't know much abt migration .
Can anyone help me out.
Thanks.
Susmita
|
by: Charles Law |
last post by:
This is going to seem like a basic OO question, but it comes up and bites me
every now and again.
Suppose we have a multi-tiered protocol to implement, what is the logical,
OO way to design the handler? For example, let's say that we have to
implement the ISO 7-layer protocol, or something like an Allen-Bradley
master-slave protocol. At the...
|
by: Ken Loh |
last post by:
Hi All,
I'd like to develop something which has a concept like the
folders-and-files in your PC.
A folder can have subfolders and/or files. The subfolders themselves
have the same characteristics.
This characteristic can also be found in Google Newsgroup, aka Usenet.
A group can have many postings and many other groups.
|
by: Sasha |
last post by:
Hi everyone,
What is the best way to implement many-to-many relationship between objects?
Any examples or links are welcome!
Thank you,
Sasha
| |
by: PenguinPig |
last post by:
Dear Experts,
Could you please provide you comment to me? Thanks
An Exhibition has many Halls, and different Booth Types
If exhibition is not exist, hall and booth type will not exist too.
In the object level, my design like follow, is this design elegance?
Class Exhibition
|
by: jainarayan5484 |
last post by:
Can Any body give me example of one to many relationship in oracle object
pls help me
jai narayan
|
by: greenMark |
last post by:
Hi All
I need to develope a data warehouse in oracle. I was able to develope a small one using oracle enterprise manager. But my main idea is to develope the necessary GUIs using Oracle Forms 6i. Can I implement the warehouse in Oracle warehouse builder and create GUIs with Oracle Forms? Can anybody suggest any other way to implement a Data...
|
by: King |
last post by:
This is a new test for object persistency. I am trying to store the
relationship between instances externally.
It's not working as expected. May be I am doing it in wrong way. Any
suggestions?
import shelve
class attrib(object):
pass
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |