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

Database

 
GeneralRe: Oracle Express Question Pin
Richard MacCutchan7-Feb-14 23:21
mveRichard MacCutchan7-Feb-14 23:21 
GeneralRe: Oracle Express Question Pin
Jörgen Andersson7-Feb-14 23:02
professionalJörgen Andersson7-Feb-14 23:02 
AnswerRe: Oracle Express Question Pin
Bernhard Hiller10-Feb-14 21:41
Bernhard Hiller10-Feb-14 21:41 
QuestionTable Name Pin
Sandeep Singh Shekhawat7-Feb-14 20:25
professionalSandeep Singh Shekhawat7-Feb-14 20:25 
AnswerRe: Table Name Pin
Mycroft Holmes7-Feb-14 20:35
professionalMycroft Holmes7-Feb-14 20:35 
Questionpassing data from one action to another MVC asp.net Pin
Hunain Hafeez7-Feb-14 2:49
Hunain Hafeez7-Feb-14 2:49 
SuggestionRe: passing data from one action to another MVC asp.net Pin
Richard Deeming7-Feb-14 4:07
mveRichard Deeming7-Feb-14 4:07 
Questionsum of time per month Pin
Hunain Hafeez5-Feb-14 21:10
Hunain Hafeez5-Feb-14 21:10 
AnswerRe: sum of time per month Pin
Shameel5-Feb-14 23:25
professionalShameel5-Feb-14 23:25 
GeneralRe: sum of time per month Pin
Hunain Hafeez5-Feb-14 23:44
Hunain Hafeez5-Feb-14 23:44 
AnswerRe: sum of time per month Pin
King Fisher7-Feb-14 2:24
professionalKing Fisher7-Feb-14 2:24 
Questionputting column 00:00 Pin
Hunain Hafeez4-Feb-14 23:46
Hunain Hafeez4-Feb-14 23:46 
AnswerRe: putting column 00:00 Pin
Chris Quinn5-Feb-14 5:04
Chris Quinn5-Feb-14 5:04 
AnswerRe: putting column 00:00 Pin
Mycroft Holmes5-Feb-14 11:57
professionalMycroft Holmes5-Feb-14 11:57 
Questioncommand implement loop Pin
mrkeivan3-Feb-14 21:11
mrkeivan3-Feb-14 21:11 
AnswerRe: command implement loop Pin
Chris Quinn3-Feb-14 21:20
Chris Quinn3-Feb-14 21:20 
GeneralRe: command implement loop Pin
mrkeivan3-Feb-14 21:28
mrkeivan3-Feb-14 21:28 
GeneralRe: command implement loop Pin
Chris Quinn3-Feb-14 22:02
Chris Quinn3-Feb-14 22:02 
GeneralRe: command implement loop Pin
Richard Andrew x645-Feb-14 4:56
professionalRichard Andrew x645-Feb-14 4:56 
GeneralRe: command implement loop Pin
Chris Quinn5-Feb-14 4:59
Chris Quinn5-Feb-14 4:59 
GeneralRe: command implement loop Pin
Richard Andrew x645-Feb-14 5:00
professionalRichard Andrew x645-Feb-14 5:00 
AnswerRe: command implement loop Pin
Jörgen Andersson4-Feb-14 5:04
professionalJörgen Andersson4-Feb-14 5:04 
I wish everyone was as clear in what they want.
SQL
WITH CTE AS (
    SELECT  CarId
           ,TO_CHAR(PassDate, 'YYYY-MM-DD HH24') AS hours
           ,TRUNC(PassDate, 'HH24') AS hours
           ,DeviceName
    FROM    cars c,devices d
    WHERE   c.DeviceID = d.DeviceID
    )
SELECT  Count(carID) Cars_passed
       ,hours
       ,devicename
FROM    CTE
GROUP BY hourly
        ,devicename

<edit>Revisited and fixed so that hours remains the correct type</edit>
Wrong is evil and must be defeated.
- Jeff Ello[^]


modified 5-Feb-14 1:44am.

GeneralRe: command implement loop Pin
mrkeivan7-Feb-14 18:51
mrkeivan7-Feb-14 18:51 
QuestionThe meaning of the Roles in SQL Server 2008 R2 Pin
Lefteris Gkinis3-Feb-14 6:18
Lefteris Gkinis3-Feb-14 6:18 
AnswerRe: The meaning of the Roles in SQL Server 2008 R2 Pin
Eddy Vluggen3-Feb-14 9:57
professionalEddy Vluggen3-Feb-14 9:57 

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.