Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate field with the same conditions
Message
 
To
02/03/2011 14:23:00
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01502373
Message ID:
01502375
Views:
45
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform