Question Set 1 On Rdbms
Question Set 1 On Rdbms
2. Which of the following is a group of one or more attributes that uniquely identifies a
row?
a. Key
b. Determi
nant
c. Tuple
d. Relation
3. When the values in one or more attributes being used as a foreign key must exist in
another set of one or more attributes in another table, we have created a(n):
a. transitive dependency.
b. insertion anomaly.
c. referential integrity constraint.
d. normal form.
a. 1 NF
b. 2 NF
c. 3 NF
d. BCNF
a. Key Constraint
b. Check Constraint
9.
10.
15. Write a query to concatenate the data of the Name and GroupName column of the
department table into a single column
Example
16. Write a query to retrieve records from the employee table where the VacationHour
column for Employee table has values less than 5 in HumanResources database
17.Write a query to retrieve records from the Department Table when the GroupName is
either Manufacturing or Quality assurance
18. Write a query to retrieve all the rows except the one where GroupName is Quality
Assurance
20. Write a query to retrieve EmployeeID VacationHours column from Employees table
in HumanResource database where VacationHour is in between
And 50 and GroupName is Quality Assurance
21. Write a query to retrieve the data of those employees who are either Recruiters ,
Stockers or Buyers in the title column of Employees table in humanresources database.
22. Write a query to retrieve records from the department table where the values in the
Name column begin with Pro
23. Write a query to retrieve records from the department table where the values in the
Name column have the letter rt.
23. Write a query to retrieve records from the department table where the values in the
Name column begins with either D or K
24. Write a query to retrieve records from the department table where the values in the
Name column that ends with ear and begin with any letter from A through D
25. Write a query to retrieve records from the department table where the values in the
Name column begins with D and not have c as the second character
27.
What is transitive dependency ?find one and make the table 3NF normalised
28. make the table BCNF Normalised