Discover sample inventory database design, include the articles, news, trends, analysis and practical advice about sample inventory database design on alibabacloud.com
across the Shard and need to be coordinated at the application level to address these issues.Special want to mention: after the horizontal segmentation, shard is often smaller than the size of the vertical cut, the original single vertical Shard will be subdivided into one or more shard with one main table as the center or indirectly associated with multiple sub-tables, at this time the Shard granularity and domain-driven design "aggregation" The con
Before designing a database1. Test the existing environmentWhen designing a new database, you should not only carefully study the business needs, but also examine the existing system. Most DatabasesProjects are not built from scratch. Normally, there will always be existing systems within the Organization to meet specific needs (there may be no realAutomatically calculated ). Obviously, the existing system is not perfect, otherwise you do not have to
Database Technology-database Naming and Design Specifications database development history has been using a somewhat mysterious system naming database table and field. In the original database management system (DBMS), the results
and customers.A secondary table is not an entity or a relationship; it provides information. They are query tables (looks up tables) that are like calendars or replace calculations in SQL. They are often misunderstood to be treated as entities or relational tables.Let's go over the details. A sales order is the relationship between a customer (entity) and our Inventory (entity). The order details are the weak entities that exist because we have order
increment up but the number is amazing, not easy to parse. on the surface, the above method is sufficient to achieve the function, simplify the database design and implementation of the complexity of this purpose, but there is a disadvantage, we are involved in the list of permissions are not independent of each other, but interdependent, such as the modification of permissions, in fact, including the per
trade Item number) to order projects and DUNS (Data Universal numbering system) for customers. when designing a database, be sure to pay attention to industry standards. CREATE TABLE Sales_orders(Order_nbr INTEGER not NULL PRIMARY KEYCHECK (Order_nbr > 0),Customer_duns CHAR (9) Not NULL,Order_shipping_amt DECIMAL (5,2) not NULLCHECK (Shipping_amt >= 0.00),etc);CREATE TABLE Sales_order_details(Order_nbr INTEGER not NULL,Gtin CHAR (a) is not NULL,PRIMA
design to reduce Program Complexity. I will introduce a case of intentionally increasing data redundancy.
Ii. Design of commodity information tableAssume that you are an electronic brain developer of a department store. One day, the boss asks you to develop an online e-commerce platform for the company. The department store sells thousands of products, however, currently, we only plan to sell dozens of p
DBMS and is widely used as a tool in database design for data modeling. The E-R data model has undergone many modifications and expansions since its inception. Let's look at a simple ER diagram, as shown below:In our ER diagram, what is the meaning of each figure? NIE, the small part to introduce briefly, the ellipse represents the attribute. Rectangular means the entity, diamond means contact, the number
, whether the number of wide tables is small enough. If the two conditions are met, the standardization level of the database is still relatively high.
Generally, you can determine whether a database is designed with a comparative specification from two aspects. First, check whether there are a large number of narrow tables, and second, whether the number of wide tables is small enough. If the two condition
quantity of the corresponding products are displayed in the brand/origin/style table.With this data, is it still difficult to write the interface?
Sometimes it is impossible to steal, maybe it is less than summing up experience, I am really sorry.
I plan to design it like this:
ID product name Product ID model color price inventory quantity
Id Pro_Name Pro_id pro_type pro_color pro_price pro_num
1 c
newer approach to object-oriented analysis and design methodologies introduced in the the 1980s and 90.135. Update anomalies (updated exception): When the user view updates an identity that contains redundant data, it may cause inconsistencies. There are three types of exceptions: Insert, delete, and update.136. User view: The requirements of a database application defined from the perspective of a particu
Generally, you can determine whether a database is designed with a comparative specification from two aspects. First, check whether there are a large number of narrow tables, and second, whether the number of wide tables is small enough. If the two conditions are met, the standardization level of the database is still relatively high. Of course, these are two general indicators. To meet the requirements of
their ID card numbers. However, when an employee reports, his/her ID card may be missing. Therefore, the ID card number field is often not provided in a timely manner. Therefore, the ID card number field can be empty to meet the needs of these special circumstances. However, some processing can be done during database design. If no content is entered, set the default value of this field to 0 or N/. To avoi
item has the same attributes, such as the product ID, product name, product category, related information, supplier, number of items included, inventory, purchase price, sales price, and discount price. You will soon design four tables: Wares_type, Wares_provider, and Wares_info ):
Item type table (Wares_type)Description of name type constraintsType_id int no duplicate category ID, primary keyType_name cha
-server
Architecture (two-layer client-server architecture): consists of the main business and data processing logic, as well as client applications with user interfaces, and server programs that manage and control database access.
133.
Type hierarchy (type hierarchy): one is to mention its sub-classes and their superclasses, and so on.
134. UML (uniied Modeling
Language, Unified Modeling Language): a new method that introduced many Object-Oriented An
As a project analysis, database design is a very important and difficult problem,
Completely in accordance with the paradigm may not meet user needs, not conducive to programming,
It seems to be a concrete analysis of specific problems, database design is a compromise between paradigm and demand.
When I was at school,
requirement.
131. tuple (tuples): a record in a link.
132. two-tier client-server architecture (two-tier client-server architecture ): it is composed of the main business and data processing logic, the client applications that work with user interfaces, and the server programs that manage and control database access.
133. type hierarchy (type hierarchy): one is to mention its sub-classes and their superclasses, and so on.
134. UML (Unified Modeling L
architecture ): it is composed of the main business and data processing logic, the client applications that work with user interfaces, and the server programs that manage and control database access.133. type hierarchy (type hierarchy): one is to mention its sub-classes and their superclasses, and so on.134. UML (Unified Modeling Language): a new method that introduced many Object-Oriented Analysis and Design
8 MySQL Database Design Optimization Methods for computer second-level examination MySQL
The following describes eight Optimization Methods for MySQL Database Design:
1. select the most suitable field attribute
MySQL can support access to large data volumes, but generally, the smaller the table in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.