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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:22:42+00:00 2026-05-26T12:22:42+00:00

I have a visit table with columns member_id visit_id visit_logout_datetime(values like this… ‘ now

  • 0

I have a visit table

with columns

            member_id
           visit_id
           visit_logout_datetime(values like this... '

now i need to compare the visit_logout_datetime with today date time property…

here is two conditions

1) i need to compare the today date with date coming from this field visit_logout_datetime

// here i want to do something….

2) i need to compare the present time with the time in this field visit_logout_datetime

i want to compare individually ..

how can i do that ..

would any one pls help on this….

  • 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-26T12:22:42+00:00Added an answer on May 26, 2026 at 12:22 pm
    mysql> select cast('2011-10-24 15:20:10' as date);
    +-------------------------------------+
    | cast('2011-10-24 15:20:10' as date) |
    +-------------------------------------+
    | 2011-10-24                          |
    +-------------------------------------+
    1 row in set (0.00 sec)
    
    mysql> select cast('2011-10-24 15:20:10' as time);
    +-------------------------------------+
    | cast('2011-10-24 15:20:10' as time) |
    +-------------------------------------+
    | 15:20:10                            |
    +-------------------------------------+
    1 row in set (0.00 sec)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Visit table Visit_Id Visit_Date values(09-09-2011) Visit_status values like (accepted , refused) member_Id
I have a table called visit with the following columns: visit_Id member_Id visit_Date visit_Time
I will have an sql table named VISIT table. I have 3 columns WORKSTATION,
I have a member table with columns member_id member_lastname member_firstname i have another table
I Have a table with the following columns: patient_id, visit_id, and visit_date. How can
I have a table like as follows: SoftwareName Count Country Project 15 Canada Visio
I have the following Model and Controller files, and when i visit this url,
I have a table that its structure is as like as follow: `id` int(10)
I have a single table and it contains 4 columns: Id|Hospital| Doctor|patient 1 A
I have a table, and it has the Columns Quantity, Price and LineTotal. When

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.