Here's the syntax for the view i'm trying to pull select fields from... .
create view vv_tmt_open_so_lines as
SELECT DISTINCT
If(Month(ol.DATE_ITEM_PROM)<Month(Current_Date()) And Year(ol.DATE_ITEM_PROM)<=Year(Current_Date()),'01 - Previous Month',
If(Month(ol.DATE_ITEM_PROM)>Month(Current_Date()) And Year(ol.DATE_ITEM_PROM)<Year(Current_Date()),'01 - Previous Month',
If(Year(ol.DATE_ITEM_PROM)>Year(Current_Date()),'0 3 - Future Month',
If(Month(ol.DATE_ITEM_PROM)>Month(Current_Date()) And Year(ol.DATE_ITEM_PROM)=Year(Current_Date()),'03 - Future Month',
If(Month(ol.DATE_ITEM_PROM)=Month(Current_Date()) And Year(ol.DATE_ITEM_PROM)=Year(Current_Date()),'02 - Current Month',
'Undefined'))))) AS "Month",
ol.DATE_ITEM_PROM-Current_Date() AS "Days_Left",
ol.CUSTOMER AS "Customer",
ol.ORDER_NO AS "Order",
ol.RECORD_NO AS "Line",
ol.PART AS "Part",
ol.DESCRIPTION AS "Description",
ol.QTY_BO AS "Qty_BO",
ol.QTY_SHIPPED AS "Ship_TD",
oh.CUSTOMER_PO AS "Cust_PO",
oh.date_order as "Date_Enter",
ol.DATE_ITEM_PROM AS "Date_Prom",
DayName(ol.DATE_ITEM_PROM) as "Day_Prom",
(ol.price*ol.QTY_BO) AS "BO_Price_Ext"
FROM v_order_header oh, v_order_lines ol
where oh.ORDER_NO = ol.ORDER_NO
and ol.RECORD_TYPE ='L'
and oh.RECORD_TYPE ='A'