Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATE VIEW problems

Status
Not open for further replies.

omgm1ke

Programmer
Joined
Feb 27, 2007
Messages
8
Location
GB
My servers DB is using MySQL ver4.1.10.

I need to use a query in the type CREATE VIEW

Code:
CREATE VIEW currentCostOfStock AS
	SELECT P.partName, P.partNo, P.manufacturer, S.vehicleType, S.years, S.price, S.stockLevel, S.price * S.stockLevel AS productCost, SUM productCost AS stockCost
	FROM Parts P, StockLedger S
	WHERE P.partNo = S.partNo ;
The error I get back is complaining about my MySQL version. Can I not use VIEW in 4.1?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top