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 7502973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:04:04+00:00 2026-05-29T21:04:04+00:00

The task: I need to count every record in a table that was added

  • 0

The task:

I need to count every record in a table that was added after 07/01/2011.

Info:

There is a column in the table “Date_added” which is formatted as varchar and contains dates in format mm/dd/yyyy.

What I’ve tried:

I tried the following query:

SELECT count(date_added) FROM Abatements_Doc WHERE date_added >= '07/01/2011'

Unfortunately it counted any date where the month was greater than 07 regardless of the year or day. I’m at a loss as to how I should format my query to get it to read the dates properly instead of by ascii sort. In my research I discovered the CAST and CONVERT options, but am not sure how to use them, or which one I should use if any. I’m extremely new to SQL, and want to make sure I don’t mess up the data in the table. I just need to get the count as specified above without altering the data in the table in any way. Any help in this regard will be very much appreciated. 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-29T21:04:05+00:00Added an answer on May 29, 2026 at 9:04 pm

    I didn’t test. But try convert statement.

    SELECT count(date_added) 
    FROM Abatements_Doc 
    WHERE convert(datetime,date_added,1) >= convert(datetime,'07/01/2011',1)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a task I need to perform, do_stuff(opts) , that will take ~1s
I need to a script that will pull up the Task Manager in Vista
Why do we need Task.ContinueWith() method. Cannot we just write that continuation code inside
My application requires that a task is run everyday in which 100,000+ PDF (~
I need to perform a a task when there are some values in my
I have a rake task I need to run as a daily job on
I have a jQuery function already to perform the task I need but is
I have a task where I need to translate a DataTable to a two-dimensional
I'm newbie for python, I'm having task so I need to scan wifi and
I need to run a task in CruiseControl .NET before checking for modification in

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.