Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to get the last tuple only by SQL?

Posted on 1998-04-10
1
Medium Priority
?
500 Views
Last Modified: 2012-06-27
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
Comment
Question by:chuyan
1 Comment
 
LVL 9

Accepted Solution

by:
cymbolic earned 20 total points
ID: 1026264
"Select max(Order_no) from Orders"

then, using returned value

"Select * from Orders where Order_No = <value>

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question