Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8218537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:49:45+00:00 2026-06-07T12:49:45+00:00

I am creating Windows Application Form using Visual Studio 2010. For now, I am

  • 0

I am creating Windows Application Form using Visual Studio 2010.
For now, I am in this situation:

I allow users to add items into the system, each item they may have different brand, cost & suppliers and selling price for different customers.

For example,
Item1, Name: ABC, Brand: TIM and
Item2, Name: ABC, Brand: LD.

when the users want to insert the cost and suppliers information into Item1, when they click on the “ShowCost” button, another Windows Form will pop out for the users to fill in. And I’m planning to use DataGridView for that. I’m planning to use the Item Name and Brand for identifying the cost and selling price for the item

So here’s my question,
How do I set the query or other solutions in order to check that when the name and brand of the item that the users enter, will show up the cost and the price of the specific items? what is the query that i need to write?

I have created 3 database tables which are ItemInfo(Name, Brand, etc), CostList(Name, Brand, SuppliersName, Cost) and SellingPrice(Name, Brand, CustomersName, SellingPrice).
How do I compare the data from ItemInfo tables to show the data in CostList?

Thanks for the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:49:47+00:00Added an answer on June 7, 2026 at 12:49 pm

    If you are using a database you should consider using Primairy keys. That way you can store information about a certain item in another table. In all three tables you use Name and Brand. I would have modeled my tables like this:

    Items

    • ItemID (make this field an Auto incrementing integer field)
    • ItemName
    • Brand
    • SupplierID
    • Price

    Clients

    • ClientID
    • ClientName
    • DiscountPercentage
    • PhoneNr

    Suppliers

    • SupplierID
    • SupplierName

    In the clients table the field SupplierID is a unique number. So when you want to refer to a supplier you simple fill in the SupplierID. For example in the items table the ItemID is the unique identifier for an item. The Supplier ID field is refers to the SupplierID field in the Suppliers table. In order to make sure your datamodel remains consistent I would recommend you to use Foreign key constraints. This makes sure you can not fill in any invalid ID’s

    Here’s a short movie explaining some SQL basics

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im creating a c# application using visual studio 2010 on a windows 7 machine.
I am working on creating a Windows Forms Application in C++ using Visual Studio
I am working on a Windows Form-Based application in Visual Studio 2008 using C#
I'm using WPF for creating my application, I am calling a windows form using
I am creating a windows application using VB.Net and this application will take a
I am creating a Windows Mobile Application in C# and Visual Studio 2008. The
While creating a Windows Form Application, I selected target to .Net Framework 4.0. Now
I'm creating in a Windows forms application using VS2008. I need to add ActiveX
I'm creating a Windows Form application using C#. The form contains a ListView. It's
Creating My Windows Form Application and using ADO.Net as Data Access layer and SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.