Solved

MySQL equivalent Code for Access SQL

Posted on 2014-04-10
2
334 Views
Last Modified: 2014-04-11
Say,

In VB Access I have query:
SELECT First(t0001001.Litres) AS FirstOfLitres
FROM t0001001
WHERE (((t0001001.Date)=#2/24/2014#) AND ((t0001001.Time)>=#4/10/2014 1:39:0#) AND ((t0001001.Probe)="000100101"));

What is the equivalent in
MySQL?
0
Comment
Question by:shaunwingin
  • 2
2 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39991808
Try this:
SELECT `litres` FROM t0001001
WHERE `date` = '2014-02-24' AND `time` >= '1:39:00' AND `Probe` = '000100101'
ORDER BY `litres`
LIMIT 1

Open in new window

HTH,
Dan
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39993476
Glad I could help!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query 26 64
SQL Server - Select Distinct and Count Rows for Each Distinct Row Returned 2 21
sql server insert 12 30
Help Required 3 97
If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

772 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