display your age in months?
Answers were Sorted based on User's Feedback
Answer / sowmya makkena
select floor(months_between(sysdate,'22-mar-1995')) "age in months" from dual;
| Is This Answer Correct ? | 1 Yes | 0 No |
select trunc(months_between(sysdate,'22-mar-1995')/12) as age from dual;
| Is This Answer Correct ? | 0 Yes | 2 No |
What is column?
Is left join faster than inner join?
Differentiate pl/sql and sql?
What is the difference between alter trigger and drop trigger statements?
What is sql comments?
Wat is SGA ?
What are system versioned tables?
Is t sql a programming language?
declare v_count number(8,3); v_sal scott.emp.sal%type := '&P_sal'; cursor cur_name is select sal from scott.emp where sal between (v_sal-100) and (v_sal +1000); begin v_count :=nvl(sql%rowcount ,0); if v_count = 0 then dbms_output.put_line('no records are fetch in the given sal range'); else dbms_output.put_line('There is/are '||to_char(v_count)|| ' salaries are selected in the given range '); end if; end; in the above programm .....for any sal range ....always it shows the following message.. no records are fetch in the given sal range please find the mistake and share with me...with thansk and regards..sarao....
Types of joins ?
What are different types of joins ?
In a table i have columns A,B,C and i have a composite index on columns A,B if so will the following query uses index or not? SELECT sal,name FROM <table_name> WHERE A=<value> AND B=<value> AND C=<value>;
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)