Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate field with the same conditions
Message
 
À
02/03/2011 14:23:00
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01502373
Message ID:
01502375
Vues:
46
This message has been marked as a message which has helped to the initial question of the thread.
Something like this?
SELECT		Member.FirstName,
		Member.LastName,
		Details.AddDate,
		Details.CountRecord
FROM		Member
Join		(
			Select		Order.NoMember,
					Max(Order.AddDate) as AddDate, 
					Count(*) as CountRecord
				FROM	Order
				GROUP	BY Order.NoMember
		) Details on Detais.NoMember = Member.Numero
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform