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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How to get this query

Author  Topic 

ceema
Yak Posting Veteran

80 Posts

Posted - 2006-05-09 : 02:19:24
Hello,

I have one table- Marks with fileds

SchoolID,ClassID,RegNo,MarksObt

and Another table - Student with fileds

SchoolID,classID,RegNo.

Now in my Marks Table I am storing data like

SchoolID,ClassID,RegNo,MarksObt

Ab0 1 111 24
Ab0 1 111 34
Ab0 1 111 36
Ab0 1 222 27
Ab0 1 222 36

And in Student table

SchoolID, classID,RegNo.

Ab0 1 111
Ab0 1 222

My requirement is that

I ahve to getthe data like

Schoolid,regno,mark1,mark2,mark3

ab0 111 24 34 26
ab0 222 27 36

How could I do this

Thanks
Ceema



khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-05-09 : 02:26:24
this might help http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx


KH

Go to Top of Page

ceema
Yak Posting Veteran

80 Posts

Posted - 2006-05-09 : 06:52:10
Hello Khtan,
Thank you so much,

Ceema
Go to Top of Page

Uzaid
Starting Member

1 Post

Posted - 2006-05-11 : 06:30:25
You have not mention that you want to fetch the data from database or you want it to show in the reports.or output forms.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-05-11 : 06:42:44
In Crystal Reports, with the help of formula this can be done.

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -