Posts by Rodrigo Rocha • 111 points
1 post
-
1
votes0
answers371
viewsQ: How to make a SELECT with CONVERT or CAST in the WHERE clause using sequelize
I need to select below using sequelize. SELECT COUNT(*) AS 'Count' FROM Table WHERE CAST(DatetimeField AS DATE) = CAST(GETDATE() AS DATE) So far I’ve managed to do using between but it’s not the…