• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 503
  • Last Modified:

How to get the last tuple only by SQL?

I have built a table called "Orders" in Access.

I want to use an SQL statement to get the last record of the "Orders", how can I do that?

The primary key of the "Orders" is order_no and its type is text.
0
chuyan
Asked:
chuyan
1 Solution
 
cymbolicCommented:
"Select max(Order_no) from Orders"

then, using returned value

"Select * from Orders where Order_No = <value>

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now