Find Jobs
Hire Freelancers

mysql query with output to cvs -- 2

$10-30 USD

Completed
Posted over 9 years ago

$10-30 USD

Paid on delivery
I have two queries I am looking to combine. I will like the the output to match the attached spreadsheet. I have also attached tables. SELECT [login to view URL] AS Employee, SEC_TO_TIME(SUM(TIME_TO_SEC(CONCAT(teight,':',teightb)) - TIME_TO_SEC(CONCAT(tseven,':',tsevenb)))) AS TotalHours FROM schedule WHERE [login to view URL] BETWEEN '2014-08-29' AND '2014-08-29' GROUP BY custno SELECT regular, employee FROM timesheet WHERE [login to view URL] between '2014-08-29' AND '2014-08-29' GROUP BY employee Update: I have one query but I have this trouble: One problem if you run this query you will see total hours says 10 for all but 1 of the result should be 12. SELECT [login to view URL],[login to view URL],MIN([login to view URL]),MAX([login to view URL]),SEC_TO_TIME(SUM([login to view URL])) AS total_hours,[login to view URL],TIMEDIFF(SEC_TO_TIME(SUM([login to view URL])),[login to view URL]) AS bil FROM( SELECT [login to view URL], [login to view URL],[login to view URL],[login to view URL],t.`regular`,TIME_TO_SEC(TIMEDIFF([login to view URL],[login to view URL])) AS total FROM schedule AS s LEFT JOIN timesheet AS t ON ([login to view URL] = [login to view URL] AND s.date=[login to view URL]) )a WHERE a.date='2014-08-29' GROUP BY [login to view URL],[login to view URL];
Project ID: 6529540

About the project

13 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
As discussed I am placing the bid in this project. Kindly accept so that I can start working in it. Thanks, Ayan Dasgupta.
$30 USD in 1 day
4.6 (10 reviews)
3.7
3.7
13 freelancers are bidding on average $33 USD for this job
User Avatar
Hello, With 99% completion rate, 700 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page !!)... you can never go wrong choosing me :) I look forward to your reply. Thanks. Kind Regards, Rajesh Soni
$79 USD in 1 day
5.0 (827 reviews)
8.3
8.3
User Avatar
A proposal has not yet been provided
$30 USD in 1 day
5.0 (789 reviews)
7.9
7.9
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
4.9 (207 reviews)
6.3
6.3
User Avatar
Greetings!! Let me take this opportunity to introduce myself, I am Abhi here. I have good track record of designing comprehensive solutions ranging from Social Networking, E-Commerce, Real Estate, Healthcare, Travel and Job Sites since last 4 year. I have gone through your project specification and understood that you are looking for PHP developer. I am happy to inform you that I can work on your projects as I have core competency/expertise in PHP, MVC, OOPS, jQuery, javascript, ajax, wordpress, html, html5, css, photoshop, psd, html, html5, psd to html, mysql and Yii framework. I can assure you that I'll give my best to complete the project with full dedication and sincerity. I am ready to start this project immediately. Please message me so we can discuss about your project. Let's start. Eagerly waiting for your positive response and more details about the project. Thanks & best regards Abhi
$30 USD in 1 day
4.9 (142 reviews)
6.0
6.0
User Avatar
I am specialize in C++,C#.net,ASP.Net,JAVA, PHP, MySQL, Wordpress, e-commerce websites and portals, payment gateways and customized web based applications. my aim to deliver quality products to our customers within specified deadline. i strongly believe in Quality work. If hired by you I will put in my best work. I am ready to be hired by you and start work on your jobs.
$22 USD in 2 days
4.7 (96 reviews)
6.1
6.1
User Avatar
Hi, Thanks for inviting me to bid. I can do it in 1 day of time. Please let me know if you want me to start right now. Thanks, Ayan Dasgupta
$30 USD in 0 day
4.9 (14 reviews)
5.0
5.0
User Avatar
Hi There, Can be done now. Please share this project and will give you the perfect work. Thanks for this.
$30 USD in 1 day
4.9 (49 reviews)
4.6
4.6
User Avatar
Having 3+ years of experience in Oracle and MYSQL Database. Have vast knowledge of Database architecture, Performance tuning, Query Optimization. Currently working in Oracle India pvt ltd. I have created the query and tested it. It is giving the required output as mentioned in the xls. Lets discuss.
$25 USD in 1 day
4.9 (15 reviews)
4.3
4.3
User Avatar
Hi, I have checked excel sheet and tables attached. I can create required sql. Besides this I will create a php script which uses that script and then automatically generate excel sheet filled with data you want. Thank you. Kind Regards, Nirmal
$30 USD in 1 day
5.0 (2 reviews)
2.4
2.4

About the client

Flag of UNITED STATES
louisville, United States
5.0
29
Payment method verified
Member since Jan 25, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.