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
 General SQL Server Forums
 New to SQL Server Programming
 New to programming in TSQL help

Author  Topic 

NightCat
Starting Member

1 Post

Posted - 2014-07-09 : 17:10:50
Hi all,

I'm hoping someone can help as I'm clueless :)

I'm looking for some TSQL script that filters the method field by A, except for the latest date which I need to filter by B. The script is run each month so the latest date varies each run.

Date method
01/05/2013 A
01/05/2013 B
01/05/2013 C
01/05/2013 D
02/05/2013 A
02/05/2013 B
02/05/2013 C
02/05/2013 D
03/05/2013 A
03/05/2013 B
03/05/2013 C
03/05/2013 D
07/08/2014 A
07/08/2014 B
05/09/2014 A
05/09/2014 B


Many thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-07-09 : 18:13:11
http://www.sqlservercentral.com/articles/Best+Practices/61537/

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -