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

  • SEARCH
  • Home
  • 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 6888187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:58:45+00:00 2026-05-27T05:58:45+00:00

I am writing a Log Viewer,that will be able to show logs between two

  • 0

I am writing a Log Viewer,that will be able to show logs between two dates.
Currently, i am using a:

SELECT DISTINCT DATETIME FROM EVENTSGENERAL A JOIN EVENTSGENERATORS B ON B.GENERATOR_ =    A.GENERATOR_ ;

But it returns too many values of each day for example,since the precision of OADATE used,is set to Miliseconds.

How do i select Only One Value per Day?
For example,if there are 100 rows of logs for day 1/January, Zero rows for days 2/January,3/January and 4/January, but 50 rows for day 5/January , how do i select : 1/January,5/January ?

I am using a firebird database,and C# / ASP.NET

Thanks in advance for any replies,and sorry about any bad english mistake

  • 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-27T05:58:45+00:00Added an answer on May 27, 2026 at 5:58 am

    You only want the date part so cast the timestamp to date:

    SELECT DISTINCT CAST(DATETIME as DATE) FROM ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing something that will allow users to search through a log of
I am writing some logs to the event log using the Microsoft enterprise library
I have a WCF service that is responsible for writing a log file. I
I'm writing an application that needs a log-like view, (similar to how an IM
I'm currently writing a simple .sh script to parse an Exim log file for
I'm interested in writing a log file analyzer that can determine the percentage of
Hey all, I am writing a logviewer application. These logs are between 100-200 megs
I am writing a log tail -f application using jQuery on the client side.
I'm writing a program that parses the log files of a Windows service. The
I'm writing a distributed system which logs directly to database (actual log files are

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.