Smart Home Project

This is a project in the database context proposed by the Faculty of Engineering of the University of Porto. A database was created, populated and queried according to the real world.

The project was designed from the UML to the creation of the database itself. The stages of the project were:

Project Report

If you want to see the complete project report click on the following button.

See the Report

UML

Image

Database Creation

Code Creation

Database Population

Code Population

Query 1

What are the device model names that are either Apple branded or Microsoft or Amazon branded?

Image

Query 2

What is the most used language in virtual assistants that have a number of associated devices above the average rounded to 0 decimal places?

Image

Query 3

What are the 2 largest numbers of users, by nationality and by language of the applications they control? In the event of a tie, the tuple whose nationality is the lowest in alphabetical order must be selected.

Image

Query 4

What is the name, model, range and maximum speed of bluetooth devices and wifi devices in the database, sorted in descending order of maximum speed?

Image

Query 5

What is the model name of the infrared commands, whose application to which they are associated has a version greater than 2.3?

Image

Query 6

What is the name of the devices that belong to a group that contains ‘house’ in the name and whose solar orientation of the house to which they belong is East?

Image

Query 7

What is the difference between the maximum and minimum range of bluetooth devices that are connected to virtual assistants named ‘Google Assistant’?

Image

Query 8

What are the conditions that allow triggering an action to turn infrared devices on or off via an Alexa virtual assistant?

Image

Query 9

What is the sum of the different total areas of the houses and the number of houses that were counted, whose non-main users are over 20 years old and control applications in Portuguese?

Image

Query 10

What are the names and models and brands of wifi devices that do not have an application associated with them in the database?

Image


Learn More