Javascript

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentJavascript

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old March 4th, 2014, 11:26 PM
Girija Girija is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Mar 2014
Posts: 1 Girija User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 44 sec
Reputation Power: 0
How to use Count the number of tasks assigned time wise for a particular day

Here i am not getting the count of the tasks from the below query its showing count value is 1. How to get the count for every hour for a particular day

SELECT
distinct
(CASE
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '07:00:00' AND '08:00:00' THEN ' 07-08 AM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '08:00:00' AND '09:00:00' THEN ' 08-09 AM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '09:00:00' AND '10:00:00' THEN ' 09-10 AM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '10:00:00' AND '11:00:00' THEN ' 10-11 AM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '11:00:00' AND '12:00:00' THEN ' 11-12 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '12:00:00' AND '13:00:00' THEN ' 12-01 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '13:00:00' AND '14:00:00' THEN ' 01-02 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '14:00:00' AND '15:00:00' THEN ' 02-03 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '15:00:00' AND '16:00:00' THEN ' 03-04 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '16:00:00' AND '17:00:00' THEN ' 04-05 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '17:00:00' AND '18:00:00' THEN ' 05-06 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '18:00:00' AND '19:00:00' THEN ' 06-07 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '19:00:00' AND '20:00:00' THEN ' 07-08 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '20:00:00' AND '21:00:00' THEN ' 08-09 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '21:00:00' AND '22:00:00' THEN ' 09-10 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '22:00:00' AND '23:00:00' THEN ' 10-11 PM'
WHEN TO_CHAR(TS.TS.TIME_TS, 'hh24.mi.ss') BETWEEN '23:00:00' AND '24:00:00' THEN ' 11-12 PM'
ELSE ' 12-07 AM'
END ) TIME,

TS.DAY_TS,
TS.ID_STR_RT,
TS.SC_TS,
count(TS.ID_RPSTY_TND) as Number_Till

FROM AS_TS TS
WHERE TS.DAY_TS='2014-03-05' and TS.SC_TS='1'
GROUP BY TS.DAY_TS,TS.ID_STR_RT,TS.SC_TS,TS.TIME_TS;


Thank you

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentJavascript > How to use Count the number of tasks assigned time wise for a particular day


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap