Re: Advanced SQL



Quoth Evan Keel:
"David Portas" <REMOVE_BEFORE_REPLYING_dportas@xxxxxxx> wrote in message
news:pZSdnfih_oRy5H3bRVnyigA@xxxxxxxxxxxxxxx
Call me picky but I am not entirely comfortable with that U.Texas site,
even though it's a commendable effort overall.

"The definition of second normal form states that only tables with
composite primary keys can be in 1NF but not in 2NF"

They have it right here. All non-key attributes must be dependent on the
full key. Only applies to tables with keys composed of multiple columns>

No. There may be dependencies where the left side is empty. But it's a
common mistake. If I remember correctly, one of my database textbooks
"proves" that any relvar with just two attributes is automatically in BCNF.
--
Jon
.



Relevant Pages

  • Re: Advanced SQL
    ... composite primary keys can be in 1NF but not in 2NF" ... Only applies to tables with keys composed of multiple ... In that case the declared candidate key is not really a candidate ... Clearly A is the only candidate key, even though the FD --> C holds. ...
    (comp.databases.theory)
  • Re: Advanced SQL
    ... composite primary keys can be in 1NF but not in 2NF" ... Only applies to tables with keys composed of multiple columns> ... In that case the declared candidate key is not really a candidate ... Under the assumption that the declared candidate keys are indeed ...
    (comp.databases.theory)
  • Re: Advanced SQL
    ... even though it's a commendable effort overall. ... composite primary keys can be in 1NF but not in 2NF" ... Only applies to tables with keys composed of multiple ... Under the assumption that the declared candidate keys are indeed ...
    (comp.databases.theory)
  • Re: embedded SQL in COBOL
    ... Pete Dashwood wrote: ... use of keys to access data, but that is about where the similarity ends. ... That might be dependent on the qualities of one's teachers (or one's ... where the data structure IS really important, ...
    (comp.lang.cobol)
  • Re: SQL Server Identity field
    ... a stored procedure will certainly do what you need but it has the disadvantage of making you dependent upon support from IT if the SP doesn't work or needs to change. ... I prefer solutions that are not dependent upon any particular vendor's tools or features--like auto generated keys. ...
    (comp.lang.labview)