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

Is oracle faster than sql server?

0 Answers  


what happens on checkpoint? : Sql server database administration

0 Answers  


what is for foreign key ??

4 Answers   CarrizalSoft Technologies, Sabic,


What is blocking and how would you troubleshoot it?

2 Answers  


Explain intellisense for query editing

0 Answers  






What is updatable resultset?

0 Answers  


What is ddl command?

0 Answers  


Why is normalisation important?

0 Answers  


How many max. conditions can b written under the WHERE clause? Like select * from [tabnam] WHERE (cond1...or..cond2....or...cond3...and.....so on.....??? (upto how much extent))?????

3 Answers   SAP Labs,


What stored procedure would you use to view lock information?

0 Answers  


1.Describe way(s) to tune the SQL table in order to optimize performance. 2. Explain SQL Injection and how can you prevent them?

1 Answers   Techno Solutions,


Give me a SQL Query to find out the second largest company?

0 Answers   Ernst Young,


Categories