Skip to content

busolbuse/Internship_project_postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Internship_project_postgresql

I decided to develop a Procedure for a scenario where the city population is updated every night, taking care to ensure that it is in accordance with the definition of Stored Procedure.

Stages

⌚ Queries have been written that create a new city table representing this city and whose information will be modified.

⌚ In the meantime, a modification was made to the table to add a column for the increase/decrease of the population.

⌚ A procedure was written to create the table and then translate it into a procedure structure.

⌚ It was seen that the procedure written by selecting the table worked. After that, every evening, the work was continued to create the structure needed to increase the population of each province.

⌚ Deciding that the increase in the population of the province should be random, a function was written for this, thinking that it is more accurate to create a Function structure in PostgreSQL.

⌚ The written JOB was set to run at 10:00 every night.

Conclusion

After all this, my project, which is based on the system of increasing the population with random but appropriate values in all provinces in the table at 10:00 every night and seeing this in the table, worked successfully. You can also make similar auto-adjusting systems with help from here.

-PostgreSQL

-pgAdmin 4

About

a database project I did during my summer internship.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published