Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Having without Group By

$
0
0

We are converting from Sybase to SQL Server and we have several instances in our code that use Having without a group by and we are getting errors at runtime when we run the code.

Example

SELECT Col1, Col2

  FROM table_name

 WHERE ProcessedSw = 'N'

HAVING Col1 = Min(Col1)

Any help would be appreciated.

Thanks



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>