Professional Documents
Culture Documents
DBMS Expt 6 PBL Grpoup 02
DBMS Expt 6 PBL Grpoup 02
DBMS Expt 6 PBL Grpoup 02
Semester TE Electronics
Subject DBMS Laboratory
Laboratory Professor Prof. Uma Jaishankar
Group NO 02
Student Name Aditya Jalkote and Atharva Aurangabadkar
Roll Number 21103B0029 and 21103B0022
Experiment 6
No:
2) To use these commands for a given table and run the queries
Page|1
Department of Electronics Engineering
Output:
+ + + +
+ +
| project_id | project_name | popularity_score | location
| cost |
+ + + +
+ +
| 1 | Project1 - Affordable Housing | 20 | Mumbai
Central | 1000000.00 |
Page|2
Department of Electronics Engineering
SELECT *
FROM applicants
WHERE is_eligible = TRUE
AND category = 'Slum Development';
+ + + + +
+ +
| applicant_id | name | category | income | is_eligible |
project_id |
+ + + + +
+ +
| 3 | Applicant3 | Slum Development | 20000.00 | 1 |
1 |
+ + + + +
+ +
SELECT *
FROM applicants
WHERE category = 'Backward Category'
ORDER BY income ASC
LIMIT 1;
+ + + +
+ +
Page|3
Department of Electronics Engineering
+ + + +
| project_id | project_name | popularity_score |
+ + + +
| 3 | Project3 - Low-Income Apartments | 25 |
+ + + +
SELECT *
FROM applicants
WHERE is_eligible = FALSE;
+ + + + + +
+
| applicant_id | name | category | income | is_eligible |
project_id |
+ + + + + +
+
| 4 | Applicant4 | General | 70000.00 | 0 |
NULL |
+ + + + + +
+ +
| amount_generated |
+ +
| 50000 |
+ +
Page|4
Department of Electronics Engineering
Conclusion The database schema is designed to manage information related to housing projects
and applicants, facilitating the allocation of flats in government schemes.Queries are
provided to extract valuable insights, such as identifying eligible applicants for specific
programs, evaluating the economic status of applicants, determining popular projects,
and calculating revenue generated through registration.
Page|5