Member Panel


Sponsors and Ads

Live Tag Cloud

PC Forum PC Help Forum » Web & Networking » Web Design » problem with a query

Web Design - problem with a query posted in the Web & Networking forums; I am trying to retrive the total of values from a table but i also need to gather info from another table, i thus need to join the 2 tables ...

JOIN US NOW to remove these Ads

pc help forum number one in the search engines
Post New Thread  Reply
  #1  
Old 11-19-2007
spellbyte's Avatar
Elite Member
My PC
 
Join Date: Nov 2004
Location: Top Secret... really
Posts: 527
spellbyte - See this Members User comments on their Profile page
Send a message via MSN to spellbyte Send a message via Skype™ to spellbyte
Default problem with a query

I am trying to retrive the total of values from a table but i also need to gather info from another table, i thus need to join the 2 tables together but am running into a few problems

here is my current query

Code:
SELECT r.*,p.* SUM(refREFER) AS SUM FROM referals r LEFT JOIN players p WHERE r.refREFER=p.userid
thats not returning any information at all, the refREFER is the same value as the userid and i need to calculate the total amount of instances of refREFER from the referals table and also be able to join them with the userid from the users table.

does anyone have any thoughts as to what im doing wrong here?


  #2  
Old 11-23-2007
Axephilic's Avatar
Proud PCHF Moderator
My PC
 
Join Date: May 2007
Location: Wisconsin, US
Posts: 1,056
PC Experience: Experienced
Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page Axephilic - See this Members User comments on their Profile page
Send a message via AIM to Axephilic Send a message via MSN to Axephilic
Default Re: problem with a query

Hi, sorry I didn't see this earlier. I don't really understand what your trying to do. What do you need to get from the table?



Reply
New! Norton Internet Security 2008 – Download Now Click Here

Bookmarks

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moniter + PC Problem [Please Help ASAP] ore04lyfe Monitors 5 09-02-2007 11:36 PM
pc spooler problem cyberjan Printing 6 01-14-2007 07:50 PM
[Resolved]Windows XP Pro Reload Problem aallpphh Windows XP/2000 6 03-14-2006 03:43 PM
gunz international problem shurutang PC Games 6 11-17-2005 01:54 AM
[FIXED] Computer Restarts: Very Wierd Problem! Confused Help! Ali2005 Windows XP/2000 4 11-16-2005 10:09 PM


All times are GMT +1. The time now is 03:52 PM.
Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2008 - PC Help Forum.com


Back to Top