Here you go the complete package.
DDL
===============
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EN]')
and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[EN]
GO
CREATE TABLE [dbo].[EN] (
[STU_ID] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[TERM] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[CREDITS] [float] NULL ,
[ACTIVE_PROG] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[ACAD_LEVEL] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[STATUS] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[SCHOOL] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[LOCATION] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[AMOUNT] [money] NULL
) ON [PRIMARY]
GO
=========================
SAMPLE DATA
HERE IS THE SAMPLE DATA FOR THIS TABLE
1,2003RF,18,BFA.CMART.TVRAD,UG,R,ASCM,CI,9417.00
2,2003RS,18,BFA.CMART.TVRAD,UG,R,ASCM,CI,8740.00
3,2003RX,12,BFA.CMART.TVRAD,UG,T,ASCM,CI,6425.00
4,2003RF,17,BARCH.ARCH,UG,R,ARCH,OW,8763.00
5,2003RS,16,BARCH.ARCH,UG,R,ARCH,OW,8000.00
6,2003RX,9,BARCH.ARCH,UG,T,ARCH,OW,4825.00
7,2003RS,15,ND.UNDERGRADUATE,UG,R,,MA,7975.00
8,2003RX,5,ND.UNDERGRADUATE,UG,R,,MA,2725.00
9,2003RS,6,MS.INSTR,GR,R,EDPS,TEACH,1200.00
10,2003RX,3,MS.INSTR,GR,R,EDPS,TEACH,600.00
11,2003RF,13,BS.NURS,UG,R,AHLS,MA,8613.00
12,2003RS,17,BFA.FNART.CPGRP,UG,R,ASCM,OW,7975.00
13,2003RF,14,BS.LFSCI.OT,UG,R,AHLS,OW,8763.00
14,2003RS,15,BS.LFSCI.OT,UG,R,AHLS,OW,8000.00
15,2003RS,20,BFA.FNART.CPGRP,UG,R,ASCM,MA,9550.00
16,2003RS,20,BFA.FNART.CPGRP,UG,R,ASCM,MA,9550.00
17,2003RX,9,BFA.FNART.CPGRP,UG,R,ASCM,MA,4825.00
18,2003RS,3,MS.CMPSC,GR,R,ENGT,OW,2015.00
19,2003RF,15,BFA.DSGGP,UG,R,ASCM,MA,8613.00
20,2003RS,15,BFA.DSGGP,UG,R,ASCM,MA,7975.00
21,2003RF,11,MS.PT,GR,R,AHLS,OW,6878.00
22,2003RS,19,MS.PT,GR,R,AHLS,OW,11215.00
23,2003RF,18,BS.CMPSC,UG,R,ENGT,MA,9327.00
24,2003RS,15,BS.CMPSC,UG,R,ENGT,MA,8000.00
25,2003RX,9,BS.CMPSC,UG,R,ENGT,MA,4825.00
26,2003RF,17,BARCH.ARCH,UG,R,ARCH,MA,8763.00
27,2003RS,19,BARCH.ARCH,UG,R,ARCH,MA,9050.00
28,2003RX,8,BARCH.ARCH,UG,R,ARCH,MA,4300.00
29,2003RS,18,BPS.HSPMG,UG,R,EDPS,CI,8500.00
30,2003RS,15,BS.POLSC,UG,R,ASCM,OW,7975.00
[quoted text, click to view] "Louis Davidson sql@hotmail.com>" <dr<don'tspamme> wrote in message
news:ujNAC0ykDHA.2528@TK2MSFTNGP12.phx.gbl...
> Can you please post DDL an to your table so we can run queries against it.
> Then at the very least when the reply comes, the query will have been
tested
> to at least handle your minimal query (if not every possible case.) I
would
> have figured his solution worked. In any case:
>
> > > No luck.
> > > It didn't work
> > > Somwhere I feel this can be done, if it can sum the FullTime why it
> cannot
> > > sum up the PartTime into another column.
>
> This is not moving us in a direction that gets you closer to a solution.
At
> least post the results of you executing his query and show where it fails.
>
> --
> --------------------------------------------------------------------------
--
> -----------
> Louis Davidson (drsql@hotmail.com)
> Compass Technology Management
>
> Pro SQL Server 2000 Database Design
>
http://www.apress.com/book/bookDisplay.html?bID=266 >
> Note: Please reply to the newsgroups only unless you are
> interested in consulting services. All other replies will be ignored :)
>
> "Pavel S.Vorontsov" <li_bao_aka_poul@mail.ru> wrote in message
> news:1066200727.893416@papirus.ftc.ru...
> > Can you be please more distinguish? What is wrong with my solution?
> > "Abhi" <sourcecode116@hotmail.com> wrote in message
> > news:Oa4hhBukDHA.2432@TK2MSFTNGP10.phx.gbl...
> > > No luck.
> > > It didn't work
> > > Somwhere I feel this can be done, if it can sum the FullTime why it
> cannot
> > > sum up the PartTime into another column.
> > >
> > > Abhi
> > >
> > > "Pavel S.Vorontsov" <li_bao_aka_poul@mail.ru> wrote in message
> > > news:1066193352.296758@papirus.ftc.ru...
> > > > Hi!
> > > >
> > > > try this:
> > > >
> > > > select school, program, sum(case when Credits>=12 then 1 else 0 end)
> as
> > > > FullTime,
> > > > sum(case when Credits >= 12 then 0 else 1 end) as PartTime,
> > > > sum(case when Credits >= 12 then Amount else 0 end) as FT_Amount,
> > > > sum(case when Credits >= 12 then 0 else Amount end) as PT_Amount
> > > > from Table
> > > > group by school, program
> > > >
> > > >
> > > > "Abhi" <sourcecode116@hotmail.com> wrote in message
> > > > news:%23$yM6tskDHA.2528@TK2MSFTNGP12.phx.gbl...
> > > > > I am using SQL server 2K.
> > > > > I have a table
> > > > > ID,School,Program,Credits,Amount
> > > > >
> > > > > ID School Program Credits Amount
> > > > >
> > > > > 1 Eng BS.EE 12
> 100
> > > > > 2 Arch BS.Arch 14
> 200
> > > > > 3 FineArts BS.Arts 8
> > 300
> > > > > 4 Eng MS.Comp 18
> 1000
> > > > > 5 Med BS.DO 12
> > 4000
> > > > > 6 Eng BS.EE 14
> > > 100
> > > > > 7 Eng MS.Comp 12
> > > 1000
> > > > > 8 Arch BS.Arch 8
> > > 5000
> > > > > 9 Arch BS.Arch 14
> > > 1200
> > > > >
> > > > >
> > > > > Now my problem is I need to create a report which will have sum of
> all
> > > the
> > > > > credits students are regristered as FullTime(credits>=12) and also
> > > > PartTime
> > > > > (credits<12) and there respective Amount
> > > > >
> > > > > Eg.
> > > > >
> > > > > Report should look like this.
> > > > >
> > > > > School Program FullTime
> PartTime
> > > > > FT_Amount PT_Amount
> > > > > Eng BS.EE 26
> > > 0
> > > > > 200 0
> > > > > Eng MS.Comp 30
0
> > > > > 2000 0
> > > > > Arch BS.Arch 24
> 8
> > > > > 1400 5000
> > > > >
> > > > > so and so forth
> > > > >
> > > > > The idea is I want the sum of all the fullTime credtis and part
time
> > > > credits
> > > > > and there respective amount in one query.
> > > > >
> > > > > IS THIS POSSIBLE? IF NOT WHAT IS THE BEST WAY TO ACHIEVE THIS.
> > > > >
> > > > > Abhi
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>