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 / 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 |
What is the difference between a unique key and primary key?
What is create statement?
How to turn off warning messages during php execution?
What are the pros and cons of putting a scalar function in a queries select list or in the where clause?
how to copy sysdatabase file from c: Drive to D: Drive in SQL Server.
Call by value and call by reference in procedure and function, with NOCOPY.
What is the default value of CHAR type?
How to filter records of table in SQL SERVER?
0 Answers Petranics Solutions,
wat will be the sql query to extract only last 3 records from table supose table hving thousands for records
Please explain what is “asynchronous” communication in sql server service broker?
how can i store resumes in database?
Your table has a large character field there are queries that use this field in their search clause what should you do?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)