c# - database query questions or other solutions for comparing data between 2 tables -
I am creating a Windows application form using Visual Studio 2010. For now, I am in this situation:
I allow users to add items to the system, each item has their own separate brand, cost & amp; Suppliers and sales prices for different customers.
For example, Item 1, Name: ABC, Brand: TIM and Item 2, Name: ABC, Brand: LD.
When users want to enter information about cost and suppliers in Item1, when they click on the "Shockest" button, another window form will pop out to fill the users. And for this, I'm planning to use DataGridView. I am planning to use item and brand for the item
So this is my question, how do I set a query or other solution to ask how the name and brand of item which Users enter, they will show the price and price of specific items? What is the question I have to ask?
I have created 3 database tables, which include iteminfo (name, brand, etc.), costlist (name, brand, supplier name, cost) and sales price (name, brand, customer name, sale price) .
"text">
If you are using a database You should consider using the primetime key. In this way you can store information about a certain item in any other item. In all three tables you use name and brand. I would like to model my tables like this:
Items Customers Field Supplier ID in a client table is an uniqueness Number. So when you want to refer to the supplier, you fill in the supplier's ID easily. For example item id in item table is the unique identifier for an item. The Suppliers ID field refers to the supplier ID field in the Suppliers table. To make sure that your data continues to be continued, I would advise you to use foreign key constraints. This ensures that you can not fill any invalid ID Here is a short film that explains something
Comments
Post a Comment