Selasa, 31 Januari 2017

Re: [MS_AccessPros] Re: Attendance

 

If you are totally confused, so am I!


You need to understand at least the fundamentals of database design.  Go to:


.. and download and study the "Designing a Database" pdf file.  Take what you learn from that and start over with the tasks you want to document in your database.  Come up with a new design and then come back here for more help.

John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Jan 31, 2017, at 1:48 AM, jamshi285 jamshi285 jamshi285@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



Answers

1)I put batch id in registration table because for a new joiner. I would like to add his batch (class timing)

2)Before a student attempting for a test he has to be make a register for a test( can avoid)

4)Purpose of batch table is actually class timing eg: Sunday karate 7 to 9,then 6pm to 8 pm.Monday 9 pm to 11 etc (when a student is join same time he has to select the  timing also.. 

5)I am totally confused in Discipline table
6&7   I still don't know
I didn't make any relation ship



Sent from Yahoo Mail for iPhone

On Tuesday, January 31, 2017, 1:36 AM, John Viescas JohnV@msn.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Some of this makes sense, but most of it does not.


1. What is BatchID in the Registration Table related to?

2. What's the purpose of the Test Registration Table?  Why doesn't it show the test result?

3. The Arts table looks OK.

4. What is the purpose of the Batch table?  It appears to be related to the Registration table.

5. The Discipline table makes no sense.  It appears you have multiple columns that should be rows instead.

6. The Result table looks fairly OK, but there's no column to save the result of the test.

7. The Tests table seems to mimic something I suggested, and it may be OK if you clean up Discipline.

8. Attendance table may be OK if you explain Batch to me.

Have you used the Relationships facility in Access to define how these tables are related?  You should have a clear hierarchy of relationships defined using this feature.

John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Jan 30, 2017, at 9:49 PM, jamshi285 jamshi285 jamshi285@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



Hi John
It is full structure of my table can you check please

1# REGISTRATION TABLE
studentID
firstName
last name
Date of join
course id
BatchID

2# test Registration Table

1ID
2 student ID
3 TestID
4 DATE

3# Arts table
ArtID
ArtName

4# Batch table

BatchID
BatchName
BatchDays
BatchTime


5# Discipline Table

Shoshin #1 (sub 1,2,3,4,5)
Kihon #1 (sub 1,2,3,4,5)
Nage #3(sub 1,2,3,4,5)
Kumite #3
Jissen #1
Strength (sub 1,2,3,4,5)
Flexibility (sub 1,2,3,4,5)
Stamina (sub 1,2,3,4,5)
 

(Kungfu)
Traditional Forms
DefensE
Basic Skills
Discipline
Flexibility 
Strength 
Speed
Punches
Kicks
 

6# Result table

ResultID
StudentId
TestId


7# Test table
TestId
ArtId
Discipline Id
TestName

8# attendance table
 Date
Batch name
Student Name
Attendance Yes/No


Example Result example

Name :jamshi
Date : 1/1/17
Prevouse belt.  White
Testing belt :Yellow
Arts : karate
Shoshin #1 (
sub 
Shoshin A, Result
Shoshin B, Result
Shoshin C, Result
Shoshin D, Result
Shoshin E, Result)

Kihon 
Kihon A, Result
Kihon B, Result

Nage 
Kumite 
Jissen
Strength 
Flexibility 
Stamina 

Same model Kung fu
Deferent student name only


Sent from Yahoo Mail for iPhone

On Monday, January 30, 2017, 3:48 PM, John Viescas JohnV@msn.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

So, the hierarchy looks like:


Karate
    Strength
        Push Up
        Squat
        Sit Up
        Back Sit Up
    Datchi
        HAISOKODU
        YOY
        KIBA
        ZEN
        etc.
    Geri
        MAI
        YOKO
        MAWASHI
        URA MAWASHI
        USHIRO

Kung Fu
     Stands
         Types of stands …


So, your "results" table needs to look like:

ResultID, StudentID, Date, ArtID (Karate or Kung Fu), DisciplineID (Strength, Datchi, Geri), TestID, Result

Arts table: ArtID, ArtName (Karate or Kung Fu)

Disciplines table: ArtID, DisciplineID, DisciplineName

Tests:  ArtID, DisciplineID, TestID, TestName

The Arts, Disciplines, and Tests tables define the hierarchy I've laid out above.

Your Results fields for ArtID, DisciplineID, and TestID pull values from the three hierarchical tables - filtering Discipline for the Art selected and Test for the Discipline and Art selected.

I've just made up names for Art, Discipline, and Test - you can assign names to the levels of the hierarchy that make sense to you.

John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Jan 30, 2017, at 12:31 PM, jamshi285 jamshi285 jamshi285@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Hi John

When we checking Karate Grading test i have to check each students All there flexibility,
Streangth,speed,Datchi,Geri.etc.
each one have sub and there results
example:
(Strength----->"Push Up";"Squat";"Sit Up";"Back Situp")
Result--(Push up result,Squat result,Sit up Result,Back Situp Result)
(Datchi---->"HAISOKODU,YOY,KIBA,ZEN,ZEN KUTZU,KOKUTZU,NIKO AISHI)
datchi result
(Geri----->MAI" result;"YOKO" result;"MAWASHI" result;"URA MAWASHI"result;"USHIRO"result)
It also same model for kung fu diffrent types of test
Example 
standz then will check all types of standz and each one have seperate results





On Sunday, January 29, 2017 5:01 PM, "John Viescas JohnV@msn.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com> wrote:


You originally told me you had these tests:

Shoshin #1
Kihon #1
Nage #3
Kumite #3
Jissen #1
Push up
Sit up
Crunches
Squats 

And

3. Traditional Forms
4. DefensE
5. Basic Skills
6. Discipline
7. Flexibility 
8. Strength 
9. Speed
10. Punches
11. Kicks

You said one is for Karate and the other is for Kung Fu.

Please explain how Geri and Datchi divisions relate to all of this.  Are those divisions for Karate or Kung Fu?

Maybe you need:  Course (Karate or Kung Fu), Division, Test.

You need to explain to me all the data points you want to capture and how they are related.  What is the hierarchy?

John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Jan 29, 2017, at 10:00 AM, jamshi285@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Hi John
as per your suggestion I created a tables but I am facing some problems

Example  If I am going to make a karate student Grading Test

From Course Tests Table : CourseID, TestID, TestName
(Geri.........> MAI GERI,YOKO GERI,MAWASHI GERI,URA MAWASHI,USHIRO)
these all are sub in Geri division It all has deferent results. 

then another test name ((Datchi---->"HAISOKODU,YOY,KIBA,ZEN,ZEN KUTZU,KOKUTZU,NIKO AISHI)
like this all field have diffrennt sub names and result


Thanks





---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :

Why did you not follow my instructions and include the previous discussion?

It is a bad design to have two "course" tables.  It is also not good to have all the different tests listed as columns.  Each test should be in its own row - one row per test.  I assume you put some sort of grade or number value in for each test.  I would suggest tables like this:

Courses: CourseID, CourseName (Karate or Kung Fu)

CourseTests: CourseID, TestID, TestName

Then have a table that records for each student how he or she performed on a given test on a certain date.

StudentTests: StudentID, CourseID, TestID, TestDate, Rating


John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals 
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
(Paris, France)




On Jan 28, 2017, at 4:12 PM, jamshi285@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



hi john
table for two different tables for "courses is course 1 is Karate and course 2 is Kung Fu,,
it has different types of Grading test.  
TestID point to Course 1&2

 














__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (19)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar