| |

VerySource

 Forgot password?
 Register
Search
View: 664|Reply: 2

Data query, showing the top few with the same value in a column

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

Post time: 2020-1-6 19:40:01
| Show all posts |Read mode
I want to find the date in a table that is within the limit, and then the value of the other column appears the most, and I don't know how to achieve it?
The table is for posting. I want to find the first few authors who posted the most on a specific date. How do I write it? I have written a good time, please master, thank you !!!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-6 23:51:01
| Show all posts
select author, count (*) as cou from table where betwenn start date and end date group by author
Reply

Use magic Report

0

Threads

24

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-10 00:27:01
| Show all posts
SELECT *
FROM
WHERE
BETWEEN
GROUP BY
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list