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

Which is best Subquery (or) joins in sql server? explain why

2 Answers  


between cast and convert which function would you prefer and why?

0 Answers  


How to update values in a table with update statements in ms sql server?

0 Answers  


What does normalization do to data?

0 Answers  


How to loop through result set objects using odbc_fetch_row()?

0 Answers  






How to attach adventureworkslt physical files to the server?

0 Answers  


How to change the data type of an existing column with "alter table" statements in ms sql server?

0 Answers  


How to create an index on an existing table in ms sql server?

0 Answers  


Does transparent data encryption provide encryption when transmitting data across the network?

0 Answers  


how many non clustered index in sql server 2008,2010,2012

2 Answers   Accenture,


Why use identity in sql server?

0 Answers  


What is a raid and what are different types of raid configurations?

0 Answers  


Categories