Jump to content

Sql Exferts Ravali


Recommended Posts

Posted

oka column lo datatype (number 8,3) type undi .. andulo fractions values, interger values unay .. whole number oo kado ela check cheyali seppandi  bye1

  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

  • nenu_devudni

    16

  • Afdb_spider

    8

  • KharjuraNaidu

    7

  • 4Vikram

    6

Top Posters In This Topic

Posted

question malli adgu

check cheyadam enti? query and check how the values are

Posted

question malli adgu

oka table .. andulo oka column ..aa column data type = number(8,3) ... 

 

column lo sample values = 1, 0.5, 20, 100 ... ipudu aa col lo values fetching chestuna vuncle .. ipudu aa fetch chesina value .. whole number aa kada adi kanukovali ... ela how ? 

Posted

question malli adgu
check cheyadam enti? query and check how the values are


Automate ela ani
Posted

oka table .. andulo oka column ..aa column data type = number(8,3) ... 

 

column lo sample values = 1, 0.5, 20, 100 ... ipudu aa col lo values fetching chestuna vuncle .. ipudu aa fetch chesina value .. whole number aa kada adi kanukovali ... ela how ? 

 

find decimal point '.' in the field value, if the value doesn't have '.' then its a whole number(i guess assuming there wont be any values like 1.0, 1.00 etc).

Posted

find decimal point '.' in the field value, if the value doesn't have '.' then its a whole number(i guess assuming there wont be any values like 1.0, 1.00 etc).

deni oracle form lo use seyali vuncle .. regexp_like lantivi vadi "." kosam vethikithe .. buthulu thidutundi form ..  bye1

Posted

deni oracle form lo use seyali vuncle .. regexp_like lantivi vadi "." kosam vethikithe .. buthulu thidutundi form ..  bye1

REGEX only string fields midane use cheyali ankunta man..

 

Nu chesedi ee field data type?

Posted

deni oracle form lo use seyali vuncle .. regexp_like lantivi vadi "." kosam vethikithe .. buthulu thidutundi form ..  bye1

 

calling SQL experts then

Posted

cast it as round of an integer

 

select cast(ROUND (col,0,1) as int) from tablename

Posted

you can use CEIL or FLOOR Functions too

Posted

Select Case when column_name = round(column_name) then 'whole_number'else 'mod_number' end as ne_good from table_name;

Posted

REGEX only string fields midane use cheyali ankunta man..

 

Nu chesedi ee field data type?

number(8,3)

 

 SELECT 'Y'
     INTO mul
     FROM DUAL
    WHERE REGEXP_LIKE (multiplier, '[._%-]');
 
ela try sesa vuncle .. "." unte .. Y ostadi lekapothe null ostadi ..danitoh i can find out ... but oracle form regexp_like use cheyanivatle ..
Posted

Select Case when column_name = round(column_name) then 'whole_number'else 'mod_number' end as ne_good from table_name;

apude anni whole numbers ee ossay ga vuncle ... nenu whole num ki convert seyatle vuncle ... whole num aa kada ani kanukuntuna .. 

Posted

apude anni whole numbers ee ossay ga vuncle ... nenu whole num ki convert seyatle vuncle ... whole num aa kada ani kanukuntuna ..


Solution sepna ardam seskoleni stage lo unavanmata..jpgif
×
×
  • Create New...