Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
GaneshRamanan
Starting Member
40 Posts |
Posted - 2011-01-25 : 13:10:34
|
| Can any one pls GUIDE Me to get the output like thispmrid Patientid Bp Value Date1 1 null 10 2011/01/012 1 90 2 2011/01/023 1 80 3 2011/01/03I need the output Parameter PATIENID DATEBP 1 2011/01/01BP 1 2011/01/02BP 1 2011/01/03Thanks,Ganesh |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-01-25 : 13:50:47
|
| Select 'BP',PatientID,DateFrom yourTable JimEveryday I learn something that somebody else already knew |
 |
|
|
Lamprey
Master Smack Fu Yak Hacker
4614 Posts |
Posted - 2011-01-25 : 13:56:37
|
quote: Originally posted by jimf Select 'BP' AS Parameter,PatientID,DateFrom yourTable JimEveryday I learn something that somebody else already knew
|
 |
|
|
GaneshRamanan
Starting Member
40 Posts |
Posted - 2011-01-25 : 14:06:06
|
| ROWId EMPID VALUE VALUE2 date2 3 10.00 NULL 2011-01-21 00:00:00.0003 3 10.00 NULL 2011-01-21 00:00:00.0004 3 10.00 NULL 2011-01-21 00:00:00.0005 3 10.00 NULL 2011-01-21 00:00:00.0006 3 10.00 NULL 2011-01-22 00:00:00.0007 15 10.00 NULL 2011-01-22 00:00:00.0008 15 10.00 NULL 2011-01-22 00:00:00.0009 15 10.00 NULL 2011-01-22 00:00:00.00010 15 10.00 NULL 2011-01-22 00:00:00.00011 15 10.00 NULL 2011-01-22 00:00:00.000I need output for this table Parameter ROWID EMPid dateVALUE 2 3 2011/01/22VALUE 3 3 2011/01/22VALUE 4 3 2011/01/22VALUE 5 3 2011/01/22VALUE 6 3 2011/01/22VALUE2 7 15 2011/01/22VALUE2 7 15 2011/01/22VALUE2 7 15 2011/01/22VALUE2 7 15 2011/01/22 |
 |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-01-25 : 14:20:36
|
| Let the games begin! I'm guessing that you want to return certain records based on a parameter sent in to a stored procedure?JimEveryday I learn something that somebody else already knew |
 |
|
|
GaneshRamanan
Starting Member
40 Posts |
Posted - 2011-01-25 : 14:22:12
|
| YES, I PASSING PARAMETER ROWID,EMPID IN THE SP |
 |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2011-01-25 : 15:10:36
|
| And how are you passing them in? Passing in specific ROWIDs makes passing in EMPId pointless.JimEveryday I learn something that somebody else already knew |
 |
|
|
|
|
|