Click here to Skip to main content
15,908,264 members
Home / Discussions / Database
   

Database

 
Questionediting primary key Pin
Xmen Real 6-Nov-07 17:09
professional Xmen Real 6-Nov-07 17:09 
AnswerRe: editing primary key Pin
Rob Philpott6-Nov-07 23:23
Rob Philpott6-Nov-07 23:23 
AnswerRe: editing primary key Pin
Hesham Amin7-Nov-07 9:46
Hesham Amin7-Nov-07 9:46 
GeneralRe: editing primary key Pin
Xmen Real 7-Nov-07 14:43
professional Xmen Real 7-Nov-07 14:43 
QuestionSql 2005 Sporatic performance on same query Pin
jareddavies6-Nov-07 13:41
jareddavies6-Nov-07 13:41 
AnswerRe: Sql 2005 Sporatic performance on same query Pin
jareddavies6-Nov-07 13:46
jareddavies6-Nov-07 13:46 
GeneralRe: Sql 2005 Sporatic performance on same query Pin
jareddavies8-Nov-07 14:30
jareddavies8-Nov-07 14:30 
QuestionProblem with a WHERE statement Pin
solutionsville6-Nov-07 8:07
solutionsville6-Nov-07 8:07 
I am trying to run this query;

declare @StartDate DateTime
declare @EndDate DateTime
set @StartDate = cast('2007/10/22' as DateTime)
set @EndDate = cast('2007/11/05' as DateTime)


SELECT RT_MCP_Name, RT_MCP_State, RT_MCP_Alarm_Text, COUNT(RT_MCP_Alarm_Text) AS Error_Count, CONVERT(char(10), RT_MCP_Date_Time, 111) as ErrorDate, RT_MCP_Bit_State as BOOLEAN
FROM RT_MCP_Historic_Alarms
where RT_MCP_Date_Time >@StartDate and RT_MCP_Date_Time <dateadd(day, 1,@enddate)="" and="" rt_mcp_alarm_text="" <u="">RT_MCP_Bit_State <> FALSE
GROUP BY RT_MCP_Name, RT_MCP_State, RT_MCP_Alarm_Text, CONVERT(char(10), RT_MCP_Date_Time, 111)
ORDER BY RT_MCP_Date_Time, Error_Count DESC, RT_MCP_Name, RT_MCP_State, RT_MCP_Alarm_Text

I recieve this error when I try to run it. The BOLDED column is a BIT type, for a True/False choice. I do not need to know when the items go false, only when the meet the TRUE bit.

Thanks,
AnswerRe: Problem with a WHERE statement Pin
Christian Graus6-Nov-07 9:06
protectorChristian Graus6-Nov-07 9:06 
AnswerRe: Problem with a WHERE statement Pin
solutionsville7-Nov-07 6:33
solutionsville7-Nov-07 6:33 
QuestionHelp! I'm a beginner. Pin
meki_21186-Nov-07 3:52
meki_21186-Nov-07 3:52 
AnswerRe: Help! I'm a beginner. Pin
Colin Angus Mackay6-Nov-07 4:00
Colin Angus Mackay6-Nov-07 4:00 
AnswerRe: Help! I'm a beginner. Pin
Paul Conrad6-Nov-07 16:02
professionalPaul Conrad6-Nov-07 16:02 
QuestionRestricting Field List of Pivot table at Cube Level Pin
s.sathyanarayanan6-Nov-07 3:07
s.sathyanarayanan6-Nov-07 3:07 
QuestionHTTP ENDPOINT in SQL Pin
baala.m6-Nov-07 2:40
baala.m6-Nov-07 2:40 
AnswerRe: HTTP ENDPOINT in SQL Pin
Colin Angus Mackay6-Nov-07 2:51
Colin Angus Mackay6-Nov-07 2:51 
QuestionTRANSACT SQL "TRUNCATE" Pin
craneprince6-Nov-07 2:38
craneprince6-Nov-07 2:38 
AnswerRe: TRANSACT SQL "TRUNCATE" Pin
Colin Angus Mackay6-Nov-07 2:48
Colin Angus Mackay6-Nov-07 2:48 
GeneralRe: TRANSACT SQL "TRUNCATE" Pin
craneprince6-Nov-07 2:54
craneprince6-Nov-07 2:54 
GeneralRe: TRANSACT SQL "TRUNCATE" Pin
Colin Angus Mackay6-Nov-07 3:24
Colin Angus Mackay6-Nov-07 3:24 
AnswerRe: TRANSACT SQL "TRUNCATE" Pin
TJoe7-Nov-07 8:00
TJoe7-Nov-07 8:00 
GeneralRe: TRANSACT SQL "TRUNCATE" Pin
craneprince7-Nov-07 19:23
craneprince7-Nov-07 19:23 
GeneralRe: TRANSACT SQL "TRUNCATE" Pin
TJoe8-Nov-07 1:32
TJoe8-Nov-07 1:32 
QuestionWindows integrated Security issues Pin
kinsella_john6-Nov-07 2:31
kinsella_john6-Nov-07 2:31 
AnswerRe: Windows integrated Security issues Pin
BrokenS6-Nov-07 2:55
BrokenS6-Nov-07 2:55 

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.