Dbms Lab El Report
Dbms Lab El Report
BENGALURU – 5600591
(Autonomous Institution Affiliated to VTU, Belagavi)
In Partial Fulfilment
of the Requirements for the Experiential Learning component for
PROF PAVITHRA H
Department of CSE, RVCE, Bengaluru - 560059
RV COLLEGE OF ENGINEERING®
BENGALURU – 560059
(Autonomous Institution Affiliated to VTU, Belagavi)
CERTIFICATE
This is to certify that the project titled “Automated SQL Query Generation Using NLP has been
executed by ROHAN GANESH(1RV22CD048), SAKSHAM SINGH(1RV22CD050) and
ROHAN KURUP(1RV22CD049) students of R.V. College of Engineering, Bengaluru. It is
further certified that all recommendations and corrections proposed during the Internal
Assessment process have been incorporated into the final report. The report has been reviewed
and approved, meeting the requisite academic standards for experiential learning.
Marks Awarded:
ABSTRACT
Relationships
• Appointments links Patients and Doctors (Many-to-Many)
• Medications links Patients and Doctors (Many-to-Many)
• Hospital Bills belongs to Patients (One-to-Many)
• Doctors have a department_id, but no foreign key is explicitly set in
the schema.
LITERATURE SURVEY
TITLE AUTHORS SUMMARY
The system has been tested with multiple database schemas and query
types, demonstrating high accuracy in SQL query generation. Some key
findings include:
• Improved Query Accuracy – Using schema context from the
knowledge graph reduces errors in table joins and column references.
• Faster Query Execution – Users can retrieve information instantly
without writing manual SQL statements.
• User-Friendly Experience – The web interface allows intuitive
interaction, making database querying accessible to non-technical
users.
Workflow
1. User uploads a database file (SQLite format).
2. The system extracts schema information and builds a knowledge
graph.
3. User inputs a natural language query.
4. The NLP model processes the input and generates an SQL query.
5. The system executes the SQL query and retrieves results.
6. Results are displayed in the user interface.
FUTURE SCOPE