Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select ... top 10 ...
Message
De
24/02/1999 04:40:07
 
 
À
23/02/1999 15:47:01
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00189632
Message ID:
00190839
Vues:
14
Mike, thank you, I am glad that SQL Server 7.0 suports that syntax. The other day, after you gave me assurance that I can have both 6.5 and 7.0 on the same computer, I installed 7.0 desk top edition. I think I will stop reading "SQL for Dummies", read "SQL for Smarties" instead :)


>SQL Server 7.0 supports the same syntax. SQL Server 6.5 doesn't. The following query came from one of my favorite books: Joe Celko's SQL FOR SMARTIES: Advanced SQL Programming (ISBN: 1-55860-323-9) pg. 327
>
>SELECT DISTINCT COUNT(*), a.Salary
>FROM Employees a, Employee b
>WHERE a.salary <= b.salary
>GROUP BY a.salary
>HAVING COUNT(*) < 3
>
>You'll probably want to change the 3 to a 10.
>
>HTH
>
>-Mike
Chen Nan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform