Click here to Skip to main content
15,894,017 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server Database Access Pin
hariram2826-May-08 2:15
hariram2826-May-08 2:15 
GeneralRe: SQL Server Database Access Pin
Colin Angus Mackay26-May-08 4:13
Colin Angus Mackay26-May-08 4:13 
QuestionODBC ms access insertion problem via mfc Pin
elegantcharm24-May-08 9:06
elegantcharm24-May-08 9:06 
AnswerRe: ODBC ms access insertion problem via mfc Pin
Vaclav_25-May-08 7:54
Vaclav_25-May-08 7:54 
GeneralRe: ODBC ms access insertion problem via mfc Pin
elegantcharm27-May-08 9:21
elegantcharm27-May-08 9:21 
QuestionAn error has occurred while establishing a connection to the server. When connecting to SQL Server 2005 Pin
mr.mohsen23-May-08 21:17
mr.mohsen23-May-08 21:17 
QuestionSystem perfomance get down when i runthe local report through reporting services Pin
bhushi998123-May-08 20:20
bhushi998123-May-08 20:20 
QuestionSQL query Pin
Kartik Rathi23-May-08 20:11
Kartik Rathi23-May-08 20:11 
I am writing this query


select r.csno,CM.course_name,CTM.cat_name+','+r.sex+','+
(case when r.subcat_code='02'

then SCTM.subcat_name + '-' + c.ESM_Priority else SCTM.subcat_name end) as category,
max(r.rank) as maxrank
from registration r,
institute_master IM,course_master CM,category_master CTM,subcategory_master SCTM ,
candidate c
where r.inst_code!='000' and im.inst_code=r.inst_code
and c.roll_no=r.roll_no and c.subcat_code=r.subcat_code
and cm.course_code=r.course_code and ctm.cat_code=r.cat_code and
sctm.subcat_code=r.subcat_code
--and r.csno=@csno and r.inst_code=@inst_code
group by r.csno,r.inst_code,r.course_code,r.cat_code,r.subcat_code,r.sex,
CM.course_name,CTM.cat_name,SCTM.subcat_name,c.ESM_Priority
order by r.course_code,r.cat_code,r.subcat_code,r.sex

and the result of this query is
something like this

01 Computer Science & Engg. AIC,F,Others 33039.0
01 Computer Science & Engg. AIC,F,Others 11302.0
01 Computer Science & Engg. AIC,F,Others 35305.0
01 Computer Science & Engg. AIC,F,Others 7679.0
01 Computer Science & Engg. AIC,F,Others 63768.0
01 Computer Science & Engg. AIC,F,Others 41363.0
01 Computer Science & Engg. AIC,F,Others 58615.0
01 Computer Science & Engg. AIC,F,Others 56984.0
01 Computer Science & Engg. AIC,F,Others 66286.0
01 Computer Science & Engg. AIC,F,Others 22362.0
01 Computer Science & Engg. AIC,F,Others 43684.0
01 Computer Science & Engg. AIC,F,Others 88502.0
01 Computer Science & Engg. AIC,F,Others 75349.0
01 Computer Science & Engg. AIC,F,Others 79841.0
01 Computer Science & Engg. AIC,F,Others 78248.0
01 Computer Science & Engg. AIC,F,Others 53999.0
01 Computer Science & Engg. AIC,F,Others 17456.0
01 Computer Science & Engg. AIC,F,Others 100834.0
01 Computer Science & Engg. AIC,F,Others 93685.0
01 Computer Science & Engg. AIC,F,Others 31434.0
01 Computer Science & Engg. AIC,F,Others 30982.0
01 Computer Science & Engg. AIC,F,Others 64501.0
01 Computer Science & Engg. AIC,F,Others 38245.0
01 Computer Science & Engg. AIC,F,Others 44901.0
01 Computer Science & Engg. AIC,F,Others 75336.0
01 Computer Science & Engg. AIC,F,Others 95223.0
01 Computer Science & Engg. AIC,F,Others 79918.0
01 Computer Science & Engg. AIC,F,Others 22798.0
01 Computer Science & Engg. AIC,F,Others 59257.0
01 Computer Science & Engg. AIC,F,Others 69944.0
01 Computer Science & Engg. AIC,F,Others 31593.0
01 Computer Science & Engg. AIC,F,Others 89065.0
01 Computer Science & Engg. AIC,F,Others 41946.0
01 Computer Science & Engg. AIC,F,Others 55956.0
01 Computer Science & Engg. AIC,F,Others 62812.0
01 Computer Science & Engg. AIC,F,Others 105264.0
01 Computer Science & Engg. AIC,F,Others 58567.0
01 Computer Science & Engg. AIC,F,Others 39512.0
01 Computer Science & Engg. AIC,F,Others 88404.0
01 Computer Science & Engg. AIC,F,Others 29413.0
01 Computer Science & Engg. AIC,F,Others 110726.0
01 Computer Science & Engg. AIC,F,Others 29939.0
01 Computer Science & Engg. AIC,F,Others 101460.0
01 Computer Science & Engg. AIC,F,Others 63403.0
01 Computer Science & Engg. AIC,F,Others 79171.0
01 Computer Science & Engg. AIC,F,Others 120370.0
01 Computer Science & Engg. AIC,F,Others 106321.0
01 Computer Science & Engg. AIC,F,Others 100908.0
01 Computer Science & Engg. AIC,F,Others 131467.0
01 Computer Science & Engg. AIC,F,Others 115509.0
01 Computer Science & Engg. AIC,F,Others 103949.0
01 Computer Science & Engg. AIC,F,Others 95519.0
01 Computer Science & Engg. AIC,F,Others 123022.0
01 Computer Science & Engg. AIC,F,Others 136771.0
01 Computer Science & Engg. AIC,F,Others 112522.0
01 Computer Science & Engg. AIC,F,Others 211598.0
02 Computer Science & Engg. AIC,F,Others 50449.0
02 Computer Science & Engg. AIC,F,Others 18078.0
02 Computer Science & Engg. AIC,F,Others 74740.0
02 Computer Science & Engg. AIC,F,Others 12867.0
02 Computer Science & Engg. AIC,F,Others 54947.0
02 Computer Science & Engg. AIC,F,Others 124523.0
02 Computer Science & Engg. AIC,F,Others 86040.0
02 Computer Science & Engg. AIC,F,Others 81094.0
02 Computer Science & Engg. AIC,F,Others 32750.0
02 Computer Science & Engg. AIC,F,Others 46014.0
02 Computer Science & Engg. AIC,F,Others 135872.0
02 Computer Science & Engg. AIC,F,Others 104810.0
02 Computer Science & Engg. AIC,F,Others 134683.0
02 Computer Science & Engg. AIC,F,Others 125076.0
02 Computer Science & Engg. AIC,F,Others 85418.0
02 Computer Science & Engg. AIC,F,Others 20628.0
02 Computer Science & Engg. AIC,F,Others 136908.0
02 Computer Science & Engg. AIC,F,Others 157406.0
02 Computer Science & Engg. AIC,F,Others 32246.0
02 Computer Science & Engg. AIC,F,Others 47138.0
02 Computer Science & Engg. AIC,F,Others 74428.0
02 Computer Science & Engg. AIC,F,Others 42476.0
02 Computer Science & Engg. AIC,F,Others 71440.0
02 Computer Science & Engg. AIC,F,Others 121619.0
02 Computer Science & Engg. AIC,F,Others 161855.0
02 Computer Science & Engg. AIC,F,Others 133762.0
02 Computer Science & Engg. AIC,F,Others 34453.0
02 Computer Science & Engg. AIC,F,Others 67582.0
02 Computer Science & Engg. AIC,F,Others 106875.0
02 Computer Science & Engg. AIC,F,Others 99424.0
02 Computer Science & Engg. AIC,F,Others 67169.0
02 Computer Science & Engg. AIC,F,Others 72990.0
02 Computer Science & Engg. AIC,F,Others 121548.0
02 Computer Science & Engg. AIC,F,Others 134975.0
02 Computer Science & Engg. AIC,F,Others 81303.0
02 Computer Science & Engg. AIC,F,Others 82506.0
02 Computer Science & Engg. AIC,F,Others 116105.0
02 Computer Science & Engg. AIC,F,Others 40175.0
02 Computer Science & Engg. AIC,F,Others 145820.0
02 Computer Science & Engg. AIC,F,Others 85772.0
02 Computer Science & Engg. AIC,F,Others 127614.0
02 Computer Science & Engg. AIC,F,Others 95483.0
02 Computer Science & Engg. AIC,F,Others 77450.0
02 Computer Science & Engg. AIC,F,Others 159026.0
02 Computer Science & Engg. AIC,F,Others 130038.0
02 Computer Science & Engg. AIC,F,Others 118117.0
02 Computer Science & Engg. AIC,F,Others 140501.0
02 Computer Science & Engg. AIC,F,Others 138995.0
02 Computer Science & Engg. AIC,F,Others 119339.0
02 Computer Science & Engg. AIC,F,Others 137108.0
02 Computer Science & Engg. AIC,F,Others 152161.0
02 Computer Science & Engg. AIC,F,Others 160658.0
02 Computer Science & Engg. AIC,F,Others 139247.0
02 Computer Science & Engg. AIC,F,Others 151151.0
01 Computer Science & Engg. AIC,M,Others 26444.0

Now i want to get rid of course name.Like for 01, Computer Science & Engg. is showing multiple times.I want to show Computer Science & Engg. only one time for 01.

Kindly help me as early as possible.
AnswerRe: SQL query Pin
Mycroft Holmes24-May-08 23:54
professionalMycroft Holmes24-May-08 23:54 
QuestionWhats wrong in sql2005 Pin
AlexeiXX323-May-08 20:01
AlexeiXX323-May-08 20:01 
AnswerRe: Whats wrong in sql2005 Pin
Mycroft Holmes25-May-08 0:00
professionalMycroft Holmes25-May-08 0:00 
GeneralRe: Whats wrong in sql2005 Pin
AlexeiXX325-May-08 12:13
AlexeiXX325-May-08 12:13 
GeneralRe: Whats wrong in sql2005 Pin
AlexeiXX326-May-08 8:43
AlexeiXX326-May-08 8:43 
GeneralRe: Whats wrong in sql2005 Pin
Mycroft Holmes26-May-08 12:27
professionalMycroft Holmes26-May-08 12:27 
GeneralRe: Whats wrong in sql2005 Pin
AlexeiXX326-May-08 12:43
AlexeiXX326-May-08 12:43 
GeneralRe: Whats wrong in sql2005 Pin
Mycroft Holmes26-May-08 13:54
professionalMycroft Holmes26-May-08 13:54 
QuestionAny way to attach a timestamp/rowversion column only to selected columns? Pin
supercat923-May-08 14:24
supercat923-May-08 14:24 
QuestionFind Instances Pin
mehrdadc4823-May-08 10:42
mehrdadc4823-May-08 10:42 
AnswerRe: Find Instances Pin
Alsvha23-May-08 21:01
Alsvha23-May-08 21:01 
AnswerRe: Find Instances Pin
mr.mohsen23-May-08 21:22
mr.mohsen23-May-08 21:22 
QuestionUPDATE JOIN problem Pin
Kevin Brydon23-May-08 3:56
Kevin Brydon23-May-08 3:56 
AnswerRe: UPDATE JOIN problem Pin
Ashfield23-May-08 4:01
Ashfield23-May-08 4:01 
GeneralRe: UPDATE JOIN problem Pin
Kevin Brydon23-May-08 4:10
Kevin Brydon23-May-08 4:10 
AnswerRe: UPDATE JOIN problem Pin
Alsvha23-May-08 5:51
Alsvha23-May-08 5:51 
GeneralRe: UPDATE JOIN problem Pin
Kevin Brydon23-May-08 6:19
Kevin Brydon23-May-08 6:19 

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.