0

I'm writing a select statement,

I want to choose record which createdDateTime value is nearest.

For example

I want to choose second line, because it has max value.

How can i add this condition in my select statement?

Mumble
  • 141
  • 1
  • 8

1 Answers1

3

Please check the example below:

Table   table;
;

select firstOnly table
    order by table.createdDateTime desc;

Select Statement Syntax

Aliaksandr Maksimau
  • 2,251
  • 12
  • 21