Updates using greater than or less than logic....
Hi, I've run into something that I can't figure out how to do through the OWB GUI. I have a source table that tells me that data changed between a given effective start and effective end dates (for example, NAME information). Given that, I want to update all rows in the person dimension tied to the matching person, where the effective date on the person dim is between the effective start and end dates on the source table.
Using the standard update operator, it looks like the only option I have is "=", I can't specify "<=" or ">=".
Is there any (easy) way around this?
Thanks,
Scott
I'd like to expand on Bharad's join condition.
Keep in mind that you have to use the effective start date two times (see below).
ingrp1 a.person_id =ingrp2 b.person_id
and ingrp1 a.effective_start_date >= ingrp2 b.effective_start_date
and ingrp1 a.effective_startdate <= ingrp2 b.effectiveend_date
Also, in most dimension tables the effective end date can contain NULL values which we need to take care off as well otherwise we will 'lose' records. A NVL can fix that problem, for example:
ingrp1 a.person_id =ingrp2 b.person_id
and ingrp1 a.effective_start_date >= ingrp2 b.effective_start_date
and ingrp1 a.effective_start_date <= nvl( ingrp2 b.effective_end_date, sysdate)
You can also substitute sysdate for a fixed date in the future but it's not dynamic then.
Similar Messages
-
Greater Than or Less Than using String Variables
I seem to have a problem when trying to sort an ALPHABETIC LIST, seeing if one text field is greater tan or less than another.
i.e. Lets say my variables are called FirstLetter and SecondLetter.
FirstLetter="A", SecondLetter="B"
So as an example and a test....Can I ask ...
IF SecondLetter>FirstLetter Then
Textwindow.WriteLine(SecondLetter + " >" + FirstLetter)
Else
Textwindow.WriteLine(FirstLetter + " >= " + SecondLetter)
Endif
I seem to be fine and program working well with numeric values in variables but the '> & <' feature does not seem to work with Text ?
Any help really appreciated
Thanks
DaveWe gotta get their ASCII/UNICODE value before comparing them:
firstLetter = "A"
secondLetter = "B"
If Text.GetCharacterCode(firstLetter) > Text.GetCharacterCode(secondLetter) Then
Textwindow.WriteLine(FirstLetter + " > " + SecondLetter)
ElseIf Text.GetCharacterCode(firstLetter) < Text.GetCharacterCode(secondLetter) Then
Textwindow.WriteLine(SecondLetter + " > " + FirstLetter)
Else
Textwindow.WriteLine("They're the same " + FirstLetter + " letter!")
EndIf
Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^) -
Number of address book contacts on MacBook Air using iCloud is one less than my other iDevices using iCloud. Is this a known bug? I've checked for duplicates on my iDevices and I can't find any. Additionally, I have wiped all the data from the Application Support folder of the address book and re-connected to iCloud, but it always shows 308 contacts instead of 309 found on iCloud and the rest of my devices. Any ideas?
Number of address book contacts on MacBook Air using iCloud is one less than my other iDevices using iCloud. Is this a known bug? I've checked for duplicates on my iDevices and I can't find any. Additionally, I have wiped all the data from the Application Support folder of the address book and re-connected to iCloud, but it always shows 308 contacts instead of 309 found on iCloud and the rest of my devices. Any ideas?
-
Hello,
For setting up a "initialize from lsn" type subscription successfully, Does the lsn for @subscriptionlsn parameter need greater than or less than the min_autonosync_lsn (syspublications) ?
I read two versions of this: one is lsn >min_autonosync_lsn ,the other is lsn <min_autonosync_lsn. I agree lsn >min_autonosync_lsn.
ThanksBasically it means that the lsn should be retrievable somewhere in the distribution database. So it has to be> than the min otherwise you would need to reinitialize.
Note that this is only important when you are mirroring the subscription database.
looking for a book on SQL Server 2008 Administration?
http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941 -
i want to say 'if the root current frame is greater than 40
and less than 50...
if (_root._currentframe= ?)
sorry, i'm kinda crap at this! please help!...You need to have a double || to get the logical or, otherwise
you get the bitwise or.
NSurveyor, I always put brackets, simply for readability. 25
years ago I have been programming in APL, probably the "shortest"
programming language ever. It looked like swearing in cartoons,
with lots of stars, bombs and knives :-) I knew very few people
that could read and understand those programs once they were
written, not even the authors themselves. That taught me to
introduce
redundancy -
Case structure greater than or less than
Hello.
I am having difficulty with making a case structure that if a numerical input is greater than a number it does one thing and less it does another.
Basically how do you work with case structures that aren't boolean, specifically if a number is greater than 38 it reassigns it as 0 (multiplies by zero something like that).
Solved!
Go to Solution.http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/case_selector_values/
Or use the boolean logic you are talking about. If you use a greater than on your number and it is greater you will get a true and if it is not greater than it will be false. You could even use the in range function (comparison pallete) to get a true or false.
Or give more information about what you are trying to do. The more info you give, the better answer you will get. Otherwise we have to guess why you are trying to do it the way you are asking when there could be a better way. -
I have two block ctr nad detail block i want to search by contrl block where i give two boxes
and one name is searh_type and other name is value_1 and create a buttom and wirte this code on when button pressed for greater then but when i press the button it was not working it will show all the data either greater on lesser please guide
declare
l_where varchar2(4000);
begin
if :search_type = 'VALUE' then
l_where := 'value > :value_1' ;
else
null;
end if;
set_block_property('order_tracker1',default_WHERE,l_where);
go_block('order_tracker1');
execute_query;
end;
Thanks And Regards
Vikas SinghalTry this code:
declare
l_where varchar2(4000);
begin
if :search_type = 'VALUE' then
l_where := 'value > '||:value_1 ;
else
null;
end if;
set_block_property('order_tracker1',default_WHERE,l_where);
go_block('order_tracker1');
execute_query;
end;Put also a message to check if your where condition is right or not as follow
message('my where condition is '||l_where);
message(' ',no_acknowledge);Hope it helps you,
Fabrizio
If this answer is helpful or correct, please mark it. Thanks. -
I dropped by iPhone 4S two days after buying it, and would therefore like to get the damaged screen repaired at the authorized service center.
I took it to Etisalat (the carrier where I bought it) and explained clearly that I am aware that this kind of damage is not covered by warranty, and that I will pay for the repairs.
They took the device, two weeks later it was returned un-fixed with a message saying "Physical damage is not covered by warranty".
I resubmited the device, this time writing "Please quote for replacing the damage screen at my own expense. I am FULLY aware this is not covered by warranty".
Two weeks later...<drum-roll> the phone is back un-fixed with a message saying "Screen physically broken, not covered by warranty"
So if anyone reading this has any suggestion on where / how to get this phone repaired without voiding the warranty please let me know. Clearly the carrier (or their service center Technocare) are clueless.
Thanks.Thanks Ingo2711,
The pages you suggested point to the local carriers as the only authorized service centers.
The problem with Etisalat is that they outsourced that service to another company called Technocare.
That company sent the phone back twice (for the reasons mentioned above) and suggested that I have it fixed at a third party, which I am refusing to do since that will void my warranty. Additionally, they are refusing to give me any thing in writing to that affect. -
It causes my macbook pro 15" to get hot.
the very problematic plugin-cointainer is the cause of all this! i assume you may be open web page that contain flash right? high system resource slowing your browsing capabilities (click,tab,openpage, slowresponse,etc)
it is very common problem in windows. you can read it in here under Known Issues->http://www.mozilla.com/en-US/firefox/3.6.15/releasenotes/
+Some slower machines may see degraded mouse responsiveness when viewing certain Flash videos
This PROBABLY can happen in your macosx too. Im not sure for that.
I also try firefox in Ubuntu, and suprisely it smoothly open flash video and playing FB Poker at the same time wo performance degradation .
i cant give any solution for this unless they came out with better and enhanced performance of firefox for all systems. -
Sale value of group asset- sub asset more than wdv less than group total
Hi,
I am maintaining group asset for Income Tax Depreciation. All the asset under the same class is consider single asset for Income tax purpose. For eg value of Plant and machinery under Income tax is derived for all asset totaled together after depreciation for the year. Thus P&M is considered single asset for calculating I.T. Depreciation, even though it may contain 100 assets.
For Income tax, for P & M class of asset depreciation for first year is with different rate and for rest years with different rate. Hence I have maintained sub asset for this group asset. Whenever a new asset is purchase, for income tax purpose it is recorded in the newly created sub asset number.
The problem arises in sale of asset. When I am selling any machinery the sale value is deducted from the group value for IT purpose. In this case even though the value of sale is higher than the WDV of the individual asset it is adjusted in total. While configuring this in SAP I am facing following difficulties-
1. As the rate of depreciation is different for different years I am not able to maintain a single group asset. I have to create a sub asset. This facilitate the right depreciation calculation by different dep rate for purchases in diff year.
2. But as I am maintaining different Sub asset the sale value cannot exceed the balance of that particular asset, even though the total value in SAP for all the group assets is higher.
3. I can not allow having negative values. Negative values are not allowed to maintain in IT Records.
Please help to resolve the issue.Hi,
I am maintaining group asset for Income Tax Depreciation. All the asset under the same class is consider single asset for Income tax purpose. For eg value of Plant and machinery under Income tax is derived for all asset totaled together after depreciation for the year. Thus P&M is considered single asset for calculating I.T. Depreciation, even though it may contain 100 assets.
For Income tax, for P & M class of asset depreciation for first year is with different rate and for rest years with different rate. Hence I have maintained sub asset for this group asset. Whenever a new asset is purchase, for income tax purpose it is recorded in the newly created sub asset number.
The problem arises in sale of asset. When I am selling any machinery the sale value is deducted from the group value for IT purpose. In this case even though the value of sale is higher than the WDV of the individual asset it is adjusted in total. While configuring this in SAP I am facing following difficulties-
1. As the rate of depreciation is different for different years I am not able to maintain a single group asset. I have to create a sub asset. This facilitate the right depreciation calculation by different dep rate for purchases in diff year.
2. But as I am maintaining different Sub asset the sale value cannot exceed the balance of that particular asset, even though the total value in SAP for all the group assets is higher.
3. I can not allow having negative values. Negative values are not allowed to maintain in IT Records.
Please help to resolve the issue. -
User input formula variable with greater than/less than operators for KFG
Hello all,
I have used a formula in my query that is a difference of two key figures .For e.g:
Difference = tax from system A - tax from system B.
Now when the users run the report they should be prompted for the 'Difference' threshold for seeing the report say where difference is greater 100 or equal to 10 and so on.Currrently I have created a formula variable with 'user input' and created a 'condition' to display 'Difference' greater than the user entered value.
However,it is required to have various selection options for setting the threshold of difference.For e.g User should be able to set say 'equal to'/'greater than/less than/not equal to operator for 'difference' in the initial selection screen of the report.
With the current user-input formula variable I am not getting these 'greater than' etc operators.Any ideas on how to achieve this?Ya know, that's all well and good ... BUT ... WHAT IF you do want to sort text type columns with Greater Than and Less Than operatiors??
SQL does it just Fine ... so WHY does APEX have the limit??? This is an Oracle BUG ... it SHOULD NOT limit the operators ... I realize "they" may be trying to be helpful with proper constraints to field searches ... but ... if SQL can do it, then ... no need for a limit.
EG ...
Show the records where
the "Begin_Year-Wk" data is less than or equal to "2009-09" AND
the "End_Year-Wk" data is greater than or equal to "2009-04"
... to give everything that was running in that 5 week period whether or not it starts within that time frame
I can run this query perfectly fine via SQL ... but not in APEX ... unless I reconvert a lot of strings back to numbers, and for sorting / formatting / explain-to-user purposes, I really don't want them to be numbers.
So ... there's gotta be a hidden tweak for operators somewhere ... -
Filtering Interactive Reports with Greater Than Less Than Operators
The available filter operators in the interactive reports do not include greater than or less than. How is it possible to enable an application user to filter records where greater than or less then logic is needed?
For example the user wants to query records where sysdate falls between a start and end date.
Regards,
ToddYa know, that's all well and good ... BUT ... WHAT IF you do want to sort text type columns with Greater Than and Less Than operatiors??
SQL does it just Fine ... so WHY does APEX have the limit??? This is an Oracle BUG ... it SHOULD NOT limit the operators ... I realize "they" may be trying to be helpful with proper constraints to field searches ... but ... if SQL can do it, then ... no need for a limit.
EG ...
Show the records where
the "Begin_Year-Wk" data is less than or equal to "2009-09" AND
the "End_Year-Wk" data is greater than or equal to "2009-04"
... to give everything that was running in that 5 week period whether or not it starts within that time frame
I can run this query perfectly fine via SQL ... but not in APEX ... unless I reconvert a lot of strings back to numbers, and for sorting / formatting / explain-to-user purposes, I really don't want them to be numbers.
So ... there's gotta be a hidden tweak for operators somewhere ... -
Using '(' and less than operator in an xsql page sql query
Dear All,
I tried to use left parenthesis '(' and less than operator in an sql query through an xsql page, it doesn't let to use them.
Do you know how to use those in an xsql page?
Thanks for your help.
MustafaFollowing is the xsql page that I tried to run:
<?xml version="1.0"?>
<xsql:query xmlns:xsql="urn:oracle-xsql" connection = "bib" rowset-element="bib" row-element="book">
(SELECT year,title,last,first,' ' as affiliation,publisher,price
FROM book,author
WHERE year=2001 and bookid=parentid
UNION
SELECT year,title,last,first,affiliation,publisher,price
FROM book,editor
WHERE year=2001 and bookid=parentid)
INTERSECT
(SELECT year,title,last,first,' ' as affiliation,publisher,price
FROM book,author
WHERE publisher='Publisher1' and bookid=parentid
UNION
SELECT year,title,last,first,affiliation,publisher,price
FROM book,editor
WHERE publisher='Publisher1' and bookid=parentid)
</xsql:query>
This is the error message generated after running:
<ERROR>java.sql.SQLException: ORA-01009: missing mandatory parameter</ERROR>
When I remove the parentheses it works but this results in a different result set.
Can anybody tell me the reason?
Thanks,
Mustafa
null -
IiPad retina storage is disappearing after update to ios8.02. I had over 6.4 gig before the update. I now have less than 710 mb. There is no music or videos on the iPad. I have deleted almost all apps and most photos. Every time I use it, the storage is going down. I have tried resetting by powering off and this has no effect.
iPhone, iPad, and iPod: Understanding capacity
http://support.apple.com/kb/ht1867
How much space is used by your Other? You may be able to reduce.
How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
http://tinyurl.com/85w6xwn
How to Remove “Other” Data from iPhone, iPad and iPod Touch
http://www.igeeksblog.com/how-to-remove-other-data-from-iphone/
With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6/7, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
What is “Other” and What Can I Do About It?
https://discussions.apple.com/docs/DOC-5142
iPhone or iPad Ran Out of Storage Space? Here’s How to Make Space Available Quickly
http://osxdaily.com/2012/06/02/iphone-ipad-ran-out-of-available-storage-space-ho w-to-fix-quick/
6 Tips to Free Up Tons of Storage Space on iPad, iPhone, and iPod Touch
http://osxdaily.com/2012/04/24/6-tips-free-up-storage-space-ipad-iphone-ipod-tou ch/
Also,
How to Clear Message/iMessage Cache on iPhone & iPad And Reclaim Lots of Free Space
http://www.igeeksblog.com/how-to-clear-message-imessage-cache-on-iphone-ipad/
What is Stored in iCloud and What is Not
https://sites.google.com/site/appleclubfhs/support/advice-and-articles/what-is-s tored-in-icloud
Cheers, Tom -
TS1398 Wifi network password less than 8 characters
In the past, I was able to connect to my kids schools wifi network with a password that was 6 characters long. Since updating I am not able to use passwords that are less than 8. Is there away around this? I can connect with other non apple devices (school owned).
Try and reset your network settings by going to 'Settings > General > Reset > Reset Network Settings'.
If you still have problems after this you may need to contact the schools IT administration.
Hope this helps
Maybe you are looking for
-
JAR files required for Portal Application
Hi Experts I am currently migrating my custom Masthead application from NW 7.0 to NW 7.3. However, when I migrated the PAR into EAR using migration tool from Portal and imported this EAR file into NWDS7.3, the JSP pages in it shows error. Also when t
-
Oracle ses Admin password not working
Hi, The ip address of my machine has changed. So, the admin and search pages were not opening up since they have old ip address. So I went to the files and changed all the occurences of old ip with new one. I was not able to change it in .dbf and .lo
-
SAP AFS - VL10B delivery from specified storage location
Dear all, I have created STO for an AFS material. As this material is available in various storage locations of the supplying plant. Now I am trying to create delivery through VL10B, entered the Purchase Order, Plant and specific location in the mate
-
Hi, i have downloaded the jwsdp-1_3_01-tutorial and i have got to the section for setting path Variable so i can develop, deploy, and run a simple Web application. Its says that i have to add the bin directories of the Java WSDP, J2SE SDK, and Ant in
-
Acutal and Target Processes for two concurrent managers refuse to be equal
Hi I have bounced the concurrent manager. I have stopped all services on the apps node then started them again. All Actual / Target processes are now equal except two - the OAM Generic Collection and the Output Post Processor What, if anything, can I