Query Help...please
From: Phlip (aplatfl_at_microsoft.com)
Date: 01/21/05
- Next message: Michael C: "Re: Query for search engine"
- Previous message: David Gugick: "Re: RAID 1 stripe size"
- Next in thread: Michael C: "Re: Query Help...please"
- Reply: Michael C: "Re: Query Help...please"
- Reply: Bob Barrows [MVP]: "Re: Query Help...please"
- Reply: David Portas: "Re: Query Help...please"
- Reply: David Buchanan: "Re: Query Help...please"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 21 Jan 2005 12:07:23 -0800
I am using the following query that is not returing the
results I need.
SELECT * FROM
dbo.MonthlyUnapprovedTime
WHERE EmployeeID = 123456
AND uMonth <= datepart(m,'5/1/2004')
AND uYear <= datepart(yyyy,'5/1/2004')
On the table below
[dbo].[MONTHLYUNAPPROVEDTIME]
([MU_ID] [int] IDENTITY (1, 1) NOT NULL ,
[EmployeeID] [char] (3) [int] NOT NULL ,
[uMonth] [int] NOT NULL ,
[uYear] [int] NOT NULL ,
[UnapprovedTime] [decimal](5, 2) NOT NULL)
And I am only getting data for Umonth (1,2,3,4,5) and
uYear (2004). The data has every month and years from
2001 - 2005. How can I retrieve the missing data? Any
questions or idea is greatly appreciated.
Philip
- Next message: Michael C: "Re: Query for search engine"
- Previous message: David Gugick: "Re: RAID 1 stripe size"
- Next in thread: Michael C: "Re: Query Help...please"
- Reply: Michael C: "Re: Query Help...please"
- Reply: Bob Barrows [MVP]: "Re: Query Help...please"
- Reply: David Portas: "Re: Query Help...please"
- Reply: David Buchanan: "Re: Query Help...please"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|