Viewing 7 posts - 1 through 7 (of 7 total)
Indeed it was! A schoolboy error! Thanks for the prompt reply.
December 8, 2010 at 9:22 am
So how do I now incorporate;
DECLARE @Today DATE = GETDATE()
SELECT
prd.ProductID,
prd.Description,
prd.Price,
...
March 10, 2010 at 3:16 am
Forget that last post. I'm being a k*ob!. That works now thankyou very much.
March 10, 2010 at 3:08 am
I probably should have mentioned that I'm trying to create a view. Doesn't seem to like the DECLARE statement.
March 10, 2010 at 2:58 am
USE [Development]
GO
/****** Object: Table [dbo].[Order] Script Date: 03/10/2010 09:38:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Order](
[OrderID] [int] IDENTITY(1,1) NOT NULL,
...
March 10, 2010 at 2:41 am
Hi Lynn - thanks for that but I still get no rows returned even though there is a record with the date 2010-03-10 in the order date field. Help!
March 10, 2010 at 2:07 am
Viewing 7 posts - 1 through 7 (of 7 total)