Hello all,
We have a need to pull a report/query that includes the following data:
I've tried lists an output sets but not all fields are available. Would this better as a SQL query? If so, what are the primary tables that contain this data? I've looked at the "T_" tables, via SSMS, and view tables. But, I think the need for the "initiator" has me hung up.
Any suggestions?
Thanks,
Charles
Here's some help to get you started. You'll still need to add in the contact perf tables you'd like include. Make sure to define which criteria you need in the WHERE clause too.
SELECT DISTINCT o.order_dt, o.order_no, o.initiator_no, ini_name.display_name AS initiator_name, o.customer_no, own_name.display_name AS order_owner_name, o.delivery, d.description AS delivery_method_desc, o.channel, sc.description AS channel_descFROM T_ORDER AS oJOIN FT_CONSTITUENT_DISPLAY_NAME() AS own_name ON own_name.customer_no = o.customer_noJOIN TR_SALES_CHANNEL AS sc ON o.channel = sc.idJOIN TR_SHIP_METHOD AS d ON o.delivery = d.idLEFT JOIN FT_CONSTITUENT_DISPLAY_NAME() AS ini_name ON o.initiator_no = ini_name.customer_no
This is great, Sara. Thank you so much!
I'll give this a whirl and pop back in if I get stuck. Much appreciated