Same solution as I posted earlier
Dave
---------------------------------------------------------------
This communication and the information it contains is intended for the person
or organisation to whom it is addressed. Its contents are confidential and may
be protected in law. If you have received this e-mail in error you must not
copy, distribute or take any action in reliance on it. Unauthorised use,
copying or disclosure of any of it may be unlawful. If you have received this
message in error, please notify us immediately by telephone or email.
Flexipol Packaging Ltd. has taken every reasonable precaution to minimise the
risk of virus transmission through email and therefore any files sent via
e-mail will have been checked for known viruses. However, you are advised to
run your own virus check before opening any
attachments received as Flexipol Packaging Ltd will not in any event accept any
liability whatsoever once an e-mail and/or any attachment is received.
It is the responsibility of the recipient to ensure that they have adequate
virus protection.
Flexipol Packaging Ltd.
Unit 14 Bentwood Road
Carrs
Industrial Estate
Haslingden
Rossendale
Lancashire
BB4 5HH
Tel:01706-222792
Fax: 01706-224683
www.Flexipol.co.uk
---------------------------------------------------------------
Terms & Conditions:
Notwithstanding delivery and the passing of risk in the goods, the property in
the goods shall not pass to the buyer until the seller
Flexipol Packaging Ltd. ("The Company") has received in cash or cleared funds
payment in full of the price of the goods and all other goods agreed to be sold
by the seller to the buyer for which payment is then due. Until such time as
the property in the goods passes to the buyer, the buyer shall hold the goods
as the seller's fiduciary agent and bailee and keep the goods separate from
those of the buyer and third parties and properly stored protected and insured
and identified as the seller's property but shall be entitled to resell or use
the goods in the ordinary course of its business. Until such time as the
property in the goods passes to the buyer the seller shall be entitled at any
time
-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Jürgen Wondzinski
Sent: 27 October 2017 10:41
To: 'ProFox Email List' <[email protected]>
Subject: WG: recno() function in tsql
Von: rafael.copquin [mailto:[email protected]]
Gesendet: Donnerstag, 26. Oktober 2017 22:09
An: Jürgen Wondzinski <[email protected]>
Betreff: RE: AW: AW: recno() function in tsql
That's it. Thank you
Rafael
Enviado desde mi dispositivo Samsung
-------- Mensaje original --------
De: Jürgen Wondzinski <mailto:[email protected]>
Fecha: 26/10/2017 12:18 (GMT-03:00)
A: 'Rafael Copquin' <mailto:[email protected]>
Asunto: AW: AW: recno() function in tsql
Hi Rafael,
ah, you want a freshly generated SEQUENCE number of your foundset.
See this:
https://stackoverflow.com/questions/13100000/how-can-i-create-a-temporary-sequence-column-in-my-sql-query-result
wOOdy
-----Ursprüngliche Nachricht-----
Von: Rafael Copquin [mailto:[email protected]]
Gesendet: Donnerstag, 26. Oktober 2017 17:09
An: Jürgen Wondzinski
Betreff: Re: AW: recno() function in tsql
Hi Woody
It's been a long time! Welcome back!
FYI, I always build all my tables with autoincrementing primary keys. In this
particular case the table I am dealing with has 10000 records. The primary keys
go from 1 to 10000.
But i want to select a small set based on a date range (it is a sales table)
I just want the first column of the selected cursor to contain the record
number and the other columns the rest of the data.
So I should be getting something like this:
RecordNo ID Date etc
1 5421 2017-06-15
2 5422 2017-06-15
3 5423 2017-06-16
etc
Rafael
El 26/10/2017 a las 12:00, Jürgen Wondzinski escribió:
> In SQL each record has to have a PrimaryKey (Field) for identifying it, since
> SQL doesn't know of records, it knows about result-sets instead.
>
> The RECNO() in xBase is just the same concept: a unique identifier for
> the current session, not meant for a longterm relation setting. If
> you designed your SQL table without a unique identifier, then you're
> out of luck :)
>
>
> wOOdy
>
> -----Ursprüngliche Nachricht-----
> Von: ProFox [mailto:[email protected]] Im Auftrag von Rafael
> Copquin
> Gesendet: Donnerstag, 26. Oktober 2017 16:34
> An: profox
> Betreff: recno() function in tsql
>
> Is there an equivalent to the VFP recno() function in T-SQL?
>
> I'd like to create the following select statement in T-SQL:
>
> select recno(),otherfields..... from database.dbo.table
>
> If there is not, what would be a substitute?
>
> Rafael Copquin
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.