﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / Finding min using over(order by) in sql server / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 04:51:49 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Finding min using over(order by) in sql server</title><link>http://www.sqlservercentral.com/Forums/Topic1422107-392-1.aspx</link><description>Cross Post[url]http://www.sqlservercentral.com/Forums/Topic1422113-391-1.aspx[/url]</description><pubDate>Wed, 20 Feb 2013 09:08:42 GMT</pubDate><dc:creator>Andy Hyslop</dc:creator></item><item><title>Finding min using over(order by) in sql server</title><link>http://www.sqlservercentral.com/Forums/Topic1422107-392-1.aspx</link><description>Hi All,I am trying to write a sql to find the minimum of a datasetselect ST.BG_DTTM,MIN(ST.BG_DTTM) over(ORDER BY ST.BG_DTTM) AS "Minim"fromtablename STbut it is giving me a error saying Error: Incorrect syntax near 'order'. (State:37000, Native Code: 66)any help is appreciated.Thanks,Sam.</description><pubDate>Wed, 20 Feb 2013 08:12:35 GMT</pubDate><dc:creator>sunder.mekala</dc:creator></item></channel></rss>