Difference between revisions of "OE.ORDERS VIEW (view)"

From dbscript Online Help
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|-
+
|- valign="top"
 
| '''View
 
| '''View
 
| OE.ORDERS_VIEW
 
| OE.ORDERS_VIEW
|-
 
 
|}
 
|}
 
  
 
=== Source ===
 
=== Source ===
Line 23: Line 21:
 
FROM orders
 
FROM orders
 
</pre>
 
</pre>
 
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|-
 
| Select
 
| Table
 
| [[OE.ORDERS_(table)|OE.ORDERS]]
 
 
|}
 

Latest revision as of 10:35, 27 August 2011

wikibot[edit]

View OE.ORDERS_VIEW

Source[edit]

CREATE OR REPLACE VIEW OE.ORDERS_VIEW AS 
SELECT
  order_id,
  TO_DATE(TO_CHAR(order_date,'DD-MON-YY HH:MI:SS'),'DD-MON-YY HH:MI:SS') ORDER_DATE,
  order_mode,
  customer_id,
  order_status,
  order_total,
  sales_rep_id,
  promotion_id
FROM orders