Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6992125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:35:38+00:00 2026-05-27T19:35:38+00:00

I have a table with engineer name and the date as a float. i

  • 0

I have a table with engineer name and the date as a float.

i did the following

select t.eng_id, t.createdat
from JOBS t 
where t.ENG_ID in (SELECT ENG_NAME From HOSEFLEX.ENGINEERS) 

which got me

1   bungle  40767.8305520833
2   bungle  40767.7657221412
3   Shaun   40825.6510914583
4   Shaun   40767.8287994213
5   Shaun   40825.6041891204
6   Shaun   40908.8024086458

i converted the float to a year month

select eng_id,
      TO_CHAR( to_date('12/30/1899', 'MM/DD/YYYY') + t.createdat , 'YYYY-MON')
from JOBS t

which got me

1   bungle  2011-AUG
2   bungle  2011-AUG
3   Shaun   2011-OCT
4   Shaun   2011-AUG
5   Shaun   2011-OCT
6   Shaun   2011-DEC

but what i want is a count of entries for each engineer per month

Eng Name  2011-Aug 2011-OCT 2011-DEC
bungle     2        0        0
Shaun      1        2   

and if its possible i would like to be able to set that start and end date to filter on

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:35:39+00:00Added an answer on May 27, 2026 at 7:35 pm

    Short answer — you can use group by on calculations. So you can use NVL and case/when as well as other calculations and functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this query: SELECT to_number(gr.code) group_index, gr.NAME group_name, f.*, gr.description gr_desc FROM obj$groups
I have table with 50 entries (users with such details like Name Surname Location
I have table rows of data in html being filled from a CGI application.
I have table with 3 columns A B C. I want to select *
I have table in data base name train delay, with columns train number(int), DelayTime(int),
I have a SQL query that is returning a table like the following: id
I have table data like this id id1 name 1 1 test1 1 1
I have the following tables: Category table which has an ID column, a description
I have table view navigation controller and the data is loaded from url. I
I have table: <table id=myTable class=tablesorter> <thead> <tr> <th>name</th> <th>secondname</th> <th>E-mail</th> <th>Salary</th> <th>web site</th>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.