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

  • When Valid SQL Was Still the Wrong Answer
  • Keeping AI-Powered BI Honest: A Human-in-the-Loop (HITL) Playbook
  • From Open SQL to CDS Views: Rewriting SAP Data Access for Performance at Scale
  • Rust-Native Alternatives to Spark SQL and DataFrame Workloads

Trending

  • Fix the Target, Precompute Once: A Backend-Free Word-Ladder Solver With a BFS Distance Field
  • Mastering Fluent Bit: Beginners' Guide for Contributing to Our CNCF Project Website
  • Solving Data Traffic Jams in Your Network
  • Amazon Quick: AWS's Agentic Workspace, Explained for Engineers
  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

  • When Valid SQL Was Still the Wrong Answer
  • Keeping AI-Powered BI Honest: A Human-in-the-Loop (HITL) Playbook
  • From Open SQL to CDS Views: Rewriting SAP Data Access for Performance at Scale
  • Rust-Native Alternatives to Spark SQL and DataFrame Workloads

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