TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jes Sie
744
1.2k
282.2k
How to get previous month/year in SQL Server
Apr 25 2020 3:55 AM
I have this query in my SQL Server :
select
right
(
convert
(
varchar
(10),getdate(),103),7)
which gaves a result of = 04/2020.
Now, how do I get the previous month's result (03/2020)?
Thanks, everyone for your suggestions.
Reply
Answers (
1
)
Convert CSV to XML in Azure Logic apps
How to backspace and delete a string value using javascript