Opened 5 years ago
Last modified 5 years ago
#2302 new enhancement
PW Report of Orders Related to Weborders
| Reported by: | Martin Reisinger | Owned by: | dbmujc |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Reports | Version: | N/A |
| Severity: | Keywords: | internal report on web | |
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description (last modified by )
I used the folowing query today (below). Image attached of output
A genebank staff person requested that a Report be added on the internal reports list on the web to use his SQL, but also include "...include the # of items assigned to each GG order.
:
SELECT wor.web_order_request_id, o.order_request_id, wor.ordered_date, wu.user_name, wc.last_name, wc.first_name,
FROM web_order_request wor
JOIN web_cooperator wc
ON wor.web_cooperator_id = wc.web_cooperator_id
JOIN web_user wu
ON wor.owned_by = wu.web_user_id
LEFT JOIN order_request o
ON wor.web_order_request_id = o.web_order_request_id
JOIN web_order_request_item wori
ON wor.web_order_request_id = wori.web_order_request_id
JOIN accession a
ON wori.accession_id = a.accession_id
JOIN cooperator c
ON a.owned_by = c.cooperator_id
JOIN site s
ON c.site_id = s.site_id
WHERE wor.web_order_request_id = 49351
GROUP BY wor.web_order_request_id, o.order_request_id, wor.ordered_date, wu.user_name, wc.first_name, wc.last_name
Attachments (1)
Change History (2)
by , 5 years ago
| Attachment: | rpt of orders to web requests.jpg added |
|---|
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
