Version 10 (modified by 3 years ago) ( diff ) | ,
---|
Приказ на детали
Посетител или Reviewer може да гледа детали за избраниот бизнис.
Актери
- Посетител
- Reviewer
Реализација
Чекор 1 : Корисникот го избира копчето Бизниси од главното мени.
Чекор 2 : Се листаат сите бизниси кои постојат во базата.
select b.business_id, b.business_name, ( select avg(r.review_stars) from review r where r.business_id = b.business_id ) as business_avg_stars, c.category_id, c.category_name, ( select string_agg(a.address_city, '; ') as address_city from address a where a.business_id = b.business_id ) as address_city from business b join category c on b.category_id = c.category_id order by b.business_name
Чекор 3 : Корисникот избира бизнис со кликнување на него. Системот го прикажува избраниот бизнис.
Најди детали за бизнисот
select b.business_id, b.business_name, ( select avg(r.review_stars) from review r where r.business_id = b.business_id ) as business_avg_stars, c.category_name, a.address_city, b.business_hours, b.business_descr, b.business_phone from business b join category c on b.category_id = c.category_id join address a on b.business_id = a.business_id where b.business_id = 4
Најди ги сите сервиси за бизнисот
select s.service_name from business_service bs join service s on bs.service_id = s.service_id where business_id = 4
Најди ги сите ревјуа за бизнисот
select r.reviewer_name, r.reviewer_verified, review.review_title, review.review_text, review.review_stars from review join reviewer r on review.reviewer_id = r.reviewer_id where review.business_id = 4;
Attachments (4)
- biznis.png (89.3 KB ) - added by 3 years ago.
- biznis.2.png (94.1 KB ) - added by 3 years ago.
- menu.png (9.3 KB ) - added by 3 years ago.
- list.png (39.3 KB ) - added by 3 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.