Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
GeneralRe: group by clause. Pin
Arun.Immanuel16-Jun-07 21:16
Arun.Immanuel16-Jun-07 21:16 
Questioncoping tables os Sql srver to folder Pin
razanabanu15-Jun-07 22:58
razanabanu15-Jun-07 22:58 
Questionopening a db on network path?[sql servr 05] Pin
giddy_guitarist15-Jun-07 22:37
giddy_guitarist15-Jun-07 22:37 
AnswerRe: opening a db on network path?[sql servr 05] Pin
originSH18-Jun-07 2:51
originSH18-Jun-07 2:51 
GeneralRe: working with a DB over a network Pin
giddy_guitarist18-Jun-07 9:22
giddy_guitarist18-Jun-07 9:22 
QuestionProblem in recreating the table Full text catalog in sql server Pin
AmitSumit15-Jun-07 21:45
AmitSumit15-Jun-07 21:45 
Questiondatepart function..... Pin
Member 387988115-Jun-07 21:18
Member 387988115-Jun-07 21:18 
AnswerRe: datepart function..... Pin
Arun.Immanuel15-Jun-07 21:47
Arun.Immanuel15-Jun-07 21:47 
Magh_M wrote:
and datepart(mm,sdate)=5 and datepart(yyyy,sdate)=2007


It is because of And has higher precedence than Or.

Try this:

<br />
WHERE dbo.tblmonthhourdetails.projectid=100 And<br />
<big>(</big>(dbo.tblMonthHourDetails.MedicalLeave <> 0) OR<br />
(dbo.tblMonthHourDetails.AnnualLeave <> 0)<big>)</big><br />
and datepart(mm,sdate)=5 and datepart(yyyy,sdate)=2007


along with the column list and check the expression evaluates like you expect.



If you still find the same problem,
try to include the exressions
datepart(mm,sdate),datepart(yyyy,sdate)
along with the column list and check if the expressions evaluate like you expected.








Regards,
Arun Kumar.A

GeneralRe: datepart function..... Pin
Member 387988116-Jun-07 1:20
Member 387988116-Jun-07 1:20 
QuestionVB6 Pin
xxxxxzer15-Jun-07 12:25
xxxxxzer15-Jun-07 12:25 
Questiondatetime difference Pin
seemamltn15-Jun-07 11:33
seemamltn15-Jun-07 11:33 
QuestionSearch Facilities-Please Suggest Pin
adnanrafiq15-Jun-07 10:22
adnanrafiq15-Jun-07 10:22 
QuestionDelete the rows Pin
seemamltn15-Jun-07 8:04
seemamltn15-Jun-07 8:04 
AnswerRe: Delete the rows Pin
snorkie15-Jun-07 9:46
professionalsnorkie15-Jun-07 9:46 
QuestionIndex server Pin
originSH15-Jun-07 5:00
originSH15-Jun-07 5:00 
QuestionNULL vs '' (Nothing) Pin
dboy22115-Jun-07 4:24
dboy22115-Jun-07 4:24 
AnswerRe: NULL vs '' (Nothing) Pin
Pete O'Hanlon15-Jun-07 4:30
mvePete O'Hanlon15-Jun-07 4:30 
GeneralRe: NULL vs '' (Nothing) Pin
dboy22115-Jun-07 4:46
dboy22115-Jun-07 4:46 
GeneralRe: NULL vs '' (Nothing) Pin
Pete O'Hanlon15-Jun-07 5:13
mvePete O'Hanlon15-Jun-07 5:13 
GeneralRe: NULL vs '' (Nothing) Pin
andyharman15-Jun-07 7:38
professionalandyharman15-Jun-07 7:38 
AnswerRe: NULL vs '' (Nothing) Pin
PIEBALDconsult15-Jun-07 4:32
mvePIEBALDconsult15-Jun-07 4:32 
QuestionHELP PLEase with SQL form data entry Pin
theimmortalmoo15-Jun-07 4:21
theimmortalmoo15-Jun-07 4:21 
AnswerRe: HELP PLEase with SQL form data entry Pin
leckey15-Jun-07 5:29
leckey15-Jun-07 5:29 
GeneralRe: HELP PLEase with SQL form data entry Pin
theimmortalmoo15-Jun-07 5:33
theimmortalmoo15-Jun-07 5:33 
GeneralRe: HELP PLEase with SQL form data entry Pin
leckey15-Jun-07 5:59
leckey15-Jun-07 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.