How to get only the date from the sql server
- by Pradeep
this is what i want. but i have put only a specified date.
SELECT BookName, Author, BookPrice
FROM Book
WHERE Book.Book_ID = (
SELECT Book_ID
FROM Temp_Order
WHERE Temp_Order.User_ID = 25 AND Temp_Order.OrderDate='3/24/2010'
)
this is the date function i used. but it takes the time also. how to stop it. please help me
SELECT Book_ID, BookName,Author,BookPrice
FROM Book INNER JOIN FavCategory ON Book.Category_ID = FavCategory.Category_ID
WHERE FavCategory.User_ID = " + useridlabel.Text + " AND
OrderDate = **GETDATE()**