SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 connecting multiple table records and display on o
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

raokikun
Starting Member

8 Posts

Posted - 08/29/2011 :  02:48:05  Show Profile  Reply with Quote
this are the details im gonna use

P_ID (a primary key)
student number
full name or firstname,lastname? (which is better)
year level
semester
course
subject code
subject description
grade
remarks

my system would be aimed to.. display the current grade of the student for example he is 4thyear and in semester 2 right now.

then there will be a button or any step that would display all his grade starting from 1st year sem1,sem2 up to his present grade

is it possible. can anyone help me? it will be a great help

feel free to give hints,tips and advice regarding database making

visakh16
Very Important crosS Applying yaK Herder

India
47157 Posts

Posted - 08/29/2011 :  07:21:30  Show Profile  Reply with Quote
something like

select *
from
(
select row_Number() over (partition by fullname,course order by semester desc) as seq,columns..
from table
)t
order by fullname,course,seq

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/


Edited by - visakh16 on 08/29/2011 07:28:18
Go to Top of Page

jassi.singh
Posting Yak Master

122 Posts

Posted - 10/08/2011 :  09:48:32  Show Profile  Visit jassi.singh's Homepage  Reply with Quote
Hi, You can make a simple modification in previous message query i.e. instead of including fullname in partition by clause use studentnumber column of your table

Please mark answer as accepted if it helped you.

Thanks,
Jassi Singh
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47157 Posts

Posted - 10/08/2011 :  09:57:27  Show Profile  Reply with Quote
quote:
Originally posted by jassi.singh

Hi, You can make a simple modification in previous message query i.e. instead of including fullname in partition by clause use studentnumber column of your table

Please mark answer as accepted if it helped you.

Thanks,
Jassi Singh


what difference does it make?
Also whats the purpose of opening a thread now after almost 2 months?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000