×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I have been using this SQL set to generate a list of Ids for several years now. It has always worked with no issues.
Today when run in Run SQL scripts instead of producing sequence numbers in the range 01 to (number of rows in the result set) it is producing a crazy range of numbers.
No OS upgrade, no database PTFs applied that I can think of since the last time this ran correctly.
Anyone got any ideas on what could be causing this?
set schema = siddbv2;
drop sequence team_number;
create sequence team_number as int start
with 1 increment by 1;
select trim(firstname) || ' ' ||
trim(lastname) as name, 'SQLINTRO' || right( '0' || varchar( next value for team_number ), 2) as Team
from siddbv2.alumni a
inner join siddbv2.attendee b on a.regid = b.regid
where event = '1810SM' and
(atworkshp1 = 'WKS29' or atworkshp2 = 'WKS29') and
regType not in ('X', 'Z')
order by lastname, firstname;
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.