Click here to Skip to main content
15,792,217 members
Home / Discussions / Database
   

Database

 
AnswerRe: Schema update using SQL Server Data Tools Pin
Mycroft Holmes19-Oct-15 15:35
professionalMycroft Holmes19-Oct-15 15:35 
GeneralRe: Schema update using SQL Server Data Tools Pin
indian14319-Oct-15 16:54
indian14319-Oct-15 16:54 
QuestionReferencing DacPac file from different Server and Database Pin
indian14319-Oct-15 11:34
indian14319-Oct-15 11:34 
AnswerRe: Referencing DacPac file from different Server and Database Pin
Mycroft Holmes19-Oct-15 15:30
professionalMycroft Holmes19-Oct-15 15:30 
QuestionLimiting the scope of a Table variable Pin
indian14317-Oct-15 7:35
indian14317-Oct-15 7:35 
AnswerRe: Limiting the scope of a Table variable Pin
Mycroft Holmes17-Oct-15 14:40
professionalMycroft Holmes17-Oct-15 14:40 
GeneralRe: Limiting the scope of a Table variable Pin
indian14319-Oct-15 11:28
indian14319-Oct-15 11:28 
QuestionMove GROUP_CONCAT's comma values to columns Pin
Jassim Rahma15-Oct-15 7:45
Jassim Rahma15-Oct-15 7:45 
Hi,

I am using below code to display times as Pivot table grouped by date, this is basically for fingerprint attendance... I am getting what I want like this:

2012-06-03 10:23:30,10:23:32,10:24:05,10:24:07,10:24:24,10:24:26

How can I make the comma separated values displayed in columns instead of comma so it will be something like this

created_date - time1 - time2 - time3 - time4 --- etc

this is the code:
SQL
SELECT created_date, GROUP_CONCAT(created_time) 
FROM fingerprint
GROUP BY created_date

Technology News @ www.JassimRahma.com


modified 15-Oct-15 12:52pm.

AnswerRe: Move GROUP_CONCAT's comma values to columns Pin
Jassim Rahma15-Oct-15 9:02
Jassim Rahma15-Oct-15 9:02 
GeneralRe: Move GROUP_CONCAT's comma values to columns Pin
Jassim Rahma24-Oct-15 2:28
Jassim Rahma24-Oct-15 2:28 
QuestionFilling many to many rel table using Select statement Pin
indian14314-Oct-15 8:18
indian14314-Oct-15 8:18 
AnswerRe: Filling many to many rel table using Select statement Pin
Mycroft Holmes14-Oct-15 13:50
professionalMycroft Holmes14-Oct-15 13:50 
GeneralRe: Filling many to many rel table using Select statement Pin
KDGOLE14-Oct-15 22:27
KDGOLE14-Oct-15 22:27 
GeneralRe: Filling many to many rel table using Select statement Pin
indian14317-Oct-15 7:17
indian14317-Oct-15 7:17 
GeneralRe: Filling many to many rel table using Select statement Pin
indian14319-Oct-15 11:30
indian14319-Oct-15 11:30 
QuestionGet check time from separate fields in Microsoft SQL Server Pin
Jassim Rahma14-Oct-15 1:11
Jassim Rahma14-Oct-15 1:11 
AnswerRe: Get check time from separate fields in Microsoft SQL Server Pin
Mycroft Holmes14-Oct-15 2:11
professionalMycroft Holmes14-Oct-15 2:11 
GeneralRe: Get check time from separate fields in Microsoft SQL Server Pin
Chris Quinn14-Oct-15 3:30
Chris Quinn14-Oct-15 3:30 
GeneralRe: Get check time from separate fields in Microsoft SQL Server Pin
Richard Deeming14-Oct-15 3:47
mveRichard Deeming14-Oct-15 3:47 
GeneralRe: Get check time from separate fields in Microsoft SQL Server Pin
Chris Quinn14-Oct-15 3:50
Chris Quinn14-Oct-15 3:50 
QuestionInsert within Select Statement Pin
indian14313-Oct-15 8:50
indian14313-Oct-15 8:50 
AnswerRe: Insert within Select Statement Pin
Richard Deeming13-Oct-15 9:43
mveRichard Deeming13-Oct-15 9:43 
GeneralRe: Insert within Select Statement Pin
indian14313-Oct-15 9:58
indian14313-Oct-15 9:58 
GeneralRe: Insert within Select Statement Pin
indian14313-Oct-15 11:28
indian14313-Oct-15 11:28 
AnswerRe: Insert within Select Statement Pin
Mycroft Holmes13-Oct-15 23:55
professionalMycroft Holmes13-Oct-15 23: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.