Entity-Relationship Modeling and Database Development

126 views 5 pages ~ 1350 words Print

The goal, purpose, and scope of the database, functionality, user expectations, and data dimension are just a few of the numerous factors that must be taken into account for a physical database to be designed successfully. A flawless, scalable, and error-free database may be created with the aid of careful requirement analysis. This database can then be utilized to implement numerous business logics and create extremely effective applications.

It seems straightforward to choose which information type to use for a particular database section. Well, the situation is not this. Once in a while, you need to pick if to help alter the length or variable length section esteem. Different times you may need a whole number segment esteem for the size of the legitimate number of a section. One can realize that it is required to build up a character of a different kind because it will help those exceptional accents personas over a few words, similar to the “e” in the name Jos?, or a much more interesting character setup that bolsters symbols like Chinese.

There is an assortment of plan choices you should make under the process of picking the right information sort for a databases segment. Inside the following few areas, I am taking a gander at various data sorts and giving your thoughts to help you make significant physical information source plan decisions following the selection of the correct information needed for a particular section.

Character data of fixed period and variable sizes

The Servers associated with SQL assists both settled periodic value information and besides altering the persona length information sorts (Vogt, 2011). Is it, therefore, ideal as your source of information segment? Just the same way the lion’s share of specialized discussions “this will depend.”

Roast and NCHAR information sorts are set period information sort. They are reasonable for supporting sections that store information wherein certainty the segment values in every line have a similar length. Most decide that you store may fall in this class. Since CHAR and NCHAR segments are set length segments, they will consume a room regardless of whether or not the section has esteem. Such a situation will come about into utilization of the NCHAR and CHAR information sorts for sections which may not have very many NULLS.

On the off chance that you anticipate that your segment will genuinely have a lot of NULLS then you ought to consider by utilizing a VARCHAR or NVARCHAR information sort to spare bunches of on circle space. On the off chance that the information you expect to store in a segment is almost of similar size (Howe, 2010). However, generally, close to NHCAR or the CHAR mar result to a decent and considerable information sort.

The information sorts such as VARCHAR and NVARCHAR are some of the changing sorts in their span. The storage of both the data separation and estimation section may occur within the segment of either VARCHAR or NVACHAR as a stockpile. The SQL Servers are therefore empowered to utilize the base measure of space in the drive which helps in maintaining esteem of the segment. Space size is employed in a manner by which an enormous value is put away with other two additional bytes of space.

According to the NVARCHAR and VARCHAR the sections are outstanding for bolster segments that can possess a definite difference concerning the level of segments esteem. Also, VARCHAR and NVARCHAR segments are suitable to facilitate in dealing with parts which have NULL qualities in large quantities, because there is no any amount of space for storage of NULL esteem.

Non-Unicode and Unicode.

Since the technology incorporates various dialects and personality sets we covet an approach to deal with putting away those distinctive character sorts in SQL Server. SQL Server encourages putting away huge numbers of these diverse worldwide persona sets through assisting Unicode character sorts NTEXT, NCHAR, and NVARCHAR, (have a look at NTEXT which has been deployed and is not recommendable to subject it to improvement).

Storage of conceivable Unicode remains in a position with individuals Unicode of information sort possesses twofold the drive space of all non-Unicode information sorts. Most non-Unicode information is put away by utilizing a single byte just (Székely, 2012). Along these lines putting away your PC information by using a Unicode information sort may take up to double the territory. Keep in mind there exist a couple of non-Unicode dialects which consume 2 bytes for keeping the cases safe in a distinct room large enough for putting away non-Unicode versus Unicode information.

In the current worldwide economy, you should create applications that are strong regardless of where you remain in the whole world and what words you talk. PCs are getting quicker and drive space gets less expensive. It, therefore, implies that keeping a Unicode information versus non-Unicode information is presently more obscured. Kind of helps me to remember the Y2K issues as for putting aside spaces through avoiding to store data for a year. A significant portion of people recollect things that occurred at whatever point needed to begin putting away the first two among the four characters of digits in a year.

The cost required to change the code of soliciting with an intention to assist Unicode in future if a need occurs might be expensive, implying that a person should settle on the correct choice while selecting an information sort during the process of outlining your databases. If you think there is the smallest open door you should put Unicode information on a segment table, to enable it to utilize information sort of a Unicode. Sections in which you can be 100% confident that it won’t require you to save Unicode information enabling to use a non-Unicode information sort will still be alright. In case you are dubious, simply, it is probably ideal to take advantage of a Unicode information sort with an intention to decrease chances for change of problems in future (Chen & Parng, 2010).

Tables of a Database

After having such considerations outlined above, a design for the database was proposed to be applied in a bookstore. The schematic description of a database is as set out below.

Bookstore

The table discusses some of the names for the bookstore, their location, and address. A unique id is contained in each bookstore.

Address

The table of address is meant to hold the address for each bookstore, publisher, and warehouse. For every address, there will be unique details and address ID.

Among other tables are the table of authors, format, publisher, book, and customer. They have features that can be utilized in the calculation of that profit incurred from the bookstore. Such method can as well be applied in the bookstore design process. In this approach, it will be possible to determine the amount of profit realized through tracing the orders of a company. It is the most appropriate alternative design as indicated below.

Entities and Relationships

The entities of the database are Author, Bookstore, Address, Book_Author, Book_Category, Book, Publisher, Publisher_Address Address_Type, Warehouse, Book_at_Warehouse, Book_Format, Published_Format, Customer. The primary key for the tables for these entities will be as follows:

Table/ Entity

Primary key

Author

author_ID

Bookstore

bookstore_ID

Address

address_id

Book_Author

list_order_seq

Book_Category

book_category_code

Book

book_ID

Publisher

publisher_code

Publisher_Address

date_address_form

Address_Type

Address_type_code

Warehouse

Warehouse_id

Book_at_Warehouse

number_in_stock

Book_Format

ISBN_code

Published_Format

format_code

Customer

Customer_id

Entity Relationship Diagram

Book

Bookstore

Are stored in

Book

Book Author

Is written by

Book

Book category

Categorized in

Book

Publisher

Published by

Publisher

Publisher Address

Lives in

References

Chen, G., & Parng, T. (2010). A database management system for a VLSI design system. 25th ACM/IEEE, Design Automation Conference.Proceedings 2009, 1(22).

Howe, D. (2010). Database management system architecture. Data Analysis for Database Design, 2(8), 24-32.

Székely, D. L. (2012). Unicode für Biologisches Denken. UNICODE — ein Verfahren zur Optimierung der begrifflichen Denkleistung, 3(69), 336-348.

Vogt, C. (2011). Quality-of-service management for multimedia streams with fixed arrival periods and variable frame sizes. Multimedia Systems, 3(2), 66-75.

May 17, 2023
Subcategory:

Experience Architecture

Number of pages

5

Number of words

1350

Downloads:

27

Writer #

Rate:

4.7

Expertise Design
Verified writer

Richard is the best writer for Data Science tasks, even if you have something really complex. I needed to do tasks on security matters and already had a draft. Sharing my ideas with Richard ended up in a perfect paper!

Hire Writer

Use this essay example as a template for assignments, a source of information, and to borrow arguments and ideas for your paper. Remember, it is publicly available to other students and search engines, so direct copying may result in plagiarism.

Eliminate the stress of research and writing!

Hire one of our experts to create a completely original paper even in 3 hours!

Hire a Pro