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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:56:32+00:00 2026-05-22T01:56:32+00:00

Suppose I have the following student table: id | name | datecreated ———————— 1

  • 0

Suppose I have the following student table:

id | name | datecreated
------------------------
1  | john | 5/28/2011
2  | peter| 3/15/2011
3  | luke | 5/19/2011

What would be my Sql statement if I want to select all students created in the month of May and in the year of 2011, regardless of date.

I am using SQLite.

  • 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-22T01:56:33+00:00Added an answer on May 22, 2026 at 1:56 am
    SELECT * FROM tablename WHERE strftime('%Y', datecreated) = '2011' 
                              AND strftime('%m', datecreated) = '5';
    

    Above example taken from:
    http://www.sqlite.org/lang_datefunc.html

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

Sidebar

Related Questions

Suppose that I have the following HBM mapping: <class name=Student table=student> <set name=classes table=student_classes
Suppose I have the following table: PARAMETER - NAME varchar2(10) - TABLE_NAME varchar2(50) -
Suppose I have the following two tables: STUDENT studentid lastname firstname 1 Smith John
suppose I have following sql table objid firstname lastname active 1 test test 0
Suppose I have following table in my database: Tbl_Persons: Id Country Name 1 Australia
Suppose I have the following table: Table: Score field: ID: uniqueidentifier field: Departmentid: int
Suppose I have following in my web.xml <filter-mapping> <filter-name>F1</filter-name> <url-pattern>/XYZ/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>F2</filter-name> <url-pattern>/XYZ/abc.do</url-pattern>
Suppose I have the following table GAME match_id, user_id, score 1, 10, 45 1,
Suppose we have following function in PHP: public function testSomething() { $name = perform_sql_query("SELECT
Suppose I have string variables like following: s1=10$ s2=10$ I am a student s3=10$Good

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.