Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 04-04-2012, 06:38 PM
Member
Latest Blog:
None

 
Join Date: 06-23-09
Posts: 37
iTrader: 0 / 0%
How To build MySql Query to Get Call History From Database!

Hi all expertz,
I am newly hire intern in web development field and my senior ask me to build mysql query to draw out call history from database.

They want me to build query to get call record of:
1- Today
2- Yesterday
3- Last Week
4- this week

Just give me sample code or give me hint. we are working on mobile billing app. Please help me it is very necessary for me because i am a fresh intern. Thanks
 
Reply With Quote
  #2 (permalink)  
Old 04-13-2012, 09:34 PM
Junior Member
 
Join Date: 04-13-12
Posts: 23
iTrader: 0 / 0%
It's impossible to answer this question without knowing what the database schema looks like.

I suggest starting out by learning some SQL. There is a really good free SQL tutorial online. Do a Google search for "SQL course" and click the "SQLCourse" result. Do both SQLCourse and SQLCourse2.
 
Reply With Quote
  #3 (permalink)  
Old 04-16-2012, 02:36 AM
JohnnyS's Avatar
Contributing Member
 
Join Date: 07-05-11
Location: philippines
Posts: 312
iTrader: 0 / 0%
Quote:
Originally Posted by groogruxking40 View Post
Hi all expertz,
I am newly hire intern in web development field and my senior ask me to build mysql query to draw out call history from database.

They want me to build query to get call record of:
1- Today
2- Yesterday
3- Last Week
4- this week

Just give me sample code or give me hint. we are working on mobile billing app. Please help me it is very necessary for me because i am a fresh intern. Thanks
if you have a date field in your table, for example created_at or date_created. you can just create a query on that field..

today:
Code:
SELECT * FROM calls_table WHERE DATE(date_create) = DATE(NOW())
you play with that query and try to combined some of the MySQL Date functions to achieve the result you want..
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql / php search query robpicken Coding Forum 1 05-19-2013 01:52 PM
Mysql Help: Counting within query tashbaqa Coding Forum 4 04-06-2011 02:31 PM
Change database from mysql 4 to mysql 5 affects my calendar event page newphpcoder Coding Forum 0 10-19-2010 05:53 PM
MySQL PHP database query??? 4D1 Coding Forum 0 08-08-2009 02:34 PM
MYSQL Update Query Limit Coding Forum 1 12-26-2004 09:08 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 08:05 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.