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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:45:30+00:00 2026-05-23T01:45:30+00:00

well I have a table create table usersnew ( user1 varchar (50) primary key,

  • 0

well I have a table

create table usersnew
(
user1 varchar (50) primary key,
names varchar(50),
lastname varchar(50),
hoursneeded float)

create table hoursusers
(
user1 varchar(50),
timeMade varchar(50),
foreign key (user1) references usersnew(user1)
)

hoursneede is how time the user need to make for finish his service.. “social service”
it can be 400 hours..
now timeMade is how time he has made..
it is varchar because i save something as this “30:00:00”
it is 30 hours
’23:30:00′ it is 23 hours and 30 minutes
so .. i convert it in C# with timespan and another things..
now I need to make a query where
I select to all users where timeMade was more than Hoursneede …
if he need to make 400 and he has made ‘400:00:00’ or plus I am going to select him..
but not all user need to make the same time..
another users need to make 450 or 300 I don’t know… but I want to select to users
than has finished with his time needed.. how can I do it? I can use sql for this query and
c # with loops-for, for do it… some idea?

  • 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-23T01:45:31+00:00Added an answer on May 23, 2026 at 1:45 am

    Use minutes instead, with numeric data type

    you can easily convert minutes to hours by dividing to 60

    and numeric data is easier to query

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

Sidebar

Related Questions

I have a table: CREATE TABLE `data_table` ( `data_id` INT NOT NULL AUTO_INCREMENT PRIMARY
Well i have the following table(info from pgAdmin): CREATE TABLE comments_lemms ( comment_id integer,
I have the following MySQL scripts: CREATE TABLE user_roles ( id INT AUTO_INCREMENT, PRIMARY
well i have this messages table with sample values like these: msg_id recipient_id read
I have a MySQL table with a column of well-formed URLs. I'd like to
Say if I have a large dataset, the table has well over a million
I have a table that holds agreement information. It works well for 95% of
We have the following table: CREATE TABLE [dbo].[CampaignCustomer]( [ID] [int] IDENTITY(1,1) NOT NULL, [CampaignID]
I have the following script to create a table in MySQL version 5.1 which
Let's say I have a table like this: CREATE TABLE t( [guid] [uniqueidentifier] NOT

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.