Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
AnswerRe: Create multiple tables with a single SQL query Pin
King Fisher30-Jan-14 2:19
professionalKing Fisher30-Jan-14 2:19 
QuestionProcessing records in select statement in Oracle DB Pin
mrkeivan14-Jan-14 19:39
mrkeivan14-Jan-14 19:39 
AnswerRe: Processing records in select statement in Oracle DB Pin
Jörgen Andersson15-Jan-14 0:12
professionalJörgen Andersson15-Jan-14 0:12 
GeneralRe: Processing records in select statement in Oracle DB Pin
mrkeivan15-Jan-14 0:43
mrkeivan15-Jan-14 0:43 
GeneralRe: Processing records in select statement in Oracle DB Pin
Jörgen Andersson15-Jan-14 21:25
professionalJörgen Andersson15-Jan-14 21:25 
QuestionSQL - How to Create a New column based on values from existing column Pin
CodeWeaker14-Jan-14 2:09
CodeWeaker14-Jan-14 2:09 
AnswerRe: SQL - How to Create a New column based on values from existing column Pin
Mycroft Holmes14-Jan-14 2:30
professionalMycroft Holmes14-Jan-14 2:30 
AnswerRe: SQL - How to Create a New column based on values from existing column Pin
CodeWeaker14-Jan-14 4:48
CodeWeaker14-Jan-14 4:48 
Questionstored procedures in mysql Pin
Member 1026351910-Jan-14 1:17
Member 1026351910-Jan-14 1:17 
AnswerRe: stored procedures in mysql Pin
GuyThiebaut10-Jan-14 1:35
professionalGuyThiebaut10-Jan-14 1:35 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 1:42
Member 1026351910-Jan-14 1:42 
QuestionRe: stored procedures in mysql Pin
GuyThiebaut10-Jan-14 1:51
professionalGuyThiebaut10-Jan-14 1:51 
AnswerRe: stored procedures in mysql Pin
Wayne Gaylard10-Jan-14 1:50
professionalWayne Gaylard10-Jan-14 1:50 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 18:24
Member 1026351910-Jan-14 18:24 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 18:26
Member 1026351910-Jan-14 18:26 
GeneralRe: stored procedures in mysql Pin
Member 1026351910-Jan-14 19:16
Member 1026351910-Jan-14 19:16 
GeneralRe: stored procedures in mysql Pin
GuyThiebaut10-Jan-14 23:26
professionalGuyThiebaut10-Jan-14 23:26 
QuestionLog shipping of SQL2012 databases failing Pin
Chris Quinn8-Jan-14 22:33
Chris Quinn8-Jan-14 22:33 
AnswerRe: Log shipping of SQL2012 databases failing Pin
jschell12-Jan-14 9:17
jschell12-Jan-14 9:17 
GeneralRe: Log shipping of SQL2012 databases failing Pin
Chris Quinn12-Jan-14 20:55
Chris Quinn12-Jan-14 20:55 
GeneralRe: Log shipping of SQL2012 databases failing Pin
jschell13-Jan-14 9:07
jschell13-Jan-14 9:07 
QuestionQuery in SQL Server or Oracles Pin
mrkeivan8-Jan-14 22:22
mrkeivan8-Jan-14 22:22 
Hi Guys, 
I want to write a query in Oracle/SQL Server (doesn’t make a lot of difference) 
I have 3 tables: 
EMSINFO (EMSINFOID, DEVICEID, DATE, PlateNumber)
Devices (DEVICEID, INOUT)
Roads (ROADID, ROADNAME)

EMSINFO Contains the enters and exits of vehicles and it’s captured by a device
We have the device id, 
And roads has the lists of all the roads in the zone
based on the INOUTwe know whether its enter or exit
Now I want to select PlateNumber, total time in the zone (enter time – exit time) and 
Details of when entered and when exited in a text format in one record, because each vehicle can enter and exit multiple times in a particular day

Return Fields of store procedure:
PlateNo: Plate number	
text: Enter from (road name) at (time) 
      Exited from (road name) at ( time)
Duration: Total Duration of being in the zone

My question is generating that text or enters and exits
I appreciate the help

Mr.K

QuestionRe: Query in SQL Server or Oracles Pin
Jörgen Andersson8-Jan-14 22:34
professionalJörgen Andersson8-Jan-14 22:34 
AnswerRe: Query in SQL Server or Oracles Pin
mrkeivan9-Jan-14 10:28
mrkeivan9-Jan-14 10:28 
GeneralRe: Query in SQL Server or Oracles Pin
Mycroft Holmes9-Jan-14 11:42
professionalMycroft Holmes9-Jan-14 11:42 

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.