| |

VerySource

 Forgot password?
 Register
Search
View: 594|Reply: 3

Painful me, asking a rookie question, a question about SQL statements

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-23 12:30:01
| Show all posts |Read mode
I have a data sheet about video on demand

I want to sort in descending order by click-through rate, movie names don't show duplicate names
CTR field is FClick
Movie name field is FName
The name of the data table is: Film

I wrote this: select top 3 FName, FClick From Film by Group FName order By FClick DESC

An error occurred while configuring SQL in the data adapter of the VS.NET environment, please help
Reply

Use magic Report

0

Threads

29

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-5 23:30:01
| Show all posts
select top 3 FName, FClick From Film Group by FName order By FClick DESC
The previous by and group swap
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-5-6 12:30:02
| Show all posts
SELECT DISTINCT TOP (3) FName, FClick
FROM Film
GROUP BY FName
ORDER BY FClick DESC
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-5-13 15:00:01
| Show all posts
Thank youweh007and苹果小刀
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