need help with mysql query ... - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Databases - MySQL, SQL, Oracle, Access and others

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-30-2010, 02:39 PM   #1 (permalink)
Regular User
 
Join Date: Nov 2008
Posts: 20
Default need help with mysql query ...

Hello:

I am trying to get a mysql query together an not quite sure how to apply it, whether it is with distinct, join and all. What I am looking is to get the ID, qty ( number of users ), max and min number. Can anyone help me with this please.


Name ID Name
123ABC Engine
649DFA Transmission
854UDF Window


User ID User Name User Amount
123ABC Paul 300
123ABC John 190
649DFA Ian 500
123ABC Mary 210
123ABC Mark 225
649DFA Steve 360




Required Result:

ID Qty Max Mix
123ABC 4 300 190
649DFA 2 500 360
pepe_lepew1962 is offline   Reply With Quote
Sponsored Links
Old 06-11-2010, 08:37 AM   #2 (permalink)
Regular User
 
Join Date: Mar 2010
Posts: 154
Default Re: need help with mysql query ...

dear use google for and search it
__________________
Church in london|
osho is offline   Reply With Quote
Old 06-19-2010, 02:44 AM   #3 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 10
Default Re: need help with mysql query ...

yes u can find in google just give a time to search
janeparker is offline   Reply With Quote
Old 06-20-2010, 08:23 PM   #4 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 9
Default Re: need help with mysql query ...

google rocks man
alibills is offline   Reply With Quote
Old 06-28-2010, 09:58 AM   #5 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 10
Default Re: need help with mysql query ...

ya go for google..
rafealjales is offline   Reply With Quote
Old 08-04-2010, 01:03 AM   #6 (permalink)
Junior Member
 
manzar's Avatar
 
Join Date: Jul 2010
Posts: 53
Default Re: need help with mysql query ...

Try Google, search on +mysql +blob +php (assuming you are using PHP).
if you use asp than Google search to +asp
manzar is offline   Reply With Quote
Old 01-24-2011, 12:22 AM   #7 (permalink)
Junior Member
 
jalicia18's Avatar
 
Join Date: Nov 2010
Location: Philippines
Posts: 14
Send a message via Skype™ to jalicia18
Default Re: need help with mysql query ...

try to use php mysql aliases and group by.

Try this simple scripting to display ID, qty ( number of users ), max and min number

Quote:
echo "ID QTY Max Min";
$query = mysql_query("SELECT ID, qty, maximum, minimum FROM tablename");
while($row = mysql_fetch_array($query))
{
echo $row['ID'] . " " . $row['qty'] . " " . $row['maximum'] . " " . $row['minimum'] . "<br/>";
}
jalicia18 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:50 AM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting