|
On 20 Mar 2013 17:19, CRPence wrote:
For the particular application, is there any reason the effect
could not or should not be a VIEW instead of a TABLE?
create view qtemp/F3003 as
with
cte_F3003 as
( select IREFFF, rand() as idx
from QGPL/F3003
order by idx
fetch first 380 rows only
)
select * from cte_F3003
<<SNIP>>
That's intriguing. Maybe. But what I do with the table/view may
prohibit use of a View.
I build up another SQL statement that includes multiple uses of an
external UDF to determine the format of the field's contents using
regular expressions.
Here's a truncated version...
select
count(*)
, sum(RegExpSrv(digits(FieldName),'regular expression'))
from qtemp/F3003
And the results are fetched into 'count' buckets...
Fetch C2 into :RecordCount :NullCount, :CountOne :NullCountOne;
What would change if I created the VIEW instead?
I would still refer to qtemp/F3003, correct?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.