Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Basic SQL Quest...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 10987 of 11205
Post > Topic >>

Basic SQL Question

by t8ntboy <t8ntboy@[EMAIL PROTECTED] > Apr 22, 2008 at 08:11 AM

I cannot figure out why this is not working.  For some reason the
following statement is yielding multiple records with the same CESAFID
eventhough it is supposed to be grouped.

The query is intended to find the most recent record status date
(GoStatusDate) and record status (GoStatus).

Please help!

SELECT     CESAFID, MAX(GoStatusDate) AS GoStatDate, GoStatus
FROM         dbo.Go_Report
GROUP BY CESAFID, GoStatus




 2 Posts in Topic:
Basic SQL Question
t8ntboy <t8ntboy@[EMAI  2008-04-22 08:11:07 
Re: Basic SQL Question
Iain Sharp <iains@[EMA  2008-04-22 16:26:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sat Jul 5 5:32:12 CDT 2008.