Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Need to search for code (2.02)? Pin
Luc Pattyn5-Jan-11 5:41
sitebuilderLuc Pattyn5-Jan-11 5:41 
GeneralRe: Need to search for code (2.02)? Pin
waner michaud5-Jan-11 5:59
waner michaud5-Jan-11 5:59 
QuestionRe: Need to search for code (2.02)? Pin
Luc Pattyn5-Jan-11 6:05
sitebuilderLuc Pattyn5-Jan-11 6:05 
AnswerRe: Need to search for code (2.02)? Pin
waner michaud5-Jan-11 6:12
waner michaud5-Jan-11 6:12 
AnswerRe: Need to search for code (2.02)? Pin
Luc Pattyn5-Jan-11 6:16
sitebuilderLuc Pattyn5-Jan-11 6:16 
GeneralRe: Need to search for code (2.02)? Pin
waner michaud5-Jan-11 6:20
waner michaud5-Jan-11 6:20 
GeneralRe: Need to search for code (2.02)? Pin
Eddy Vluggen5-Jan-11 7:00
professionalEddy Vluggen5-Jan-11 7:00 
GeneralRe: Need to search for code (2.02)? Pin
Eddy Vluggen6-Jan-11 1:07
professionalEddy Vluggen6-Jan-11 1:07 
Now that you had a day's worth of time, try the statement below;
SQL
declare @code float
set @code = 2.435

declare @upperBound float
declare @lowerBound float

set @upperBound = @code + .01
set @lowerBound = @code - .01

select * 
from commune_table
where code between @lowerBound and @upperBound

The database doesn't store the number "2.1", it stores a number that matches it very closely. That means that if you want to search for such a value, that you'd have to take a margin in account. No, this is not a simple solution to your problem, as you simply cannot search for a fractional number in the database the way you'd search for a string.
I are Troll Suspicious | :suss:

GeneralRe: Need to search for code (2.02)? Pin
waner michaud5-Jan-11 6:08
waner michaud5-Jan-11 6:08 
QuestionDisable CTRL+ALT+DEL in Windows Vista & 7 [modified] Pin
Yance Lawang4-Jan-11 23:07
Yance Lawang4-Jan-11 23:07 
AnswerRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Simon_Whale4-Jan-11 23:54
Simon_Whale4-Jan-11 23:54 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Yance Lawang5-Jan-11 0:26
Yance Lawang5-Jan-11 0:26 
AnswerRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Eddy Vluggen5-Jan-11 0:13
professionalEddy Vluggen5-Jan-11 0:13 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Yance Lawang5-Jan-11 0:32
Yance Lawang5-Jan-11 0:32 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Eddy Vluggen5-Jan-11 0:50
professionalEddy Vluggen5-Jan-11 0:50 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Dalek Dave5-Jan-11 1:30
professionalDalek Dave5-Jan-11 1:30 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Eddy Vluggen5-Jan-11 7:01
professionalEddy Vluggen5-Jan-11 7:01 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Yance Lawang5-Jan-11 1:46
Yance Lawang5-Jan-11 1:46 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Dave Kreskowiak5-Jan-11 4:38
mveDave Kreskowiak5-Jan-11 4:38 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Eddy Vluggen5-Jan-11 6:58
professionalEddy Vluggen5-Jan-11 6:58 
JokeRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
reto.knaak15-Jan-11 10:32
reto.knaak15-Jan-11 10:32 
GeneralRe: Disable CTRL+ALT+DEL IN Windows Vista & 7 Pin
Eddy Vluggen15-Jan-11 10:44
professionalEddy Vluggen15-Jan-11 10:44 
AnswerRe: Disable CTRL+ALT+DEL in Windows Vista & 7 Pin
Luc Pattyn5-Jan-11 3:04
sitebuilderLuc Pattyn5-Jan-11 3:04 
QuestionProblem to read data when i execute store procedure.... Pin
Saurabh Chandak4-Jan-11 20:20
Saurabh Chandak4-Jan-11 20:20 
AnswerRe: Problem to read data when i execute store procedure.... Pin
Eddy Vluggen5-Jan-11 0:17
professionalEddy Vluggen5-Jan-11 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.