テーブル情報
システム名 http://www.as-link.com/  作成者 秦 松甫 
サブシステム名 ERPlus@iDempiere3.1_daily  作成日 2016/3/7 
スキーマ名 adempiere  更新日  
論理テーブル名   RDBMS  PostgreSQL 9.4.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9), 64-bit 9.4.5 
物理テーブル名 rv_m_forecast     
備考


カラム情報
No 論理名 物理名 データ型 Not Null デフォルト 備考
1 ad_client_id numeric(10)  
2 ad_org_id numeric(10)  
3 m_forecast_id numeric(10)  
4 name character varying(60)  
5 c_calendar_id numeric(10)  
6 c_year_id numeric(10)  
7 c_period_id numeric(10)  
8 datepromised timestamp without time zone  
9 m_product_id numeric(10)  
10 salesrep_id numeric(10)  
11 c_uom_id numeric(10)  
12 qty numeric  
13 qtycalculated numeric  
14 pricelist numeric  
15 pricestd numeric  
16 pricelimit numeric  
17 totalamt numeric  
18 m_product_category_id numeric(10)  
19 classification character varying(12)  
20 group1 character varying(255)  
21 group2 character varying(255)  


ソース
ソース
 SELECT f.ad_client_id,
fl.ad_org_id,
f.m_forecast_id,
f.name,
f.c_calendar_id,
f.c_year_id,
fl.c_period_id,
fl.datepromised,
fl.m_product_id,
fl.salesrep_id,
p.c_uom_id,
fl.qty,
fl.qtycalculated,
( SELECT pp.pricelist
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) AS pricelist,
( SELECT pp.pricestd
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) AS pricestd,
( SELECT pp.pricelimit
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) AS pricelimit,
(( SELECT pp.pricestd
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) * fl.qty) AS totalamt,
p.m_product_category_id,
p.classification,
p.group1,
p.group2
FROM (((m_forecast f
JOIN m_forecastline fl ON ((f.m_forecast_id = fl.m_forecast_id)))
JOIN m_product p ON ((p.m_product_id = fl.m_product_id)))
JOIN m_pricelist pl ON ((pl.m_pricelist_id = f.m_pricelist_id)));


インデックス情報
No インデックス名 カラムリスト ユニーク 備考


外部キー情報
No 外部キー名 カラムリスト 参照先 参照先カラムリスト


外部キー情報(PK側)
No 外部キー名 カラムリスト 参照元 参照元カラムリスト


RDBMS固有の情報
No プロパティ名 プロパティ値
1 schemaname adempiere
2 viewname rv_m_forecast
3 viewowner adempiere
4 definition SELECT f.ad_client_id,
fl.ad_org_id,
f.m_forecast_id,
f.name,
f.c_calendar_id,
f.c_year_id,
fl.c_period_id,
fl.datepromised,
fl.m_product_id,
fl.salesrep_id,
p.c_uom_id,
fl.qty,
fl.qtycalculated,
( SELECT pp.pricelist
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) AS pricelist,
( SELECT pp.pricestd
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) AS pricestd,
( SELECT pp.pricelimit
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) AS pricelimit,
(( SELECT pp.pricestd
FROM (m_pricelist_version plv
JOIN m_productprice pp ON ((pp.m_pricelist_version_id = plv.m_pricelist_version_id)))
WHERE ((pp.m_product_id = fl.m_product_id) AND (plv.m_pricelist_id = pl.m_pricelist_id))) * fl.qty) AS totalamt,
p.m_product_category_id,
p.classification,
p.group1,
p.group2
FROM (((m_forecast f
JOIN m_forecastline fl ON ((f.m_forecast_id = fl.m_forecast_id)))
JOIN m_product p ON ((p.m_product_id = fl.m_product_id)))
JOIN m_pricelist pl ON ((pl.m_pricelist_id = f.m_pricelist_id)));