Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. vb.net with mysql

vb.net with mysql

Scheduled Pinned Locked Moved Database
csharpdatabasemysqlhelp
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KipkoechE
    wrote on last edited by
    #1

    I have three tables in the school database: students,exams,subjects. my Problem is how i can take the take the subjects records and admission no from students and use them to create a table call marks at the click of a button. Note: the no of records are unpredictable. Student Table contains fields: admno,name,form exam contains fields: ExamName subjects: SubjectName,SubjectID The Marks table final result should be admno,name,form,ExamName,subject1,subject2,...subjectn(Based on the no of subjects in the subject table) . Am using vb.net with mysql. Kindly assist. it has given me headache for weeks

    P Z L 3 Replies Last reply
    0
    • K KipkoechE

      I have three tables in the school database: students,exams,subjects. my Problem is how i can take the take the subjects records and admission no from students and use them to create a table call marks at the click of a button. Note: the no of records are unpredictable. Student Table contains fields: admno,name,form exam contains fields: ExamName subjects: SubjectName,SubjectID The Marks table final result should be admno,name,form,ExamName,subject1,subject2,...subjectn(Based on the no of subjects in the subject table) . Am using vb.net with mysql. Kindly assist. it has given me headache for weeks

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      KipkoechE wrote:

      create a table call marks at the click of a button

      I hope you mean inserting records into a table, not creating a table.

      K 1 Reply Last reply
      0
      • P PIEBALDconsult

        KipkoechE wrote:

        create a table call marks at the click of a button

        I hope you mean inserting records into a table, not creating a table.

        K Offline
        K Offline
        KipkoechE
        wrote on last edited by
        #3

        i mean creating a table based on the records in another table

        P 1 Reply Last reply
        0
        • K KipkoechE

          i mean creating a table based on the records in another table

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Not a good idea.

          1 Reply Last reply
          0
          • K KipkoechE

            I have three tables in the school database: students,exams,subjects. my Problem is how i can take the take the subjects records and admission no from students and use them to create a table call marks at the click of a button. Note: the no of records are unpredictable. Student Table contains fields: admno,name,form exam contains fields: ExamName subjects: SubjectName,SubjectID The Marks table final result should be admno,name,form,ExamName,subject1,subject2,...subjectn(Based on the no of subjects in the subject table) . Am using vb.net with mysql. Kindly assist. it has given me headache for weeks

            Z Offline
            Z Offline
            ZurdoDev
            wrote on last edited by
            #5

            Creating a dynamic table just means you'll have to write code to generate the CREATE TABLE statement and you'll have to do your checking to see how many columns should be included in it. However, why would you want to create a new table? The design sounds like a bad idea.

            There are only 10 types of people in the world, those who understand binary and those who don't.

            J 1 Reply Last reply
            0
            • Z ZurdoDev

              Creating a dynamic table just means you'll have to write code to generate the CREATE TABLE statement and you'll have to do your checking to see how many columns should be included in it. However, why would you want to create a new table? The design sounds like a bad idea.

              There are only 10 types of people in the world, those who understand binary and those who don't.

              J Offline
              J Offline
              Jorgen Andersson
              wrote on last edited by
              #6

              The teacher just wants to check off the "Create Table AS SELECT" from his list of thing they should know about.

              Wrong is evil and must be defeated. - Jeff Ello

              1 Reply Last reply
              0
              • K KipkoechE

                I have three tables in the school database: students,exams,subjects. my Problem is how i can take the take the subjects records and admission no from students and use them to create a table call marks at the click of a button. Note: the no of records are unpredictable. Student Table contains fields: admno,name,form exam contains fields: ExamName subjects: SubjectName,SubjectID The Marks table final result should be admno,name,form,ExamName,subject1,subject2,...subjectn(Based on the no of subjects in the subject table) . Am using vb.net with mysql. Kindly assist. it has given me headache for weeks

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                If you can write a query to select the results, then it should be easy to get them in a new table. Right now, there are a few fields lacking - how would you know which student took which exam?

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups