Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing 100th, 200th, 300th ... records in keyfield orde
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00675545
Message ID:
00675716
Vues:
9
You can first select into a temp table to get required order and assign seq. numbers using IDENTITY column.
drop table #temp
create table #temp (
	SeqNum int IDENTITY(1, 1), 
	FirstName varchar(32) NOT NULL)
INSERT INTO #temp (FirstName) SELECT FirstName FROM Employees ORDER BY FirstName
SELECT * FROM #temp 
	WHERE ((SeqNum) % 100) = 1
>I want to provide hotlinks titled something like:
>"001 Anne, 101 Henry, 201 Nancy... " where Anne, Henry and Nancy are the 1st, 101st, 201st ... etc entries in the table when considered in FirstName Order.
>How can I easly construct this string with the data in a SQL server Table.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform