database-programming

How do you determine functional dependencies and a primary key?

拜拜、爱过 提交于 2019-12-24 15:18:46
问题 In my Oracle Database Programming course, the first part of our final lab assessment requires that we: Identify the Primary Key of the table as it is currently shown Find all functional dependencies of the table which we are given to work with. Draw the dependency diagram for the table(s) The table is in 1NF to begin with. From the research I have done, it seems like I need to essentially combine every possible FD, which would not only consume a very large amount of time, but seems bizarre

Why is programming interface to database called driver?

不问归期 提交于 2019-12-11 06:46:16
问题 When writing an application which updates or queries a database, we use something called a database driver (e.g. a JDBC driver). I wonder why it is called a driver instead of a library? Is libpq a driver too? 回答1: To quote the Wikipedia article you linked to: In computing, a device driver is a computer program that operates or controls a particular type of device that is attached to a computer. The analogy here is that a database is an external device that the client computer "controls", by