Click here to Skip to main content
15,886,110 members
Home / Discussions / Database
   

Database

 
AnswerRe: Sql Server DataBase Pin
Chris Quinn3-Nov-15 0:32
Chris Quinn3-Nov-15 0:32 
AnswerRe: Sql Server DataBase Pin
RNA Team3-Nov-15 21:02
RNA Team3-Nov-15 21:02 
GeneralRe: Sql Server DataBase Pin
Mycroft Holmes3-Nov-15 21:15
professionalMycroft Holmes3-Nov-15 21:15 
GeneralRe: Sql Server DataBase Pin
RNA Team3-Nov-15 21:50
RNA Team3-Nov-15 21:50 
GeneralRe: Sql Server DataBase Pin
Mycroft Holmes4-Nov-15 12:57
professionalMycroft Holmes4-Nov-15 12:57 
QuestionRows as column using Pivot but with multiple rows and Column Pin
indian14330-Oct-15 3:55
indian14330-Oct-15 3:55 
AnswerRe: Rows as column using Pivot but with multiple rows and Column Pin
Chris Quinn30-Oct-15 5:43
Chris Quinn30-Oct-15 5:43 
AnswerRe: Rows as column using Pivot but with multiple rows and Column Pin
indian14330-Oct-15 5:44
indian14330-Oct-15 5:44 
I have Printed the dynamic query, it is as below. But same thing how to get that ServiceLevel from the below query, it is printing only Service id for each column in a row, but I want Service Level also in another row, can't we do it? Any sort of help would be very very helpful, please help me I am also trying my best. Thanks in advance.
SELECT [Cartilage Regeneration],[Foot and Ankle Care],[Hand, Wrist and Elbow Care],[Hip Care],[Joint Replacement],[Knee Care],
[Orthopedic Trauma Surgery],[Pediatric Orthopedics],[Shoulder Care],[Sports Medicine],[Tendon and Ligament Repair] from 
             (
                select  ServiceLevel, ServiceId, Name
                from [Service]             
            ) x 
            pivot 
            (
                max(ServiceId)
                for Name in ([Cartilage Regeneration],[Foot and Ankle Care],[Hand, Wrist and Elbow Care],[Hip Care],[Joint Replacement],
                [Knee Care],[Orthopedic Trauma Surgery],[Pediatric Orthopedics],[Shoulder Care],[Sports Medicine],[Tendon and Ligament Repair])
            )
             p 
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

AnswerRe: Rows as column using Pivot but with multiple rows and Column Pin
RNA Team30-Oct-15 19:23
RNA Team30-Oct-15 19:23 
AnswerRe: Rows as column using Pivot but with multiple rows and Column Pin
sandeepmittal118-Nov-15 0:04
sandeepmittal118-Nov-15 0:04 
GeneralRe: Rows as column using Pivot but with multiple rows and Column Pin
Richard Deeming9-Nov-15 2:01
mveRichard Deeming9-Nov-15 2:01 
GeneralRe: Rows as column using Pivot but with multiple rows and Column Pin
sandeepmittal119-Nov-15 19:25
sandeepmittal119-Nov-15 19:25 
QuestionError in IF statement in MySQL Pin
Jassim Rahma29-Oct-15 4:31
Jassim Rahma29-Oct-15 4:31 
AnswerRe: Error in IF statement in MySQL Pin
Eddy Vluggen29-Oct-15 5:08
professionalEddy Vluggen29-Oct-15 5:08 
AnswerRe: Error in IF statement in MySQL Pin
Wombaticus29-Oct-15 5:45
Wombaticus29-Oct-15 5:45 
QuestionGet all Tables which have Duplicate values on Columns Name and Description Pin
indian14328-Oct-15 14:09
indian14328-Oct-15 14:09 
AnswerRe: Get all Tables which have Duplicate values on Columns Name and Description Pin
Jörgen Andersson28-Oct-15 22:31
professionalJörgen Andersson28-Oct-15 22:31 
GeneralRe: Get all Tables which have Duplicate values on Columns Name and Description Pin
indian14329-Oct-15 8:29
indian14329-Oct-15 8:29 
AnswerRe: Get all Tables which have Duplicate values on Columns Name and Description Pin
RNA Team30-Oct-15 20:13
RNA Team30-Oct-15 20:13 
QuestionLoad data from Excel which has columns in multiple rows Pin
indian14328-Oct-15 4:08
indian14328-Oct-15 4:08 
AnswerRe: Load data from Excel which has columns in multiple rows Pin
Richard MacCutchan28-Oct-15 7:18
mveRichard MacCutchan28-Oct-15 7:18 
GeneralRe: Load data from Excel which has columns in multiple rows Pin
indian14328-Oct-15 8:37
indian14328-Oct-15 8:37 
GeneralRe: Load data from Excel which has columns in multiple rows Pin
Richard Deeming28-Oct-15 10:05
mveRichard Deeming28-Oct-15 10:05 
GeneralRe: Load data from Excel which has columns in multiple rows Pin
indian14328-Oct-15 11:02
indian14328-Oct-15 11:02 
QuestionUse column output, to get new column Pin
Karan_TN27-Oct-15 19:54
Karan_TN27-Oct-15 19:54 

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.