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?
Answer Posted / 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 View All Answers
what are the different stages of Report Processing?
What is use of attribute hierarchy ordered ? : sql server analysis services, ssas
Any one plz send me SQL Server Developer/DBA resume for 4 years experience
What is the difference between primary key and unique constraints?
While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?
Will count(column) include columns with null values in its count?
How to write a query with an inner join in ms sql server?
What is a table called, if it has neither cluster nor non-cluster index? What is it used for?
How to get a list of columns in a view using "sys.columns" in ms sql server?
Your table has a large character field there are queries that use this field in their search clause what should you do?
What is a field in a table?
what are acid properties? : Sql server database administration
How to connect to a sql server using odbc_connect()?
How many tables can be joined in SQL Server?
What are magic tables in sql server?