Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP - Program Logic in allocation of variables

I have 5 Sales people in company website.Now when ever query comes it should be distributed in the following ratio

SalesA : SalesB : SalesC : SalesD : SalesE = 1 : 2 : 1 : 1 : 1

I have made my website in php with mysql as Database.

1.Is there a possible way to achieve the above with out using database

2.What would be best db design in case db is needed.

Thanks in Advance

like image 638
user1614009 Avatar asked Jul 19 '26 04:07

user1614009


1 Answers

This logic must be realized in PHP code not on DB level.

like image 198
Dmytro Zarezenko Avatar answered Jul 20 '26 18:07

Dmytro Zarezenko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!