Search
 
SCRIPT & CODE EXAMPLE
 

SQL

calcul age

SET SERVEROUTPUT ON
DECLARE
  --v_birthday_year         NUMBER(4)    := &v_birthday_year;
  v_dob                   DATE      := &v_dob 
  v_your_age              NUMBER(3, 1);
BEGIN
  v_your_age := TRUNC(MONTHS_BETWEEN(SYSDATE, v_dob))/12;  
  DBMS_OUTPUT.PUT_LINE ('Your age is ' || v_your_age);
END;
/
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql join table with a text columns with ids splited by char 
Sql :: how to install firebird 
Sql :: ALTER TABLE myTable RENAME CONSTRAINT PK_constraint to PK01_Constraint; 
Sql :: big table in mysql 
Sql :: dump only data 
Sql :: sql comparison operators 
Sql :: %ORACLE_HOME%database 
Sql :: mysql extract number from string 
Sql :: connect google bigquery connect using sqirrel 
Sql :: mysql sum per week 
Sql :: oracle sql developer closed connection 
Sql :: upload multipe databases mysql 
Sql :: replace sqlalchemy 
Sql :: closure in sql 
Sql :: pl sql turn off variable substitution 
Sql :: view psql output in horizontal scrolling 
Sql :: Update Multiple Values in a Row 
Sql :: psql check table fields 
Sql :: Shell Comands 
Sql :: MQL4 mql4 run ea on all symbols by adding to just one chart 
Sql :: SQL Deleting a View 
Sql :: select A from B join C as D using E where F match G order by H desc 
Sql :: downlaod database mysql workbench 
Sql :: mysql server create connection string 
Sql :: sql truncate number 
Sql :: find below average salary in sql 
Sql :: sql select statement 
Sql :: id sql 
Sql :: select all domains of database firbird 
Csharp :: unity scene load 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =