Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare input parameter between two column values?

Status
Not open for further replies.

Vandy02

Programmer
Jan 7, 2003
151
0
0
US
I have a table with two columns

column1 BREAKSTART
column2 BREAKEND


These columns correspond to a break time...
i.e.
BREAKSTART = 1400
BREAKEND = 1430

I want to be able to pull records that an input time of 1435
would not fall within.....
basically where the input time is not between the column times...

thanks
 
[tt]SELECT something
FROM table
WHERE :inputtime NOT BETWEEN BREAKSTART and BREAKEND[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top