Forum Discussion Search with BoardTracker.com
Forum Discussion Search with BoardTracker.com
  
  

Advanced  |  Help
    Home Search Alerts Browse My Threads Setup About Login Signup    


» All > Computers & Internet > . > Databases > MySQL [7 Forums][Track this Category]
   Browse sub-categories   
No sub-categories for this category

   Latest threads in category   
SitePoint compare 2 tables and find rows which don't match (was "Mysql noob..  
09:44 26-Oct-06   [Replies: 2, Views: 48]    By: lazy00
I have a products table and a products_description table. They both have products_id as primary key. However, products_description table has more products_id keys then the products table. How do...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Retrieve cardinality?  
04:02 26-Oct-06   [Replies: 11, Views: 72]    By: jplamb
I was wondering it is possible to retrieve the cardinality from an index through a mysql query in a php script? I am trying to find the number of unique items from tables with 10+ million rows an...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Large table, fulltext, design decisions, optimization  
23:20 25-Oct-06   [Replies: 4, Views: 51]    By: aboteanu
Hello Maybe somebody can give me some suggestions, ideeas and help on my problem. I'm not a newbie with SQL but i'm not too great either, i usually don't care about optimization because i don'...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Query breaking in MySQL 5, OK in MySQL 4  
22:59 25-Oct-06   [Replies: 3, Views: 55]    By: Unnamed
Not sure where to start on trying to fix this one... Any suggestions? Error: Unknown column 'i.partid' in 'on clause' Code: CREATE TEMPORARY TABLE store_parts_start (SELECT p.id, 100...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Design question about tables  
21:30 25-Oct-06   [Replies: 2, Views: 34]    By: Unnamed
For a retail site, I would have one table with customers info (name, address, etc.), and then should I (1) create a separate table for each customer to track their orders (items ordered, price, da...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Physical Files  
19:33 25-Oct-06   [Replies: 1, Views: 21]    By: Unnamed
Hi, I am going through backup and restoring operations and trying to get more familiar with them. In my mysql\data directory I created a couple databases and some tables in each. I only see files ...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint AN If Type statement in my query  
19:04 25-Oct-06   [Replies: 7, Views: 57]    By: WeakestLink
Ok I have a database of all 43,000+ zip codes in the US. Code: CREATE TABLE zipcodes ( zip varchar(16) NOT NULL default '0', city varchar(30) NOT NULL default '', state varchar(3...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Float Fields  
17:25 25-Oct-06   [Replies: 1, Views: 30]    By: Unnamed
I have a form that i use to insert values into a table. One of my fields is a float(4,2) field. Does this make this particular field only able to accept 00.00 values? If i try to input 000.00 in m...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint 2 simple mysql queries  
14:55 25-Oct-06   [Replies: 3, Views: 38]    By: krusko
have problems with 2 simple queries and i dont know how to solve them. plz help me. first one looks like this: 1.What’s the average length of the movies released in 2006? And which movie comes...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Grouping results based on internal?  
14:39 25-Oct-06   [Replies: 1, Views: 27]    By: neilmunn
I have in a database which stores insurance quote requests. I want a query that counts the number of quotes by each referrer, grouping quotes made within a 10 minute period as 1 quote He...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Unknown column in 'on clause'  
14:21 25-Oct-06   [Replies: 4, Views: 64]    By: Sahajin
I have seen this a couple of times and what throws me for the loop is the column IS in the table. Unknown column 'cm.state_id' in 'on clause' Code: select cm.*, o.userid,c.printable...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Use column aliases (AS statement) information in Select  
13:51 25-Oct-06   [Replies: 3, Views: 33]    By: mscene256
I know table aliases can be used in a select statement so is there a way to use column aliases as below? SELECT (complex formula) AS result, column1, IF(result>0,'True','False') AS answer F...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint how to create efficient MySQL query from a pseudo query  
13:46 25-Oct-06   [Replies: 2, Views: 31]    By: phlype
I'm trying to build a webapplication where users can search for a person having a particular preference for color and material. To store this information I use the following structure (a MySQL dum...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Query which gets rows based on a radius, lon and lat doesn't work?  
12:03 25-Oct-06   [Replies: 1, Views: 41]    By: D-flyer
I have found this query which gets rows based on a radius. I need this for zip codes based on lon and lat's. Code: $sql2 = "SELECT * FROM table as z WHERE (SQRT( (69.1 * (".$us...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint How to get data based on the month and Year??  
10:11 25-Oct-06   [Replies: 5, Views: 75]    By: Unnamed
hi, i have a query , Code: "select month(str_to_date(fmonth,'%M')) from company where id=2;" (Query 1) The fmonth in company has values like 'March,October etc,.....
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint How many DB Queries is too many?  
00:51 25-Oct-06   [Replies: 7, Views: 80]    By: Unnamed
Is it ridiculuous to run 20 DB queries on a page that isnt accessed that often? What is the general rule when it comes to db queries? How many is too many? ...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Auto_increment value reset?  
00:33 25-Oct-06   [Replies: 5, Views: 73]    By: Unnamed
I have a table i am dumping false data into. I since deleted this data from the table and when i insert new records the values start at whatever the last record number was from the previous data s...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint LIMIT 5 only returns 2 when using GROUP_CONCAT  
22:38 24-Oct-06   [Replies: 8, Views: 74]    By: reded13
I'm trying to limit my results in the following query. When I make this query without the GROUP_CONCAT lines, I get the number of results I specified in LIMIT, when I put those lines back in, I ge...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Help: replacing same text with new text in hundred rows  
21:06 24-Oct-06   [Replies: 3, Views: 64]    By: Unnamed
Hi, I have about a couple hundred email addresses in a table... every email address includes @domain.com (the same domain). However, that domain is changing to a new domain... and I need to rep...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Select Today and Yesterday  
18:46 24-Oct-06   [Replies: 6, Views: 42]    By: Unnamed
I know that I can use DATE_SUB(NOW(),INTERVAL n DAY) and compare that to a datetime field to get the items from the last n days. What I would like to do is write a query that selects all the ro...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint TRIM(UCASE( in a select query??  
17:53 24-Oct-06   [Replies: 3, Views: 35]    By: D-flyer
I don't get any output with Code: $sql = "SELECT tbl1, tbl2.lon, tbl2.lat FROM tbl1, tbl2 WHERE tbl2.zipCode = TRIM(UCASE(tbl1.zipCode)) ORDER BY tbl2.zipCode"; Do I use TRIM(UCA...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint What's wrong with this update query??  
17:42 24-Oct-06   [Replies: 7, Views: 62]    By: D-flyer
Code: UPDATE table SET lon = 4.870765 AND lat = 52.366877 WHERE zip = '0000DE' I am directly accessing phpmyadmin and phpmyadmin doesn't give an error. But when I browse the table the valu...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint dots in sql query  
14:51 24-Oct-06   [Replies: 2, Views: 46]    By: lukemack
hi - daft question alert. can somebody explain what the m., i., are in the following sql statement? Code: $sql = "SELECT m.id, m.name, m.address, m.town, m.url, m.country, m.rank...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint one more column (country) which is not retrieved  
10:47 24-Oct-06   [Replies: 6, Views: 47]    By: joon
Code: myTable1 (id) city (1) Moscow (2) Lodon (3) Seoul (4) Denver : : myTable2 (id) city country (1) Moscow Russia (2) Lodon England (3) Seoul ...
[Tags: No tags defined yet] -
Be the first to Tag this thread
SitePoint Is it possible to check for the first chars in a db - column???  
09:59 24-Oct-06   [Replies: 6, Views: 44]    By: D-flyer
Trying to compare the first 4 chars with the first 4 chars in a db column Code: ...... $checkPostal = substr ($postal, 0, 4); .... .... $sql = "SELECT * FROM table WHERE po...
[Tags: No tags defined yet] -
Be the first to Tag this thread

<<First  <Previous  13  14  15  16  17  [18]  19  20  21  22  23  Next>      
   




Research | Board owners portal | BoardTracker Forums | Search plugin | Add your board | About us | Contact us

© Pidgin Technologies Ltd. 2006