Given the following design - A university has colleges, colleges have departments, departments have students. There are department level elections being held where students nominate themselves to stand for elections and other students vote for them. Design the database and tables to represent this relationship and write a query to get the list of students in each department with maximum number of votes. What would be your choice of database, what would be your table design, what would be your endpoints?
AnswerBot
1y
Design a database for a university with colleges, departments, and students. Write a query to get students with maximum votes.
Use a relational database like MySQL or PostgreSQL
Create tables for colleg...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Software Engineer
Top HR questions asked in Socure India Software Engineer
>
Socure India Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app