This is my table.
create table ator(
numero_identidade varchar2(10) NOT NULL,
numero_ss varchar2(20) NOT NULL,
dt_nascimento date NOT NULL,
nacionalidade varchar2(20) NOT NULL,
nome_artistico varchar2(40),
sexo char(1) NOT NULL,
idade number(2,0) NOT NULL,
primary key (numero_identidade),
CONSTRAINT sexo_a check (sexo = 'F' or sexo = 'M'));
SELECT DATEDIFF(idade,GETDATE())/8766 AS AgeYearsIntTrunc
i have've seen this command on the internet but i don't understand how to use it.
how can i do that??