Mysql queries all rows whose maximum time is one of the three conditions.

Source: Internet
Author: User
Tags dell xps 13 dell xps xps 13
The table structure of all rows whose Mysql queries meet the following conditions: SELECT & nbsp; * & nbsp; FROM & nbsp; table & nbsp; WHERE & nbsp; dtime & nbsp; (select & nbsp; max (dtime) & nbsp; from & nbsp; final) & nbsp; and & nbsp; custome Mysql queries all rows that meet three conditions, one of which is the maximum time
The table structure is as follows:


Query statement:
SELECT * FROM table WHERE dtime = (select max (dtime) from final) and customer = 'test' AND nbname = 'Dell XPS 13'
No query is available.

However, after the dtime = (...) section in where is removed, the result is displayed.
After this section is added, no results will be matched.
How to modify it.
------ Solution ----------------------
Let's see what the select max (dtime) from final gets?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.