Changes between Version 12 and Version 13 of AdvancedConcepts
- Timestamp:
- 06/16/26 02:58:08 (26 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedConcepts
v12 v13 67 67 {{{ 68 68 create or replace view vw_company_available_requests as 69 select distinct69 select 70 70 r.id as request_id, 71 71 r.customer_user_id, 72 cus.username as customer_username,73 72 r.timestamp, 74 73 r.number_of_adult_passengers, … … 80 79 r.baby_seat_count, 81 80 ca.company_id 82 from request r83 join AppUser cus on r.customer_user_id = cus.id84 join area a on ST_Contains(a.coverage_polygon, r.start_location)85 join company_area ca on a.id = ca.area_id86 where r.status = 'pending';81 from company_area ca 82 join area a on ca.area_id = a.id 83 join request r on ST_Intersects(a.coverage_polygon, r.start_location) 84 and r.status = 'pending'; 85 select * from vw_company_available_requests where company_id = 3; 87 86 }}} 87 88 Резултантно време на извршување: 89 [[Image(2.png)]] 88 90 89 91 **Динамична пресметка на цена преку просторна дистанца**
