Tutorial- 04(Sd 2052)

Embed Size (px)

Citation preview

  • 8/14/2019 Tutorial- 04(Sd 2052)

    1/2

  • 8/14/2019 Tutorial- 04(Sd 2052)

    2/2

    6. Examine the attributes of the entities - any references that may give 1-to-1 and 1-to-many relationships? You may need to confirm this with theother statements about the system.

    7. Examine the different entities - any combinations that may give many-to-many relationships? You may need to confirm this with the otherstatements about the system.

    8. Start the MYSQL Query Wizard and write the script to perform thefollowing tasks:

    Create a new database for this system.

    For each entity, create a table using the commands. But first you must

    determine the data type for each of the attribute - for now uses CHAR,VARCHAR, DATE and INTEGER.

    Prepare some sample data representing the entities. For example, the

    student ID, name, etc. of a particular student. Use the INSERTcommand to enter the data into the corresponding tables.

    9. Save and execute the script. Debug the script if there are any errors.10.Check the contents of the tables using the SELECT command. This is to

    verify that the data is actually stored in the tables.11.Delete the database to clean up the system for other students to use.

    Page 2