Hi
I have a View that works ok but it is displaying the calendarMonth as a number 1,2,2 etc... which I would like to display as January, Feb March etc....
Any ideas how I can change the code below so this will work please. Thanks
SELECT dbo.Product.ProductID, dbo.Product.ProductCode, dbo.Product.Description, dbo.ProductAnalysis.CalendarYear, dbo.ProductAnalysis.CalendarMonth,
dbo.ProductAnalysis.TotalVolume, dbo.ProductStockOption.StockLevelMin, dbo.ProductStockOption.StockLevelMax, dbo.ProductGroup.Name,
dbo.ProductStockOption.BranchID
FROM dbo.Product INNER JOIN
dbo.ProductAnalysis ON dbo.Product.ProductID = dbo.ProductAnalysis.ProductID INNER JOIN
dbo.ProductGroup ON dbo.Product.ProductGroupID = dbo.ProductGroup.ProductGroupID INNER JOIN
dbo.ProductStockOption ON dbo.Product.ProductID = dbo.ProductStockOption.ProductID
WHERE (dbo.ProductAnalysis.CalendarYear = 2015) AND (dbo.ProductStockOption.BranchID = 1)
I have a View that works ok but it is displaying the calendarMonth as a number 1,2,2 etc... which I would like to display as January, Feb March etc....
Any ideas how I can change the code below so this will work please. Thanks
SELECT dbo.Product.ProductID, dbo.Product.ProductCode, dbo.Product.Description, dbo.ProductAnalysis.CalendarYear, dbo.ProductAnalysis.CalendarMonth,
dbo.ProductAnalysis.TotalVolume, dbo.ProductStockOption.StockLevelMin, dbo.ProductStockOption.StockLevelMax, dbo.ProductGroup.Name,
dbo.ProductStockOption.BranchID
FROM dbo.Product INNER JOIN
dbo.ProductAnalysis ON dbo.Product.ProductID = dbo.ProductAnalysis.ProductID INNER JOIN
dbo.ProductGroup ON dbo.Product.ProductGroupID = dbo.ProductGroup.ProductGroupID INNER JOIN
dbo.ProductStockOption ON dbo.Product.ProductID = dbo.ProductStockOption.ProductID
WHERE (dbo.ProductAnalysis.CalendarYear = 2015) AND (dbo.ProductStockOption.BranchID = 1)