Consider a relation R with the schema R = (A, B, C, D, E, F, G, H) and a set of functional dependencies F as:
Find the super key for this relation.
Subject: All Subjects
Topic: All Topics
Consider a relation R with the schema R = (A, B, C, D, E, F, G, H) and a set of functional dependencies F as:
Find the super key for this relation.
Normalize the following table into 3NF.
EmpName | Dept | Age | Address |
---|---|---|---|
John | ECE, EEE | 28 | Butwal |
Peter | ME | 31 | Pokhara |
James | BBM, BBS | 30 | Dang |
Consider the following schema of the relational database.
Write Relational Algebra expressions for the following:
Consider the relational database:
Write the SQL statement for the following:
Consider the relational database:
Write the Relational Algebra for the following:
Design a database using ER diagram for a commercial bank. This commercial bank maintains information about entities: Depositor, Account, Loan, and Branch. State any assumptions made in the design of the ER diagram.
Consider the following relational database of a college.
Write SQL for the following requests.
Consider a relation R with the schema R (A, B, C, D, E, F) with a set of functional dependencies F as follows:
Find the super key for this relation and convert it to 2NF.
Consider the following relational schema.
Now write down the SQL for the following:
Following table is provided to you:
Emp_Id | Name | Address | Salary |
---|---|---|---|
1 | Anil Parajuli | Chabahil | 50000 |
2 | Gokul Pandey | Pokhara | 60000 |
3 | Krishna Bdr Oli | Chabahil | 70000 |
4 | Sumedha Prajapati | Bhaktapur | 80000 |
5 | Pravin Shrestha | Lazimpat | 90000 |
6 | Alka Maharjan | Lalitpur | 100000 |
Consider the following relations.
Write down the SQL statements for the following:
Generalize the given relational table up to 2NF.
S_ID | S_name | Contact_no | Address | C_ID | C_name |
---|---|---|---|---|---|
S01 | Ram | 9841, 3762 | Birgunj | C01 | Database |
S01 | Ram | 9841, 3762 | Birgunj | C02 | E-Commerce |
S02 | Sita | 5532 | Kohalpur | C03 | MIS |
S03 | Krishna | 5361, 9857 | Bhojpur | C01 | Database |
S04 | Radha | 2734 | Damak | C03 | E-Commerce |
S05 | Rawan | 5736 | Dolpa | C03 | MIS |
S03 | Krishna | 5361, 9857 | Bhojpur | C03 | MIS |