Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL - Server Syntax
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL - Server Syntax
Divers
Thread ID:
00509301
Message ID:
00509301
Vues:
54
Hi guys,

I have 2 tables in sql server.

Sales,Storedetails

** In VFp I would write
select sum(sales.qty),sum(sales.dollarvalue),storedetails.name,sales.store;
from sales,storedetails;
where sales.store = storedetails.store;
group by sales.store

If I try the same syntax in SQL-Server I get an error..
Storedetails is not involved in an aggregate.. How do I get around this problem in SQL - Server..
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform