Subject: How to create a simple database in Notes
Where SQL db’s are relational databases, Domino db’s are document centric databases. That is forms are used to create and display data in various ways.
Think of it as old school paper systems. If you have to order some supplies you would grab a pre-printed purchase order form and fill it out. Once you filled it out it then becomes a document in other words all the required fields are filled in and you would then pass it onto the next person who would then approve it or order the items.
You might need to get informastion from the Rolodex as to the name and address information of the vender you are buying it from. Consider the rolodex card as another document.
This is how Notes would handle it. A PO form is created in designer. The PO form has the same fields on it all the time like Vender name, Address, City, St, Zip, telephone, Item Number, Description, Qty, Amount, Total Amount etc. etc.
A vender form also is designed. Vender documetns are created for each vender. Same information on each document created ie: Vender name, Address, City, St, Zip, telephone.
Now when one creates a Purchase Order Document, then Notes can automatically pull in the data from the vender document and populate the PO document with the info. Then they would fill out the item information as required. It can be set up to do all the calculations also.
So now you have a collection of electronic documents stored in the database, sort of like a collection of hard copy documents in a file cabinets. Notes displays the electronic information in views, displaying only some of the fields or all of the fields depending upon what the user needs to see. So what you are doing is displaying information from the documents not from tables.
This might help explain why it is not the same as SQL db’s.
Also, regarding designing a database, If you understand Visual Basic, then you have a good start at understanding the logic with LotudScript which is the programming language used. Also, There is formula language which use what we @Functions. This is kinda similar to programming a spreadsheet using functions but the syntax might be different.
Mike