for a better understanding about Database Normalization

Posted by gondar | Filed under , ,

check out this web page, it has a very simple and all explayned example:
http://www.phlonx.com/resources/nf3/

or download the printable version of it ---> The3NormalForms.pdf (436.53 kb)

other example here:
http://www.bus.iastate.edu/mennecke/533/s03/normalization_examples.htm

hope it helps
[[]]

How do i create a table with primary keys and foreign keys ?

Posted by gondar | Filed under , , , , ,

1º - lets create a simple table, with a primary key field:

create table __TableName__
(
Field_Id int
,
Name nvarchar(20
),
constraint __PK_Name__ primary key (Field_Id
),
constraint __FK_Name__ foreign key (Field_Id) references __ReferencedTable__
)

- in this example, the field "Field_Id" is a primary key in a foreign table, and for some reason, we need it to be unique at this table to,
- after add the PK, we should add the FK, in this way, we guarantee that no one can delete the row in the "__ReferencedTable__" WHEN, there is a row at this table with that "Field_Id"

2º - creating a table with 2 or more primary keys, that are from foreign tables:

create table __TableName__
(
Field_Id int,
Field2_Id int,
constraint
__PK_Name__ primary key (Field_Id,Field2_Id),
constraint
__FK_Name1__ foreign key (Field_Id) references __ReferencedTable__
,
constraint
__FK_Name2__ foreign key (Field2_Id) references __ReferencedTable2__

)

hope it helps
[[]]

JayRock

Posted by gondar | Filed under
JayRock, didn´t read about it yet, only know that uses Json to call webservices..

http://jayrock.berlios.de/

DoJo

Posted by gondar | Filed under

Dojo, another "Jquery" library
http://www.dojotoolkit.org/

 

Json

Posted by gondar | Filed under

Json - Javascript Object Notation, it lets you access your server, sending data, partially, wich uses AJAX.
http://www.json.org/

examples:
http://www.ibm.com/developerworks/web/library/wa-ajaxintro11.html

Jquery

Posted by gondar | Filed under

Jquery, very great to turn your web application richer (the famous RIA - Rich Internet Applications) and to make simple changes, smoother, wich is always nice to the end user.

check it out
http://jquery.com/

books, in the page of Jquery, you will find some, i've bought this one


http://www.manning.com/bibeault/