SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


query problem


query problem

Author
Message
sandymca94
sandymca94
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 20
i need total time interval between the problem occur and resolve and i am getting the number of time problem occur but total time not getting .for one problem in my table once problem occur and resolve so i am counting one problem.
and my other query is for number of times problem occur is working fine but i need time also.........


select count(*) as ProblemCount ,Ft.TagIndex, TagName from dbo.FloatTable as Ft join
dbo.TagTable as TT on Ft.TagIndex= TT.TagIndex where val=0 group by Ft.TagIndex , TagName

but one field is the same table DateAndTime in FloatTable .so i nedd total time also.


Can any budy help me..........

Thanks in advance....
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search