Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
QuestionTime Format Pin
somagunasekaran15-Jun-08 18:51
somagunasekaran15-Jun-08 18:51 
AnswerRe: Time Format Pin
Syed Shahid Hussain15-Jun-08 18:56
Syed Shahid Hussain15-Jun-08 18:56 
GeneralRe: Time Format Pin
somagunasekaran15-Jun-08 19:04
somagunasekaran15-Jun-08 19:04 
GeneralRe: Time Format Pin
ginji2015-Jun-08 20:18
ginji2015-Jun-08 20:18 
AnswerRe: Time Format Pin
Nouman Bhatti15-Jun-08 21:03
Nouman Bhatti15-Jun-08 21:03 
AnswerRe: Time Format Pin
PIEBALDconsult16-Jun-08 5:47
mvePIEBALDconsult16-Jun-08 5:47 
Questioncodes for receiving fax data from 3 modem simultaneously to pc using c# Pin
ginji2015-Jun-08 17:35
ginji2015-Jun-08 17:35 
QuestionI did my home but need some tuning Pin
netJP12L15-Jun-08 16:09
netJP12L15-Jun-08 16:09 
I have 3 tables students, courses and courses_tables. The thing I don't understand is that do i need to have student_id as a Foreign key in courses table. Secondly, what kind of key i need to define in the courses_taken table. I am thinking of a composite primary key of std_id and course_id inside the courses_taken table but that doesn't make sense for me too. The reason being is that shouldn't student be allowed to take the same course again. What do you think that how many primary keys i need to have in these 3 tables and Foreign keys.
Thanks
CREATE TABLE STUDENTS
(
std_id int not null identity,
std_name varchar(50) not null,
std_program varchar(20) not null,
std_email varchar(50) not null unique,
constraint std_id_pk PRIMARY KEY(std_id)
)


CREATE TABLE COURSES
(
course_id int not null identity,
course_name varchar(50) not null unique,
std_id_fk int references STUDENTSRK(std_id)
constraint course_id_pk primary key(course_id)

)

CREATE TABLE COURSES_TAKEN
(
std_id int not null,
course_id int not null,
section_id varchar(10) not null,
semester varchar(20) not null,
mark int not null,

)
AnswerRe: I did my home but need some tuning Pin
AB777115-Jun-08 16:23
AB777115-Jun-08 16:23 
AnswerRe: I did my home but need some tuning Pin
Christian Graus15-Jun-08 16:35
protectorChristian Graus15-Jun-08 16:35 
GeneralRe: I did my home but need some tuning Pin
netJP12L15-Jun-08 16:47
netJP12L15-Jun-08 16:47 
GeneralRe: I did my home but need some tuning Pin
AB777115-Jun-08 17:53
AB777115-Jun-08 17:53 
GeneralRe: I did my home but need some tuning Pin
netJP12L16-Jun-08 4:56
netJP12L16-Jun-08 4:56 
GeneralRe: I did my home but need some tuning Pin
AB777116-Jun-08 14:36
AB777116-Jun-08 14:36 
Questionupdating error using oledbcommandbuilder Pin
ginji2015-Jun-08 15:16
ginji2015-Jun-08 15:16 
AnswerRe: updating error using oledbcommandbuilder Pin
Christian Graus15-Jun-08 15:18
protectorChristian Graus15-Jun-08 15:18 
GeneralRe: updating error using oledbcommandbuilder Pin
ginji2015-Jun-08 17:30
ginji2015-Jun-08 17:30 
Questionout variable assignment Pin
George_George15-Jun-08 15:13
George_George15-Jun-08 15:13 
AnswerRe: out variable assignment Pin
Christian Graus15-Jun-08 15:17
protectorChristian Graus15-Jun-08 15:17 
GeneralRe: out variable assignment Pin
George_George15-Jun-08 15:25
George_George15-Jun-08 15:25 
GeneralRe: out variable assignment Pin
Christian Graus15-Jun-08 15:27
protectorChristian Graus15-Jun-08 15:27 
GeneralRe: out variable assignment Pin
George_George15-Jun-08 15:49
George_George15-Jun-08 15:49 
GeneralRe: out variable assignment Pin
S. Senthil Kumar15-Jun-08 18:16
S. Senthil Kumar15-Jun-08 18:16 
GeneralRe: out variable assignment Pin
George_George15-Jun-08 18:51
George_George15-Jun-08 18:51 
GeneralRe: out variable assignment Pin
S. Senthil Kumar15-Jun-08 19:03
S. Senthil Kumar15-Jun-08 19:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.