Search
 
SCRIPT & CODE EXAMPLE
 

SQL

less than and between in sql query

declare @starttime datetime = '2012-03-07 22:58:00'

SELECT BookingId, StartTime
FROM Booking
WHERE ABS( DATEDIFF( minute, StartTime, @starttime ) ) <= 60
Comment

PREVIOUS NEXT
Code Example
Sql :: sql searching via key word 
Sql :: Order of execution SQL or MySql query Or Logical order of operations: 
Sql :: find in set in postgresql 
Sql :: postgres advance table id count 
Sql :: create a database mysql 
Sql :: copy table db 
Sql :: mysql sleep connections 
Sql :: query only first letter string 
Sql :: how to save postgresql query 
Sql :: show last sql executed in oracle 
Sql :: default username and password for oracle 11g 
Sql :: create user in mysql 
Sql :: tables in sql 
Sql :: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , , = or when the subquery is used as an expression. 
Sql :: sql ignore 
Sql :: mysql write into table 
Sql :: Deleting data from tables 
Sql :: index in mysql 
Sql :: error code 1241 mysql 
Sql :: insert to first table if field A equals field B from a second table using sql 
Sql :: sql like operator 
Sql :: limit rows after order by oracle 
Sql :: postgresql comandos basicos 
Sql :: postgresql gset 
Sql :: use table postgres 
Sql :: mysql create link between tablesdatabase 
Sql :: oracle sql winter time change 
Sql :: execute oracle ash command 
Sql :: sql convert to linq online 
Sql :: prestashop alter table if not exists 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =