Solved

Truncated incorrect DOUBLE value: 'FIL1385'

Posted on 2008-10-08
3
478 Views
Last Modified: 2012-05-05
SELECT p.`BrandNumber` as "Brand",
p.`PoNumber` as "PO NUMBER",
p.`InvoiceNumber` between 'IND1278' and 'IND1583' or 'FIL1385' and 'FIL1696',
p.`StyleCode` as "STYLE",
p.`Description` as "DESC",
p.`SeasName` =  left(p.`SeasName`,4) = 'S8-k'
FROM purchaseorder p;

"error Truncated incorrect DOUBLE value: 'FIL1385'" <=== this to me is a shortened , incorrect, whole number?  

Any ideas?
Do you think my 'InvoiceNumber' syntax is the problem?.

Sorry, thanks.
0
Comment
Question by:kingjely
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 22675689
try:
SELECT 
	p.`BrandNumber` as `Brand`,
	p.`PoNumber` as `PO NUMBER`,
	p.`StyleCode` as `STYLE`,
	p.`InvoiceNumber`,
	p.`Description` as `DESC`,
	p.`SeasName`
FROM 
	purchaseorder p
WHERE 
	left(p.`SeasName`,4) = 'S8-k'
AND
	(
		(p.`InvoiceNumber` between 'IND1278' and 'IND1583') 
	OR
		(p.`InvoiceNumber` between 'FIL1385' and 'FIL1696')
	)

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now