2.How is a class similar to a database table? How is it different? How do these similarities and differences justify the need for class models and for data models? Or do they?
SIMILARITIES
If you are using a relational database, then the class instances, and the persisted representation of them in the DB, can be the same thing, but many times they aren't. This is because most folks use normalization to represent their data in an efficient way (in a relational DB). This means, instead of having a table per class, you can have a class represented by more than one table. In the Customer example, the tables might now be Customer (with Name, date of birth, and other properties), and Order (with order pointing to products in yet another table). The reason for this has to do with cardinality, and the ability for Customers to have more than one order. When your business logic needs this information from the DB, the data access layer's job is to map the data (called ORM) from the DB into your classes.
DIFFERENCES
In object modeling, the relationship between classes and subclasses is taken care of by inheritance, and object modelers know how to use inheritance to good advantage. The relational data model and by extension the SQL databases do not implement inheritance for you. You have to design tables to give you some of the same results.
In ER (Entity-Relationship) modeling, the corresponding concept is called generalization/specialization. This tells you how to model a class/subclass relationship, but it doesn't tell you how to design the tables when you go to build your database.
There are three techniques that are pretty well understood that can be really helpful when dealing with classes and subclasses. Here are their tags: single-table-inheritance class-table-inheritance shared-primary-key. Unfortunately, many tutorials on database design never cover these techniques. They can be enormously useful to people who know object modeling and want to come up to speed on relational modeling.
2.How is a class similar to a database table? How is it different? How do these...
1. Discuss the difference between inheritance and composition. What are the advantages and disadvantages of each? Can you implement one with the other? 2.How is a class similar to a database table? How is it different? How do these similarities and differences justify the need for class models and for data models? Or do they? 3.Discuss the difference between association and composition. What are the advantages and disadvantages of each? 4.When would you apply inheritance? When would you not? Provide...
1. Discuss the difference between inheritance and composition. What are the advantages and disadvantages of each? Can you implement one with the other? 2.How is a class similar to a database table? How is it different? How do these similarities and differences justify the need for class models and for data models? Or do they? 3.Discuss the difference between association and composition. What are the advantages and disadvantages of each? 4.When would you apply inheritance? When would you not? Provide...
If a database table is viewed as a class then what would be an instance of that class?
2. How are BCR and TCR similar? How are they different
Question on database How do I insert multiple values into a table from a text file?
please answer 1. What is "money"? 2. How does MMT differ from the way money is modeled by other schools of thought? 3. Specifically, how do Walras and Arrow & Debreu model money? 4. Does money have anything to do with institutions, or does money exist independently from an economy's institutions? Part B. Contrast the Schumpeter/Romer model and the Marxian model. Both deal with innovation and the intentional introduction of technological changes, but the motivations are somewhat different. Explain the...
If you do not want to create a link to an Access database table 1) use the Embed Access table command. 2) open the table in Access and select data and field names and then copy and paste it into an Excel worksheet. 3) copy each line of data from Access and paste into an Excel worksheet. 4) Excel had no capacity to do this. It must be done in Access.
How do database indexes work? Describe the technical process used by database indexes to improve efficiency of queries and reduce resource consumption on a database server during complex queries and table joins.
SUBJECT: INFORMATION TECHNOLOGY, CLASS: ADVANCE DATABASE MANAGEMENT Hello Everyone, I need help on a project for my ITD 256 Class. These are the questions I am suppose to answer: Project: The project should include designing a database deals with making a proposal for the database implementation. You can either try to fix an existing problem in your business or create a new database for the new projects or new clients. Please define the objective, scope, and time frame of your...
1) There are two (2) employees updating the same database, at the same time. Both are working remotely, and inputting remote data of the same type. They are both uploading vehicle years, makes, models, and other vehicle data. What could happen: a) Nothing...if the database considers each entry different. b) Similar items could be overwritten unless the employees have a system in place to check for that. c) They could do the same work, slowing down the process d) The...