Find Jobs
Hire Freelancers

I require _ONE_ SQL query - nothing more

$30-100 USD

Concluído
Publicado há mais de 17 anos

$30-100 USD

Pago na entrega
I have an online store selling video games and related items. I have a database with three tables - Stock, Orders, and Purchases. Stock contains a list of stock (category, description, price, etc.) whilst Orders contains customers details (name, address, etc.) Purchases is a joining table and allows an order to be associated with more than one item (so a customer can purchase more than one item in a single order). It also contains the quantity they have ordered. All very straight-forward so far. What I want is a single SQL query (for use in my ASP.NET site) which will return the 10 most often purchased games for one format (not including hardware), sorted by the number of times they've been purchased. I have tried to put this query together myself but I am no SQL expert and this is not a simple query. Here is what I have come up with so far but it returns a lot more than 10 results for some reason. SELECT TOP 10 [login to view URL], [login to view URL], COUNT(*) as Number_of_Purchases from Purchases as p INNER JOIN Stock AS s ON [login to view URL] = [login to view URL] WHERE Format = 'NES' AND Hardware = 0 GROUP BY [login to view URL], [login to view URL] ORDER BY COUNT(*) DESC Here are the relevant parts of the database so you can see what you'd be working with: [login to view URL] I am sure this will be a 10 minute job for someone who works with SQL regularly but I simply do not have the time to learn this advanced SQL. If you require any further information, please do not hesitate to contact me. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform ASP.NET 2.0 + Microsoft Access
ID do Projeto: 3821282

Sobre o projeto

12 propostas
Projeto remoto
Ativo há 18 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
See private message.
$4 USD em 2 dias
4,8 (10 avaliações)
2,9
2,9
12 freelancers estão ofertando em média $25 USD for esse trabalho
Avatar do Usuário
See private message.
$11,05 USD em 2 dias
5,0 (371 avaliações)
7,8
7,8
Avatar do Usuário
See private message.
$12,75 USD em 2 dias
5,0 (419 avaliações)
6,5
6,5
Avatar do Usuário
See private message.
$8,50 USD em 2 dias
5,0 (33 avaliações)
5,1
5,1
Avatar do Usuário
See private message.
$12,75 USD em 2 dias
4,5 (42 avaliações)
4,0
4,0
Avatar do Usuário
See private message.
$11,05 USD em 2 dias
4,9 (7 avaliações)
2,9
2,9
Avatar do Usuário
See private message.
$68 USD em 2 dias
5,0 (3 avaliações)
0,7
0,7
Avatar do Usuário
See private message.
$21,25 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
See private message.
$12,75 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
See private message.
$29,75 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
See private message.
$85 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
See private message.
$25,50 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
Bristol, United Kingdom
5,0
76
Membro desde mar. 16, 2011

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.