Question: Java Programming Self Study Examples: Try to code listing for the Primary-Foreign key relations of the sets given below: 1) (Deep Nesting) PKino PK sno

Java Programming

Java Programming Self Study Examples: Try to code listing for the Primary-Foreign

key relations of the sets given below: 1) (Deep Nesting) PKino PK

Self Study Examples: Try to code listing for the Primary-Foreign key relations of the sets given below: 1) (Deep Nesting) PKino PK sno FK ino PK mno FK sno 2) (Parallel Nesting) PK ino PK mno PK sno FK ino FK ino class Student private String stdname; private String stdid; private String stddept; public Student(String sid, String sname, String sdept) { stdid=sid; stdname=sname; stddept=sdept;} public String get_stdname() { return stdname; } public String get_stdid() { return stdid; } public String get_stddept() { return stddept; } public void set_stdname(String sname) { stdname=sname; } public void set_stdid(String sid) { stdid=sid; } public void set_stddept(String sdept) { stddept=sdept; } } class Score private String stdid; private float stdmt; private float stdfinal; private float stdhw; private String Igrade; public Score(String sid, float smt, float sfinal, float shw) { stdid=sid; stdmt=smt; stdfinal=sfinal; stdhw=shw;} public String get_stdid() { return stdid; } public float get_stdmt() { return stdmt; } public float get_stdfinal(){ return stdfinal; } public float get_stdhwik return stdhw; } public String get_lgrades() { return Igrade; } public void set_igrade(String tigrade) { Igrade = tlgrade; } } Self Study Examples: Try to code listing for the Primary-Foreign key relations of the sets given below: 1) (Deep Nesting) PKino PK sno FK ino PK mno FK sno 2) (Parallel Nesting) PK ino PK mno PK sno FK ino FK ino class Student private String stdname; private String stdid; private String stddept; public Student(String sid, String sname, String sdept) { stdid=sid; stdname=sname; stddept=sdept;} public String get_stdname() { return stdname; } public String get_stdid() { return stdid; } public String get_stddept() { return stddept; } public void set_stdname(String sname) { stdname=sname; } public void set_stdid(String sid) { stdid=sid; } public void set_stddept(String sdept) { stddept=sdept; } } class Score private String stdid; private float stdmt; private float stdfinal; private float stdhw; private String Igrade; public Score(String sid, float smt, float sfinal, float shw) { stdid=sid; stdmt=smt; stdfinal=sfinal; stdhw=shw;} public String get_stdid() { return stdid; } public float get_stdmt() { return stdmt; } public float get_stdfinal(){ return stdfinal; } public float get_stdhwik return stdhw; } public String get_lgrades() { return Igrade; } public void set_igrade(String tigrade) { Igrade = tlgrade; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!