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?



Suppose in a situation if two list boxes are there and if you select multiple options based on that..

Answer / 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

More SQL Server Interview Questions

What are sql dirty pages?

0 Answers  


What is the stored procedure?

0 Answers  


What is the difference between grant and with grant while giving permissions to the user?

0 Answers  


How maney row would be print after join if A table have 100 rows and B table have 50 rows...

9 Answers   Hewitt,


Explain the categories of stored procedure?

0 Answers  






What is change data capture (cdc) in sql server 2008?

0 Answers  


List the advantages of using stored procedures?

0 Answers  


How do I edit a stored procedure in sql server?

0 Answers  


Is truncate a dml command?

0 Answers  


What r sql reporting services and analysis services? how can we use it.

2 Answers   Microsoft,


What is transactional replication?

0 Answers  


how can u get last observation in an unknown dataset ?

0 Answers   Genpact,


Categories