Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Top 1 using SQL or Single Row

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Top 1 using SQL or Single Row

    Hi, How can I return only the first row matching to the criteria
    Code

  • #2
    Top 1 using SQL or Single Row

    At the end of your select add FETCH FIRST ROW ONLY. The TOP 1 syntax that you have seen on other platforms is not standard SQL syntax its an extension used on that platform.

    Comment

    Working...
    X