I am trying to figure out what is a quick way to get the following results -
ID, calendar_date, my_value (some other columns are not relevant here) in Table 2 In the Table 2 ID, Event_date, (some other columns are not relevant here) / Ul> I want to write a query that selects all IDs and event_dates from Table 1, and table 2 for each event_date Sector is the get nearest Kailender_det like calendar_date event_date at least 30 days before the end, I would like my_value related Kailender_deta that meet your criteria.
I hope it is clear that I am doing this because (event_date - 30 days) can not exist in Table 2, so it should return the closest available date.
Even so I have done so far. This question works with hope, but I want to know that this is the fastest way to do this.
Thanks for all help.
Posted by
Unknown
at
03:22
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Unknown
View my complete profile
Blog Archive
►
2015
(1583)
►
September
(174)
►
August
(172)
►
July
(180)
►
June
(160)
►
May
(201)
►
April
(172)
►
March
(173)
►
February
(183)
►
January
(168)
►
2014
(1684)
►
September
(186)
►
August
(180)
►
July
(160)
►
June
(167)
►
May
(187)
►
April
(176)
►
March
(200)
►
February
(241)
►
January
(187)
►
2013
(1486)
►
September
(169)
►
August
(163)
►
July
(161)
►
June
(162)
►
May
(156)
►
April
(170)
►
March
(174)
►
February
(164)
►
January
(167)
►
2012
(1541)
►
September
(176)
►
August
(160)
►
July
(163)
►
June
(179)
►
May
(169)
►
April
(158)
►
March
(201)
►
February
(168)
►
January
(167)
►
2011
(1528)
►
September
(167)
►
August
(176)
►
July
(169)
►
June
(184)
►
May
(157)
►
April
(182)
►
March
(166)
►
February
(171)
►
January
(156)
▼
2010
(1540)
►
September
(147)
►
August
(182)
►
July
(168)
►
June
(162)
►
May
(188)
▼
April
(169)
c# - WCF Service, how to get the web site URL from...
compilation - Error in compiling a Linux kernel -
DB Operations in asp.net with c# -
JQuery Navigation Menu Animation with Wordpress Pa...
javascript - Using onComplete Event and Pages.xml -
python - Can I combine two 'findAll' search blocks...
interface - problem in getting value of the object...
email - Use PHP mail to send via smtp -
sql server 2005 - Optimising DATEDIFF -
c# - SqlBulkCopy problem -
asp.net - Problem with LoadViewState after F5 page...
asp.net - UpdatePanel Exception Handling -
c# - Correct way to remove M:M in PLINQO? -
.net - Creating a Wizard for Plugin project develo...
html - Inserting Chinese Meta Tags -
iphone - Memory leaks with UIWebView and NSURL: al...
vb.net - Fire an event every second -
iphone - Delayed UIImageView Rendering in UITableV...
WCF Linq to SQL Table - System.Data.Linq.Table can...
python - Django creating a form field that's read ...
wordpress - Test for posts matching specific categ...
php - I need to extract email addresses from yahoo...
asp.net - Calling javascript from code behind -
iphone - Using libraries in XCode and sharing them...
xml - What settings storage format to choose? -
sql server - Identify individual sql user in SQL p...
How to add a customized method to determine the nu...
how to open multiple files in vim after vimgrep -
c# - Knowing the point location of the caret in a ...
c# - How does one set text of two labels with two ...
How to add a tool tip to control in window applica...
mobile - Android id naming convention: lower case ...
.net - Does Math.Round(double, decimal) always ret...
java - How to run a Maven JME project in netbeans? -
spell checking - Lucene using Snowball and SpellCh...
mysql - latin-1 to utf-8 data porting -
iphone - What does the touch/untouch do in xcode? -
flash - play multiple flv file in single swf object -
php - Calling java program dependent on external l...
php - Mysql Query doubt -
What does Python's builtin __build_class__ do? -
LaTeX floats and consecutively numbered equations -
php - Change the whole content of site depending o...
php - Why is Zend Framework so popular? -
c# - How to catch on a winform when the TAB key is...
.net - Is there a way to do TRUE bidirectional com...
Deleting multiple lines based on serach conditon p...
html - Is it required to use thead, tbody and tfoo...
c# - How to generate properties in underlying clas...
java - Kafka high level consumer -
python - The meaning of key function in sort() and...
Using wmi to trigger query OIDs in NDIS driver -
ember.js - Observe change on any attribute of an E...
javascript - Web Audio API, setting treble and bass -
php - How do you make javascript echo all the data...
python - Appium multiple clicks no longer working -
jquery - return multiple value from function back ...
php - Load Google ReCaptcha Without Composer -
jquery - Wrap text of one col to another col with ...
node.js - Prevent websocket flood loop -
How to find the closest dates from MySQL table bas...
Object Required Error in excel VBA while trying to...
How to recursively build nested json/hash pairs in...
Adding an image to HTML code from the web -
mule - Maps vs Concrete classes -
regex - Strip blank lines from first n lines using...
TFS Azure website is down: Error persists after ro...
java - android-async-http return json values from ...
python - Sublime text & Linux-KDE. System locales ...
Which algorithm should be used to solve this sorti...
Can you clarify this referencing issue in Python? -
Excel VBA: VBA code not picking up data in CSV file -
jquery - How can I make radio check box's move in ...
ruby - HTML5 support with Rails 4.0.2 -
javascript - Check whether file exists with jQuery -
c++ - Threads doesn't end correctly: it ignores fa...
if statement - How do I implement IF in mulesoft -
computer vision - Adequate framerate for state of ...
TFS 2013 no burndown chart - SSAS issue when addin...
visual c++ - How to convert osg::Node to osg::Matr...
performance - Meteor autoform unresponsive script ...
javascript - How do I update data embedded in the ...
Upload Image using POST form data in Python-reques...
c - gcc/ld script ignores the start adress of the ...
wpf - Populating GridVIewComboBox with Enum -
symfony - Symfony2 CMF: Using Doctrine ORM instead...
c# - Linq group query gives wrong results -
iterate over a list as iterator in python -
php - Passing value through url -
oop - Java simple drawing program using bookClasse...
php - How i doing for get last id in update row in...
html - Logo in center of nav -
ember.js - How do I return related models over RES...
postgresql - Can I use postgres JSON column types ...
user interface - Tab Highlight Color in Spyder -
javascript - Event binding on dynamically created ...
javascript - Chrome extension webRequest.onBeforeR...
microcontroller - yikes invalid device signature -
css - Internet Explorer removes Blockquote styling -
cassandra - Can't create SSD persistent disk durin...
►
March
(194)
►
February
(164)
►
January
(166)
Simple theme. Powered by Blogger.