Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Truncated incorrect DOUBLE value: 'FIL1385'

Posted on 2008-10-08
3
Medium Priority
?
489 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
1 Comment
 
LVL 82

Accepted Solution

by:
hielo earned 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

782 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