![]() |
|
#1
|
|||
|
|||
Help With Mysql Query with 2 fieldsHi All
I'am having problem's how to work out what seems to be a simple Query i writing a simple database to keep track of our vast cartridge collection with set order levels the 2 field in question are <Qty> and <Order Level> .I'm wanting to display all items that the number in <qty> is equal or lower then <Order Level> Thanks in advance |
|
#2
|
||||
|
||||
Re: Help With Mysql Query with 2 fieldsHi Scott.
Are these two fields in the same table? Provide an example of the database layout, and I could help you better. If they are in the table, then this should work for you: Code:
The above code returns only the HP cartridge on the following database, because that's the one with quantity being lower than orderlevel: Code:
|
|
#3
|
|||
|
|||
Re: Help With Mysql Query with 2 fieldsThat's great thanks alot works perfectly
|
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mysql insert query in php | mrjameer | MySQL / PHP Forum | 0 | 20-Nov-2006 14:23 |
| combining 2 fields in a single mysql select query | mrjameer | MySQL / PHP Forum | 1 | 28-Sep-2006 19:38 |
| Cpanel downgrade MYSQL 4.1.X to MySQL 4.0.xx | Webhosting-live | Web Hosting Forum | 1 | 01-Sep-2006 02:54 |
| Tricky MySQL query involving multiple primary keys... | TreyAU21 | MySQL / PHP Forum | 4 | 18-Apr-2006 09:56 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The