Sharp Developer
Home
HTML
Java Script
ASP.Net
SQL Server
Return Even and Odd Records by Date in SQL
The Syntax is:
update table_name set column_name=GETDATE()
Above query will return all records with same current date.
The Syntax is:
update table_name set column_name=dateadd(day,1,GETDATE())where id_Student%2=0
The Result will be:
Above query will return odd records by current date and even records by next date.
SHARE THIS POST
0 comments:
Newer Posts
Home
Subscribe to:
Comments (Atom)
Translate
Visitors
Popular Posts
Adding two numbers in javascript
Return Even and Odd Records by Date in SQL
(no title)
Powered by
Blogger
.
Blog Archive
►
2018
(1)
►
November
(1)
►
2014
(1)
►
February
(1)
▼
2013
(1)
▼
February
(1)
Return Even and Odd Records by Date in SQL
Like Us !
About Me
Unknown
View my complete profile
Total Pageviews
Featured Posts
Blogger news
Contact Form
Name
Email
*
Message
*
Follow on Facebook
Popular Posts
Adding two numbers in javascript
Addition of Two Numbers in Asp.Net. <html> <head> <title>Add two numbers </title> </head> ...
Return Even and Odd Records by Date in SQL
The Syntax is: update table_name set column_name=GETDATE() ...
(no title)
DATETIME FORMATS IN SQL SERVER HOW TO SET CURRENT DATETIME WITH DIFFERENT DATETIME FORMATS IN SQL SERVER. Suppose the current date tim...
Recent Comments
0 comments: