DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Scaling Row-Level Security With ABAC on Databricks Unity Catalog
  • Seeding Postgres When Your Schema Has Foreign-Key Cycles
  • Top 10 Best Places to Prepare for Your Next Data Engineer Interview
  • A Step-by-Step Guide to Implementing Columnar Tables in SQL Server

Trending

  • Jeffrey Microscope for Generating Flame Graphs in Java
  • Database Normalization, ACID Properties, and SCDs: A Comprehensive Guide
  • Building Offline-First iOS Applications with Local Data Storage
  • Machine Identity Debt: Why Human Identity Is No Longer Cloud Security's Primary Boundary
  1. DZone
  2. Data Engineering
  3. Databases
  4. Calcular A Idade Em SQL

Calcular A Idade Em SQL

By 
Erico Marineli user avatar
Erico Marineli
·
Sep. 13, 09 · Code Snippet
Likes (0)
Comment
Save
Tweet
Share
6.3K Views

Join the DZone community and get the full member experience.

Join For Free
Faz o cálculo da idade de uma pessoa utilizando sql oracle


Select Trunc ( (SYSDATE - to_date('14/07/1980','dd/mm/yyyy')) /365, 0 ) as "age" from Dual 
sql

Opinions expressed by DZone contributors are their own.

Related

  • Scaling Row-Level Security With ABAC on Databricks Unity Catalog
  • Seeding Postgres When Your Schema Has Foreign-Key Cycles
  • Top 10 Best Places to Prepare for Your Next Data Engineer Interview
  • A Step-by-Step Guide to Implementing Columnar Tables in SQL Server

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook