Solved

Truncated incorrect DOUBLE value: 'FIL1385'

Posted on 2008-10-08
3
484 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql ide 10 48
Could you point what is avoiding the PHPExcel library to fill the sheet? 8 58
Currency in SQL? 2 44
Using cfstoredproc to return query data 2 50
This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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