Troy Sorensen
Posts: 0
Joined: Tue Oct 29, 2013 5:14 am

How to create Relational Database?

How to create database of orders (user, date, total, payment, etc) with one-to-many relationship with database of OrderDetails (products, prices, quantities). Would this be two collections within same database?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to create Relational Database?

Hi Troy,

Appery.io uses MongoDB that is not a relational database.
In your case it's better to create 2 collections in the same database, as you asked

greg7178824
Posts: 0
Joined: Mon Oct 20, 2014 5:07 pm

How to create Relational Database?

I see that you guys have released RESTExpress. Is this able to link multiple tables with primary and foreign keys?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to create Relational Database?

Hi Troy,

This should be possible with RESTxpress with multiple tables.
But not I'm not sure what do you mean by: "primary and foreign keys"?

By the way here is our video about connecting RESTxpress in Appery.io.

greg7178824
Posts: 0
Joined: Mon Oct 20, 2014 5:07 pm

How to create Relational Database?

Its Greg, but no problem

Thanks for the link however it did not address my concern

The basics of relational databases are to create a relationship between 2 tables with the one having a primary key and the corresponding table a foreign key. So like if I have a Customer table (customerId(PK), Name, age, orderID (FK)) and Orders table (OrderId(PK), item, number). Can I link the 2 tables so that when adding/editing/deleting records?

Thanks

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to create Relational Database?

Hello!

Please use links from one collection to another http://devcenter.appery.io/documentat...

greg7178824
Posts: 0
Joined: Mon Oct 20, 2014 5:07 pm

How to create Relational Database?

Thank you...

Pretty confusing though. Is there a video which explains it more clearly possibly?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to create Relational Database?

Hello Greg,

Unfortunately we don't have such video. Please read the whole doc http://devcenter.appery.io/documentat...
there are different examples of working with Pointers.

Return to “Issues”