Solved

MySQL equivalent Code for Access SQL

Posted on 2014-04-10
2
337 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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