Reputation: 9
I got two columns for my regular table and I would like to know the latest record of each column, what SQL command should I use? The schema of the table is as follows:
Upvotes: -1
Views: 160
Reputation: 301
you can try
select last(c1) from tbname
this query will retun the last non-null value of c1
or you can try
select last_row() from tbname
the query will return the last row of the table no matter the column is null or not
Upvotes: 0