Re: [firebird-support] Get records based on the third portion of a version string

2015-05-11 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

Re: [firebird-support] Get records based on the third portion of a version string

2015-05-10 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

[firebird-support] Get records based on the third portion of a version string

2015-05-10 Thread venussof...@gmail.com [firebird-support]
Hi all I was wondering if there was a way to get a portion of a string based on a separator character. What I needed to do was want to bring out a part of the version number. 1.23.456.789 I want to get just the third portion, 456. So I could query on strings that have a version number with

Re: [firebird-support] Get records based on the third portion of a version string

2015-05-10 Thread LtColRDSChauhan rdsc1...@gmail.com [firebird-support]
Please try : SET TERM !! ; alter PROCEDURE SP_VERSION_NOS( PORTION smallint, SEPARATOR char, EARLIER_TO integer) RETURNS ( VERSION_NO varchar(80) ) AS declare variable i smallint; declare variable SEPARATOR_POS Integer; declare variable VERSION_PORTION varchar(80); declare

Re: [firebird-support] Get records based on the third portion of a version string

2015-05-10 Thread LtColRDSChauhan rdsc1...@gmail.com [firebird-support]
Please check this : SET TERM ^ ; ALTER PROCEDURE SP_VERSION_NOS ( PORTION smallint, SEPARATOR char(1), VERSION_UPTO varchar(80) ) RETURNS ( VERSION_NO varchar(80) ) AS declare variable i smallint; declare variable SEPARATOR_POS Integer; declare variable VERSION_UPTO_PORTION_INT

Re: [firebird-support] Get records based on the third portion of a version string

2015-05-10 Thread Venus Software Operations venussof...@gmail.com [firebird-support]