Author Question: How are 1:1, 1:N and N:M relationships handled in Microsoft Access? What will be an ideal ... (Read 107 times)

schs14

  • Hero Member
  • *****
  • Posts: 569
How are 1:1, 1:N and N:M relationships handled in Microsoft Access?
 
  What will be an ideal response?

Question 2

Discuss SQL data types.
 
  What will be an ideal response?



LVPMS

  • Sr. Member
  • ****
  • Posts: 323
Answer to Question 1

By default, when Microsoft Access creates a relationship between two tables, it creates a 1:N relationship. N:M relationships are created in Microsoft Access, as in all other DBMS products, as two 1:N relationships linking the two tables (based on the original two entities) through an intersection table. As far as Microsoft Access is concerned, there are no N:M relationships To create a 1:1 relationship between two tables in Microsoft Access, the Indexed property of the foreign key column in the table containing the foreign key must be set to Yes (No Duplicates) before the relationship is created. With the property set, the relation is automatically created as a 1:1 relationship.

Answer to Question 2

Common examples of standard SQL data types are Char, VarChar, Integer, and Numeric. The Char data type is for fixed-length character data. VarChar is for variable-length character data. Integer is for numeric data that are whole numbers only. Numeric is for numeric data that may include decimals. Char, VarChar, and Numeric must be qualified by a length specification to indicate the amount of storage space to be allocated for each data item. For example, Char(10 ) indicates fixed-length character data that is always stored as 10 characters.



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

Approximately 25% of all reported medication errors result from some kind of name confusion.

Did you know?

For about 100 years, scientists thought that peptic ulcers were caused by stress, spicy food, and alcohol. Later, researchers added stomach acid to the list of causes and began treating ulcers with antacids. Now it is known that peptic ulcers are predominantly caused by Helicobacter pylori, a spiral-shaped bacterium that normally exist in the stomach.

Did you know?

Every flu season is different, and even healthy people can get extremely sick from the flu, as well as spread it to others. The flu season can begin as early as October and last as late as May. Every person over six months of age should get an annual flu vaccine. The vaccine cannot cause you to get influenza, but in some seasons, may not be completely able to prevent you from acquiring influenza due to changes in causative viruses. The viruses in the flu shot are killed—there is no way they can give you the flu. Minor side effects include soreness, redness, or swelling where the shot was given. It is possible to develop a slight fever, and body aches, but these are simply signs that the body is responding to the vaccine and making itself ready to fight off the influenza virus should you come in contact with it.

Did you know?

About 100 new prescription or over-the-counter drugs come into the U.S. market every year.

Did you know?

More than 50% of American adults have oral herpes, which is commonly known as "cold sores" or "fever blisters." The herpes virus can be active on the skin surface without showing any signs or causing any symptoms.

For a complete list of videos, visit our video library