473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to make search based on categories

8
Hi there,
I'm new to programming and I started learning C# three months ago so I need your help please.

I have three tables (company,department and employee).
Company table has two rows (CompanyID, CompanyName). Department table has four rows (DeptID, DeptName, CompanyID, EmpID).
Employee table has three rows (EmpID, EmpName, EmpAddress).

I want to search by Departments
For example I want to have one Checkbox named Department if I checked Department it should show me all the available departments in the Company so if i select a particular department it should show me all the employees that they belong to the department that has been selected. I kindly request to shed a light on this topic in details.
your help is greatly appreciated
Nov 6 '12 #1
3 1814
PreethiGowri
126 64KB
you can use table joins
Nov 6 '12 #2
msdhh
8
thank you I will try that
Nov 6 '12 #3
employee, must be a department colummn too. and then make select based in that
Nov 14 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: admyc | last post by:
Hello Is there a way to get a website whose index.html document is just the document that sets-up the framesets and frames to contain info so that google will reference it? Any help much...
3
by: panwala_bhavesh | last post by:
I have a form (View All Assets) with two combo boxes (ComboManufacturer & ComboProductType) and a subform with a dataview that displays the results of my query below: SELECT Assets., Assets....
8
MMcCarthy
by: MMcCarthy | last post by:
Interesting title isn't it. Ok everyone, I have a problem and I'm hoping some of you genius's have a solution. I have a Report which after being printed will have the pages run through an...
0
by: sandy21380 | last post by:
I have the following code in my program allowing users to search for entries matching up to five different criteria at once. I changed the form to now contain a subform and would like to allow the...
0
by: newkhan | last post by:
Hello, I have database project in which the record should be searched and if found then display it in report form and if not found then show blank. For this purpose I have made search button...
5
by: nicehulk | last post by:
I'm doing a library for DVD-movies and I'm trying to figure out how to search different categories like director, title, actor etc. (which are all variables in a DVD-class). Previously I did like...
3
by: syntaktik | last post by:
I want to create a query that will append the information I select, and then place it in another table. That table should be created through a form so I can select how many fields there should be....
1
by: rachbret | last post by:
Hi, I created a database with a table that has customer info - including sales history. I want to create a form so that i can search based on various criteria (first name, last name, purchase date,...
11
by: MadSma | last post by:
hi iam quite new to access and i am now at a stage where i have created my database tables and various forms to input data on them but i need a way of displaying data based on some search criteria ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.