Click here to Skip to main content
15,901,205 members
Home / Discussions / Database
   

Database

 
GeneralRe: How SQL command queury the first character of a Name column from a MS Access database? Pin
Curious 20099-Mar-10 6:40
Curious 20099-Mar-10 6:40 
GeneralRe: How SQL command queury the first character of a Name column from a MS Access database? Pin
Luc Pattyn9-Mar-10 7:01
sitebuilderLuc Pattyn9-Mar-10 7:01 
GeneralRe: How SQL command queury the first character of a Name column from a MS Access database? Pin
Roger Wright9-Mar-10 18:38
professionalRoger Wright9-Mar-10 18:38 
GeneralRe: How SQL command queury the first character of a Name column from a MS Access database? Pin
Luc Pattyn10-Mar-10 2:36
sitebuilderLuc Pattyn10-Mar-10 2:36 
AnswerRe: How SQL command queury the first character of a Name column from a MS Access database? Pin
David Mujica9-Mar-10 5:47
David Mujica9-Mar-10 5:47 
GeneralRe: How SQL command queury the first character of a Name column from a MS Access database? Pin
Curious 20099-Mar-10 6:38
Curious 20099-Mar-10 6:38 
Questionsql select/grouping question Pin
djhankypark9-Mar-10 1:04
djhankypark9-Mar-10 1:04 
AnswerRe: sql select/grouping question [modified] Pin
Wayne Gaylard9-Mar-10 1:42
professionalWayne Gaylard9-Mar-10 1:42 
For a start I am just a little bit confused. If you wanted the top 10 most played songs, then surely it doesn't matter if 2 songs have been played the same amount of times. If you really want to do it this way, then you need to specify DISTINCT on your count_played field i.e SELECT DISTINCT countplayed, artist, title FROM ... etc Hope this helps

[EDIT]
To limit the resultset to the top 10 would depend on your database. SELECT TOP 10 ... would work with access and SQL Server, but with MySql you need to go SELECT DISTINCT count_played FROM songlist ORDER BY count_played DESC LIMIT 10
modified on Tuesday, March 9, 2010 8:18 AM

GeneralRe: sql select/grouping question Pin
djhankypark9-Mar-10 7:32
djhankypark9-Mar-10 7:32 
AnswerRe: sql select/grouping question Pin
Corporal Agarn9-Mar-10 6:07
professionalCorporal Agarn9-Mar-10 6:07 
GeneralRe: sql select/grouping question Pin
Corporal Agarn9-Mar-10 8:05
professionalCorporal Agarn9-Mar-10 8:05 
GeneralRe: sql select/grouping question Pin
djhankypark26-Mar-10 23:50
djhankypark26-Mar-10 23:50 
GeneralRe: sql select/grouping question Pin
Corporal Agarn29-Mar-10 0:43
professionalCorporal Agarn29-Mar-10 0:43 
QuestionUpdate a date/time field through VB. net Pin
Johnkokk8-Mar-10 23:57
Johnkokk8-Mar-10 23:57 
AnswerRe: Update a date/time field through VB. net Pin
Johnkokk9-Mar-10 0:11
Johnkokk9-Mar-10 0:11 
QuestionHelp with access query Pin
sarang_k8-Mar-10 18:18
sarang_k8-Mar-10 18:18 
AnswerRe: Help with access query Pin
Mycroft Holmes8-Mar-10 18:53
professionalMycroft Holmes8-Mar-10 18:53 
GeneralRe: Help with access query Pin
_Damian S_8-Mar-10 18:55
professional_Damian S_8-Mar-10 18:55 
AnswerRe: Help with access query Pin
_Damian S_8-Mar-10 18:54
professional_Damian S_8-Mar-10 18:54 
AnswerRe: Help with access query Pin
riced8-Mar-10 22:43
riced8-Mar-10 22:43 
QuestionCreating multiple sql stored procedures from vb .net Pin
iramirezp8-Mar-10 5:54
iramirezp8-Mar-10 5:54 
AnswerRe: Creating multiple sql stored procedures from vb .net Pin
Not Active8-Mar-10 6:19
mentorNot Active8-Mar-10 6:19 
GeneralRe: Creating multiple sql stored procedures from vb .net Pin
iramirezp8-Mar-10 6:50
iramirezp8-Mar-10 6:50 
AnswerRe: Creating multiple sql stored procedures from vb .net Pin
RCoate8-Mar-10 13:28
RCoate8-Mar-10 13:28 
GeneralRe: Creating multiple sql stored procedures from vb .net Pin
iramirezp9-Mar-10 7:50
iramirezp9-Mar-10 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.