Hello,
I have a query result that looks like:
StudentID Student Name YOG SchoolYear
200001 YARITZA SANCHEZ 2012 2009
200001 YARITZA SANCHEZ 2012 2010
200002 RAFAEL ARRENDOL 2013 2009
200002 RAFAEL ARRENDOL 2013 2010
200004 SURIA BONILLA 2013 2010
200007 BRIANNA CHAVANNESSMIT 2014 2010
200050 AARON ISRAEL 2012 2009
If I use the following code StudentID 200050 gets cutoff. What am I doing wrong?
SELECT StudentID
, rtrim(First) + ' ' + rtrim(Last) As [Student Name]
, YOG
, SchoolYear
FROM @Student1
WHERE SchoolYear = (select max(SchoolYear) from @Student1)
Thank you!!
I have a query result that looks like:
StudentID Student Name YOG SchoolYear
200001 YARITZA SANCHEZ 2012 2009
200001 YARITZA SANCHEZ 2012 2010
200002 RAFAEL ARRENDOL 2013 2009
200002 RAFAEL ARRENDOL 2013 2010
200004 SURIA BONILLA 2013 2010
200007 BRIANNA CHAVANNESSMIT 2014 2010
200050 AARON ISRAEL 2012 2009
If I use the following code StudentID 200050 gets cutoff. What am I doing wrong?
SELECT StudentID
, rtrim(First) + ' ' + rtrim(Last) As [Student Name]
, YOG
, SchoolYear
FROM @Student1
WHERE SchoolYear = (select max(SchoolYear) from @Student1)
Thank you!!