Suppose in a situation if two list boxes are there and if
you select multiple options based on that the options
related to those selected items should display in second
list box.

Again if we select multiple items in second listbox then the
related to those selected items should display .

In this scenario how will you design database,tables?

Answer Posted / pawan k. dubey

e.g. create two table
1-department(dept_id int PK,dept_name)
2-employee(emp_id int Primary key,Name varchar(40),dept_id
FK)

now create two listbox employee and department.

step1-when multiple departments are selected...dispaly
employee related to selected department in employee listbox

step2-when multiple employees are selected...dispaly
respective department in department listbox

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain cross join or cartesian product in sql?

536


What is sub query and its properties?

533


Define views.

583


whats new about truncate in sql server 2008?

2015


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

626






How to copy the tables, schema and views from one sql server to another?

550


Difference between connected and disconnected database in .net with sql server?

566


Can sql servers linked to other servers like oracle?

536


Can I work with several databases simultaneously? : sql server management studio

552


Write query to return all rows sql?

604


Tell me about builtinadministrator?

553


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

1678


what are candidate key, alternate key and composite key? : Sql server database administration

487


What is trigger and different types of Triggers?

563


How do you manipulate data?

481