Open zishan0215 opened 10 years ago
How will we update d attendence ? and can u post d pics here again zishan.
![Uploading db2.jpg . . .]() ![Uploading db3.jpg . . .]()
I'm working on that part.. updating the attendance..
In the teacher view, the rightmost button "feed" will be the one from where the teacher will update the attendance
but if we are clear with d tables..den writing query wont be a problem...i m confused wid d 2nd pic u posted on fb :confused:
Can't you see the second pic here ? and the third ?
When the teacher clicks the view button, then that is the view the teacher will get.. that is what the second pic is about
no zee ..only d 1st pic
ohk..i got it now... d first page will have d login for d teacher (in pic1) n den d teacher can update info (pic2 ) :+1:
when the teacher logs in.. he goes to pic 1 when he clicks on view, he goes to pic 2 which is view only.. not updatable.
To update the attendance, he clicks on feed.. then he goes to pic 4(which i will post soon) and is more or less same as pic 2
@wadhwasahil come here now :P
hi guys.)
hello
Phew! worked welcum sahil
ok zee ..but let me try d query
I mean why zishan you r creating an xtra table
which is d extra table?...we need 3 tables atleast
and btw sir said the updation is only done by fayaz and zishan sir
so admins are only zishan and fayyu
3 tables would work fine
1 st table = options table 2nd table = feed table and offcourse various tbles linked with them
no...updation are done by the teachers themselves... the admin decide the time frame
so what role does admin play ??
updation can be done by subject teacher also. and admin also ..we need to keep both d options .
i dont see how can your database design work with the tables you mentioned
what's wrong with it??
@nkmittal4994 yes we can have both the options
it wont work.. too much redundancy... and what do you mean by various tables linked with them ?
lets see..you also posted the same design almost
This is the view of the feed button.. identical to the view of the view buttton with one difference of fetching the time period
@wadhwasahil If you have a design in mind then post the pics like i am doing. and show the relationship among them
feed button is only for d admin? and for teacher only for dat subject ..but how will we manage dat ?
No ! The first pic is the teacher's view.. Feed as well as the view button are for the teacher Admin will come later.. Right now we are only discussing about the teachers
ok..den its fine :relaxed:
Using the attendance table (in the above pic), we will be able to update the attendance when the teacher clicks the feed button. update table attendance set attendence=$attendence, period=$period where student_id = $id
and now the view section of the view button can be completed by the query select student.roll_no, student.name, attendance.attendence From attendance, student where student.semester = $semester and attendance.period = $period and attendance.subject_code = $sub_code;
seems fine till now I am working on design as well
okay
acha zee read somehting about update anomalies... we have to take care about des things too.
okay.. will read about that
and one more thing ..will we keep d record of all d updates? dat we do
yes.. everytime a teacher feeds the attendance, it will be stored in the database along with the time period for which it corresponds to
ok fine
and this update anomaly is the reason why normalization is important.. That is why if you see the tables. i have only included the subject id and not subject name as well...same with student id .. and then created a separate table for student and subject so that they can be updated without any problem
hi all
hello
yeah correct @zishanAhmad
Database Schema Design
Thursday we have our DBMS lab and we will have to show our database schema to the teachers. I have started with it and will upload a picture of the schema as soon as i finish with it. There will however be many changes to make so i request everyone to give their suggestions