i am new to sql I have 2 tables first one with marks and second one with students. marks have a primary key of marksid and students have primary key student id. I want to know what should be the relation ship between both the tables so each student can have separate marksid. and what will be the sql query to get their data.
I have tried one to one relationship with this select query s="select s.Student Name,z.Hourly1Marks from Student s,marks z " but it is showing Cartesian product of entries.