حضرت خواجہ سیدنا معین الدین حسن چشتی سنجاری اجمیری رحمۃ اللہ علیہ
HOME
BLOGS
ASP.Net
C#.Net
JavaScript
ADO.Net
Excel
AJAX
VB.Net
SQL Server
GridView
Issues and Exceptions
Silverlight
Rich Text Editor
jQuery
DataList
Snippets
XML
New Features
.Net 4.0
TreeView
AJAX Control Toolkit
jQuery Plugins
Third Party Controls
ASP.Net Validators
WCF
Repeater
Regular Expressions
Yahoo API
iTextSharp
FaceBook
Charts
ListView
Tweeter
Google
CSS
SMS
DotNetZip
Crystal Reports
Entity Framework
HyperLink
RDLC Report
SqlDataSource
Menu
YouTube
Twitter
HTML
XmlDataSource
ListBox
Tips
DataGridView
Cryptography
Windows Forms
LinkedIn
WebUserControl
RSS Feeds
HTML5
Sitemap
IIS
LINQ
DataPager
URL Routing
SqlBulkCopy
OCR
ASP.Net 4.5
Master Pages
MySQL
CSV
Stored Procedures
JSON
Web Services
Bootstrap
Windows Service
DataTable
App.Config
Visual Studio
RadioButton
CheckBox
Generic Handler
DropDownList
FileUpload
RadioButtonList
CheckBoxList
Flash
HtmlEditorExtender
Div
Table
AngularJS
DataReader
DataSet
Console Applications
FTP
DetailsView
Password TextBox
Enum
ComboBox
Sponsored
SqlDataAdapter
OpenXml
ClosedXml
SiteMapPath
Arrays
FormView
FORUMS
Questions
Ask Question
VIDEOS
SEARCH
INTERVIEW
Interview Questions
COMMUNITY
Users
CONTACT
Search
Ask Question
Query to fetch next two days record in SQL Server
chetan
SOLVED
CLOSED
ACTIVE
ANSWERED
User:
chetan
Posted: on Apr 20, 2020 12:52 AM
Forum:
SQL Server
Replies: 3
Views: 2282
I want to fetch records in such a way that: Suppose today is Monday then i want to fetch records of Monday and next 2 days ie. Tuesday and wednesday.(Monday+ tuesday and wednesday) Suppose today is Tuesday then i want to fetch records of Tuesday and next 2 days ie. wednesday and Thursday.(tuesday+ wednesday and thursday) Suppose today is Friday then i want to fetch records of Friday,Saturday and Monday(here sunday should be skipped) Suppose today is Saturday then i want to fetch records of Saturday,Monday and Tuesday(here sunday should be skipped) How to achieve this using sql query or script?
Andrea
0
1
Reply
ANSWER
User:
Andrea
Replied: on Apr 20, 2020 12:52 AM
Report
Hi @chetan, Please try the following
SQL Query to fetch records whose date is 7 days greater than current date
It might help you. Cheers Andrea.
I agree, here is the link:
https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html
Ask Question
© COPYRIGHT 2025
ASPSnippets.com
ALL RIGHTS RESERVED.
Disclaimer
This site makes use of Cookies. Please refer
Privacy Policy
for more details.
Allow
Reject