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 Martin Reisinger)

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)

rpt of orders to web requests.jpg​ (208.2 KB ) - added by Martin Reisinger 5 years ago.

Download all attachments as: .zip

Change History (2)

by Martin Reisinger, 5 years ago

comment:1 by Martin Reisinger, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.