Thursday, August 27, 2020

Database Assignment Example | Topics and Well Written Essays - 1000 words

Database - Assignment Example A class can either have no appointments as least or 10 appointments as most extreme (cardinality set apart as (0, 10) close to CLASS/VISIT element). A booking must consistently have a class identified with it and one class is the greatest (cardinality set apart as (1, 1) close to BOOKING substance). BOOKING and OWNER An OWNER can have a few BOOKINGs and a one BOOKING have a solitary comparing OWNER. Henceforth, one to numerous relationship exits between these substances (Marked with 1 and M close to the separate element). An OWNER may consistently have a booking and a booking ought to consistently have proprietor. It is viewed as a BOOKING and OWNER are compulsory for one another. An OWNER at any rate makes them book in least or numerous appointments (cardinality set apart as (1, M) close to OWNER substance). A booking must consistently have a proprietor identified with it and one proprietor is the greatest (cardinality set apart as (1, 1) close to BOOKING element). Proprietor and DO G An OWNER can have a few DOGs and a DOG have a solitary OWNER. Consequently a one to numerous relationship exits between these elements (Marked with 1 and M close to the individual substance). A proprietor may consistently have at any rate a pooch and a canine ought to consistently have proprietor. Henceforth it is viewed as a BOOKING and OWNER are obligatory for one another. A proprietor in any event has one canine or numerous mutts (cardinality set apart as (1, M) close to OWNER element). ... A composite substance ‘attend’ was presented as the connecting element (set apart as 1:M on either side of the composite element). A class may consistently have a numerous pooches joining in or no canines going to a class (set apart with a hover on the composite substance). A canine ought to consistently go to a class. Subsequently it is viewed as a DOG is discretionary for a CLASS/VIST. A class can either have no canines joining in or 10 mutts as most extreme (cardinality set apart as (0, 10) close to CLASS/VISIT element). A pooch should consistently have at any rate a class identified with it and one class is the most extreme (cardinality set apart as (1, 1) close BOKING element). BOOKING and INVOICE An INVOICE can be connected uniquely for a one BOOKING and a one BOOKING have a solitary comparing INVOICE. Consequently a coordinated relationship exits between these substances (set apart with 1 and 1 close to the individual element). A receipt consistently has a booking and a booking ought to consistently have a receipt. It is viewed as a BOOKING and INVOICE are required for one another. An INVOICE consistently makes them book or numerous appointments as least and greatest (cardinality set apart as (1, 1) close to INVOICE substance). A booking must consistently have a receipt identified with it and one receipt is the most extreme (cardinality set apart as (1, 1) close to BOOKING substance). The essential and remote key pertinent to every substance is introduced in their element definition table as PK and FK separately. Substance DEFINITION Entity Name: CLASS/VISIT  Entity Description: The subtleties of the Classes and Visits are recorded here Attribute Name Data Type Field Length Required Y/N Validation Rule Primary Key/Foreign Key class_id text 50 Y Not Null PK class_name text 100 Y  class_day text 15 Y  class_max limit number 2 Y  class_start_date date 20 Y  Entity DEFINITION Entity Name: BOOKING  Entity Description:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.