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

How to test a dml trigger in ms sql server?

0 Answers  


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

0 Answers  


What are date and time data types in ms sql server?

0 Answers  


What protocol does sql server use?

0 Answers  


What are user-defined functions (udfs) in sql server?

0 Answers  






What is difference between rownum and row_number?

0 Answers  


what is the different types of backups available in sql server? : Sql server database administration

0 Answers  


what is sql injection?

2 Answers  


How much is a sql server license?

0 Answers  


What is a table called, if it does not have neither Cluster nor Non-cluster Index?

2 Answers  


How do you size a resultset?

0 Answers  


What are the filtered indexes?

0 Answers  


Categories