sql - How to find the selected date is Saturday or Sunday in sqlite manager -


i want find if selected date table saturday or sunday in sql. i'm using sqlitemanager. if help, appreciated.

you can use strftime():

select (case when strftime('%w', datecol) in ('0', '6') 1 else 0 end) is_weekend 

Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -