User comments for the following queries are highly appreciated..
How does one compare data between 2 identical tables in DB2 ? In Oracle, one can use the minus option which is not there in DB2.
Posts Tagged ‘sql query’
Compare data between 2 identical tables in DB2
Posted in DB2, Oracle, tagged DB2, Oracle, sql query, sql query minus on May 3, 2008 | Leave a Comment »
Indian Currency Converter
Posted in SQL Server, tagged currency converter query, currency query, sql query on April 8, 2008 | Leave a Comment »
create or replace function spell_number( p_number in number ) return varchar2
as type myArray is table of varchar2(255);
l_str myArray := myArray( ”, ‘ thousand ‘, ‘ million ‘, ‘ billion ‘, ‘ trillion ‘, ‘ quadrillion ‘, ‘ quintillion ‘, ‘
sextillion ‘, ‘ septillion ‘, ‘ octillion ‘, ‘ nonillion ‘, ‘ decillion ‘, [...]
Tips about Stored Procedures
Posted in SQL Server, tagged sql query, sql table, stored procedure on April 8, 2008 | Leave a Comment »
To pass the parameter to stored procedure to get it executed at the run time,
param2 varchar2(50);
BEGIN keyword as param2 varchar2(50);
param2 := chr(39)||replace(param1,’,’,”’,”’)||chr(39);
select * from hr.employees where job in (param2);
as
select * from hr.employees where job in (param2)


