Solved

MySQL equivalent Code for Access SQL

Posted on 2014-04-10
2
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 35

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 35

Expert Comment

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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