Search found 53 matches: relational

Return to advanced search

Re: Web programming with Mod Harbour

... or procedures in your Mod Harbour code. Data Handling and Business Logic: Mod Harbour can interact with various data storage solutions, including relational databases (e.g., MySQL, PostgreSQL) and NoSQL databases. You'll write the necessary code to handle data retrieval, storage, and business ...
by sumit234
Sat Jul 29, 2023 7:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Web programming with Mod Harbour
Replies: 1
Views: 326

Re: Problem with tdatabase

You need to use relational databases like this:

ITEMS.DBF
ITEMID <---primary key (auto incrementing)
DESCRIPTION
CATAGORYID
BRANDID

CATAGORY.DBF
CATAGORYID <--- primary key (auto incrementing)
CATAGORYNAME

BRAND.DBF
BRANDID <--- primary key (auto incrementing)
BRANDNAME
by James Bott
Sat Dec 18, 2021 8:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with tdatabase
Replies: 14
Views: 1831

Re: 1-to-many loke Foxpro

... 50 * 2,500 = 125,000, Wow! And that is just for one parent! Creating an Excel file containing all that data is extremely inefficient. That is why relational databases were born. If it was my client, the first thing I would be asking is what are you trying to accomplish with this? It seems it would ...
by Marc Vanzegbroeck
Fri Sep 17, 2021 6:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: 1-to-many like Foxpro
Replies: 14
Views: 1203

Re: 1-to-many loke Foxpro

... 50 * 2,500 = 125,000, Wow! And that is just for one parent! Creating an Excel file containing all that data is extremely inefficient. That is why relational databases were born. If it was my client, the first thing I would be asking is what are you trying to accomplish with this? It seems it would ...
by James Bott
Thu Sep 16, 2021 11:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: 1-to-many like Foxpro
Replies: 14
Views: 1203

Re: check existing first and last on customer

... key, unique) CUSTNO RESERVITEMS.DBF FIELDS: (Multiple items per RESERVNO) RESERVNO (primary key, unique) ITEMNNO Did you read the document about relational databases that I provided a link to in another response to one of your questions? You really need to if you haven't. Using relational databases ...
by James Bott
Tue Jun 15, 2021 3:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: check existing first and last on customer - RESOLVED !!!
Replies: 23
Views: 2501

Re: check existing first and last on customer

... is already in the archive? This is a classic problem when you are not using unique primary-keys. Primary-keys are one of the basic principles of relational-database programming. Another principle is to store each piece of data, only once. In the real-world, you are going find duplicate names--people, ...
by James Bott
Mon Jun 14, 2021 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: check existing first and last on customer - RESOLVED !!!
Replies: 23
Views: 2501

Re: to Nages: test for tdatabase

... customer code, for example Falconi Silvio is the customer with code 0005 and topolino, pluto, and minni are Silvio's guests. You talk to me about relational brooms but I've never done it and for me it's a difficult thing. in the single user version I simply did: SELECT PA PA -> (DbSetOrder ...
by Silvio.Falconi
Fri May 10, 2019 10:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: to Nages: test for tdatabase
Replies: 37
Views: 5678

ORM power in next FWH

... https://fivetechsoft.github.io/screenshots/ORM.png In a few words, ORM it is a set of classes to greatly simplify the use of SQL relational DataBases. An example is worth a thousand words: function Main()   local oUsers := Users():New( "www.fivetechsoft.com:3306",;  ...
by Antonio Linares
Sun Apr 14, 2019 1:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ORM power in next FWH
Replies: 19
Views: 3640

Re: Search on customers.dbf

... for any kind of ID if that is what you are doing. Recno()'s can change so you can't use them as an ID. ID's must never change. Again refer to the Relational Database Design article (link in my previous message) for more info about primary keys. Ok, it just came to me that you are saying when using ...
by James Bott
Tue Mar 19, 2019 3:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Search on customers.dbf
Replies: 12
Views: 2065

Re: Search on customers.dbf

Silvio, I don't know how familiar you are with relational database design, but this is the number one rule: First Normal Form (1NF): A table is 1NF if every cell contains a single value, not a list of values. This property is known as atomic. 1NF ...
by James Bott
Mon Mar 18, 2019 10:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Search on customers.dbf
Replies: 12
Views: 2065

Re: strategies

It's an interesting question, the dbf in my opinion are already obsolete. Migrating to a relational bbdd (SQL) is the minimum for these times since they allow us to be online permanently and from anywhere, as well as interacting with other applications (web or desktop). ...
by horacio
Wed Feb 20, 2019 8:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: strategies
Replies: 34
Views: 8117

Re: Example Business Object (Customer)

... and expose entities abstracting their attributes and relations. OOP is a much wider concept, applied to everything. From Wikipedia: Object-relational mapping https://en.wikipedia.org/wiki/Object-relational_mapping Object-relational mapping (ORM, O/RM, and O/R mapping tool) in computer science ...
by James Bott
Tue Nov 27, 2018 10:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Example Business Object (Customer)
Replies: 32
Views: 8526

Re: Example Business Object (Customer)

José Luis Sánchez wrote:As far as I know there is an ORM for Harbour at https://github.com/tfonrouge/oordb

No, it is not an ORM, it is a Object Oriented Relational Database. Its model is closer to an Active Record pattern than an ORM.

Regards
by Carlos Mora
Mon Nov 26, 2018 12:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Example Business Object (Customer)
Replies: 32
Views: 8526

Re: Example Business Object (Customer)

Hi Marcelo maybe we can see to far and think in ORM https://en.wikipedia.org/wiki/Object-relational_mapping ORM are a very elegant solution followed widely in almost every modern programming language. The most important concept behind is that it separates the persistency layer from the d...
by Carlos Mora
Wed Nov 21, 2018 8:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Example Business Object (Customer)
Replies: 32
Views: 8526

Re: Example Business Object (Customer)

Hola, maybe we can see to far and think in ORM https://en.wikipedia.org/wiki/Object-relational_mapping an idea only regards Marcelo Vía Hello Marcelo, I'm using your TRecord class and works fine for me. Do you have any other classes like a simple ORM and want to share them ? Regards,
by José Luis Sánchez
Tue Nov 20, 2018 8:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Example Business Object (Customer)
Replies: 32
Views: 8526
Next

Return to advanced search