# Delivery App - Retrieving Order

**URL:** <https://community.glideapps.com/t/delivery-app-retrieving-order/7867>\
**Category:** Ask for Help\
**Created:** [April 26, 2020, 11:06am UTC](https://community.glideapps.com/t/delivery-app-retrieving-order/7867 "2020-04-26T11:06:33Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Mariano\_Betta](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariano_betta/32/17895_2.png) [@Mariano\_Betta](https://community.glideapps.com/u/Mariano_Betta)\
**Post date:** [April 27, 2020, 5:26pm UTC](https://community.glideapps.com/t/delivery-app-retrieving-order/7867/14 "2020-04-27T17:26:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/6/6bb08d7c2c849c34a48a86867466c2eb27723003.png)

We start with the count at 0.  
I got 0 by relating the EMAIL\_RESTAURANT column of the menu table  
with EMAIL\_RESTAURANT from the confirmed orders table.  
The first time it gives 0 to all the articles.  
When you confirm another order, you should give 1.  
That is, the count is made with that column. And the subsequent relationship from the table confirmed orders with the articles is going to be done with the column EMAIL\_RESTAURANT\_COUNT.  
You have to use matrix formula, I only did that example in an excel.

I’m not very good at explaining, but the most important thing is the logic.  
I do what I can within the short time I have.

---

_[View the full topic](https://community.glideapps.com/t/delivery-app-retrieving-order/7867)._
