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 many triggers you can have on a table? : Sql server database administration

0 Answers  


How to test odbc dsn connection settings?

0 Answers  


What are cursors stored procedures and triggers?

0 Answers  


Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you

0 Answers  


What is an index in a database?

0 Answers  






Why normalization is used?

0 Answers  


how many type of indexing in database?

0 Answers   IBM,


What is attribute relationships, why we need it? : sql server analysis services, ssas

0 Answers  


What are the differences between user defined functions and stored procedures?

0 Answers  


How to use group functions in the select clause in ms sql server?

0 Answers  


Is oracle faster than sql server?

0 Answers  


What is the difference between nvl and nvl2?

0 Answers  


Categories