Ask about the dates
in the table belowrm_limit
as_on_dt limit_expiry_date OS ctry_id
MARCH 13, 2011 5000 1 JUNE 12, 2011
APRIL 15, 2010 6000 1 DECEMBER 5, 2011
MAY 1, 2009 3 NOVEMBER 2011-156-2
How can I write a query for the Sub statement:--
If in rm_limit difference between the two being on the date and the limit_expiry_date > 180, but less than 365 days then the sum of all o/s (for the ctry_id in column 1)
Apostrophes would make "180" in a literal string, so the answer is categorically NO!
180 is a literal number - '180' is a string literal. Since you have a numerical value (the result of the subtraction of a date from a date), then you want to compare with a literal number.
Do not compare the strings, numbers or vice versa...
Tags: Database
Similar Questions
-
All,
I know the difference between the following two queries
Select TO_CHAR (TRUNC (sysdate), 'dd-mon-rr') of double;
Select TO_CHAR (TRUNC (sysdate), 'dd-mon-yy') of double;
However, both the query gives the same result as 3 November 09 '.
Concerning
ND.. .to what century?
SQL> var dt varchar2(10) SQL> SQL> begin 2 :dt := '03-11-51'; 3 end; 4 / PL/SQL procedure successfully completed. SQL> SQL> select TO_CHAR(to_date (:dt, 'dd-mm-rr'),'dd-mon-yyyy') from dual; TO_CHAR(TO_DATE(:DT, -------------------- 03-nov-1951 SQL> SQL> select TO_CHAR(to_date (:dt, 'dd-mm-yy'),'dd-mon-yyyy') from dual; TO_CHAR(TO_DATE(:DT, -------------------- 03-nov-2051
Do not use a two-digit year...
-
I already bought the annual plan, I have installed PS, but I can't open the LR, he keeps asking about the serial No.
isn't the annual plan for ps and lr?
Download LR you remove and reinstall your installation of Photoshop Lightroom 5? Licensing for your membership apply to Lightroom if you install through the creative Cloud Desktop application. You can find more details at install and update the apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.
-
Ask about the feature find my phone
Hello Apple support Team,
I have a question about the find my iPhone feature which is as follows.
-If I had put in place the "find my phone" feature when I bought the iPhone and did not open at all in 2-3 months. So that the disconnection of the app itself?
I ask this because my phone got stolen yesterday and looking for opportunities that could have gone wrong.
On my laptop, I'm always a corner of yesterday in front of https://www.icloud.com/#find to find the location, but its doesn't help not.
(PS: this my second time that find my iPhone is not useful for me, I really wish that Apple must lock the turning the option off when the phone is in mode Code (lock mode))
Waiting for your response.
Thank you
Ravi
If you enable find my iPhone, it will be on except if you have disabled (requires your password to iCloud). The location will only show if the phone is connected to a network and still has the power.
-
Need information about the data included in the example for the inner race with flaws
Hello
There are several examples for fault detection in bearing (Vibration tool sets). I need more information about these data include:
-Bringing its specifications
-How to perform data acquisition
-a link to the tutorial
I came across this manual that shows how to use OATS envelope detection VI to perform detection of failures of bearings.
http://zone.NI.com/reference/en-XX/help/372416A-01/svtconcepts/cst_speed_brg/
It lists the specifications of turnover:
- Inch diameter 0,2813
- Primitive diameter: 1,1228 inch
- Speed: 1 234 RPM
It also goes to the list of characteristic frequencies determined by these attributes.
The data acquisition is carried out by the use of an accelerometer and a tachometer. These devices measure the vibration and the rotation speed of the bearing data. Failure detection uses a method called detection of the envelope to look at the signals of the bearing and compared to signals of standard bearings to the discovery of flaws. You can learn more about the method of acquisition of data here:
http://zone.NI.com/reference/en-XX/help/372416A-01/svtconcepts/fault_detection/#Envelope_Detection
The first link is a tutorial on the detection of failures in the bearings. The end of the link provides the location of an example VI that may also be useful.
-
Ask about the creation and filling I$ table on different condition
Hello
I have a question about the creation and filling I$ table on a different condition. In which condition the I$ table creation? And these conditions are given below:
(1) * source and transit area * are on the same server (that is to say target is located on another server)
(2) * gathering and target area * are on the same server (IE source is on another server)
(3) * source, transit area and target * are * different 3 * Server
Source 4), area transit and target are on the same server
Thank youI'm not quite clear to your question. Always try my best to erase it.
In your all over requirement I$ table will be created.
If the same staging as target (a database, a user) then all temporary tables are created in this user
If the scaffolding is different from the target (a database, two users (A, B)), then all temporary tables will be created under that user A (lets consider) and the data will be inserted into the target table that is present to user BStaging is different from the target (two database, two users (A1, A2), architecture not recommended) if all temporary tables will be created under that user A1 (A1 of the databases) and the data will be inserted into the target table which is present in user A2 (A2 data base)
If the source, staging, the target will be under a database then no. LKM is required, IKM is sufficient to load the data into the target. Especially for this, you can see an example given by Craig.
http://S3.amazonaws.com/ora/ODI-Simple_SELECT_and_INSERT-interface.swfThank you.
-
Problem connecting creative cloud - has repeatedly asked for the date of birth
After purchasing the CC and trying to login I continually ask myself for my brithdate. After the seizure of the date of birth, the screen comes back again to ask my date of birth. Can't get through this screen so that I can download the CC apps. Any suggestions?
Hi Donatello3,
Welcome to the community!
I checked your account and found that there is a problem with your Adobe ID, i.e. the email address. Please check this link http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html and if this does not help, then click on Chat contact button our Adobe now support team and they will solve the problem.
Thank you!
Ankit
-
Question about the dates of the file download.
Why the dates of creation, 'last change' and especially 'last opening' all appear as a date a month when I just downloaded Mozilla for the first time on my Mac? Edit
It's information from the database that you downloaded
the file from. -
On several occasions, I was blocked some sites Firefox questioning the site's certificate. The sites in question are trustworthy unequivocally. I'm having this problem with Google, Firefox Help, Createspace, Amazon, Dell and many others I've visited hundreds and thousands of times in the past. I have possible hardware problems, and I think that this blocking certificate prevented Dell technicians connect remotely with my computer. My virus programs are up to date and virus problems.
Check the date and time of the clock on your computer: (double) click on the clock icon in the Windows taskbar.
-
Ask about the policy of replacement of defective parts under warranty (laptop)
Hello. I had a laptop computer with a HARD drive 320, which became faulty (not totally, in fact) within 2 weeks of purchase. I turned it a HP service center and they got it replaced with a new job. Now everything works fine ATM, however I have noticed that my current HARD drive is a Western Digital while I remember that I had before the failure was a one Seagate. Now, I have a question about the HP replacement policy: is it possible to get another brand of HARD drive altogether in lieu of one that was part of the original shipment or should I have obtained one of the same company (Seagate) otherwise the same exact model of the HARD drive as a replacement?
They replace it by what they have there at the time, any policy on this.
This is a forum to a user, no employee of HP here, with the exception of the moderators of the forum.
WD is currently better than Seagate in my opinion.
.
-
Ask about the level schema restrictions
I have a scenario like below:
We have 3 diagrams A, B, C
A schema is a super user and the actual tables.
Schema B is one with many privileges as Select_Catalog_Role, resources, etc. to connect previously created.
Diagram C is newly created and having only create session privilege and no privilege level table.
We must give access to the B and C schema for readonly access (select).
What I did:
SQL > conn A\pass
connected.
Grant select on TableName to B;
Grant succeeded.
Grant select on TablesName to C;
Grant succeeded.
SQL > conn B\pass
connected.
Select * from TableName; (displays the data in the table)-> how?
Select * from A.TableName; (Able to select the data)
SQL > conn C\pass
connected.
Select * from TableName; (not able to select the data for the particular table)-> why not?
Select * from A.TableName; (Able to select the data)
I just wanted to know why in diagram B I can acess the table directly (without using the Schema.TableName) while in the schema C I write the Schema.TableName to access summary.
I even tried giving the privilege to CHOOSE ANY TABLE to diagram C. Also in this case I have to use Schema.TableName to access summary.
My question is what access is schema B so that it is able to access the data in the Table schema has without making use of "Schema.TableName".
Examples will be useful.
Kind regards
Sanrine
Hello
You have connection triggers that make something - like alter session set current_schema?
See you soon,.
Rich
-
Hello
I have a question about the segragation of database access using authentication of the os (like sqlplus "/ as sysdba") in the windows environment. Let me briefly explain my requirement: -.
Assume that you have two DBA viz DBA1 and DBA2 and 4 resideds of databases in a windows server say A, B, C and D.Now I want to configure it in a way if DBA1 opens a session on the server then it may connect to the database A and B using only OS and DBA2 authentication can connect to database C and D only use OS authentication.
Please let me know how to configure for this requirement.
Version of the database is 11.2.0.3
Hello
This doc is 11.1 but I guess it's the same in 11.2 roles on Windows and administering external users
You create a group ORA_SID_DBA and doing it this way - in recent years I have done but it used to work ok...
See you soon,.
Harry
-
Questions about the data reporting PowerCLI store
Hello
I have a problem with a script that I use and I'm looking for an idea on the problem.
I have a script that gathers pretty much all the information on the virtual machine in my cluster. (Disk size, free disc, data store).
Most of the time, it works very well. But there is something that bothers me little. It doesn't report the data store that each VM is linked to. It works for most, but on a select few, it's not.
I wonder if there is something in my script which is the first cause, or if it is a question of VSphere.
My script and the output is attached.
Thanks in advance for the help.
-AaronI was able to get the warehouses of missing data as well.
That's when the VMDK are stored on more than 1 data store for a specific virtual machine.
In this case, the line
$myDS = Get-Datastore | Where { $_.Id -eq $VM.Datastore}
nothing will store in $myDS because $VM. Data store is an array of MoRefs.
In fact you try to map the partitions in the guest OS with data warehouses that host the VMDK files.
There is no easy solution for that I fear (there are number of threads in this community who are trying to do the same thing).
I fear that there is no real solution for this problem
-
Ask about the structured storage of XMLTYPE column in Oracle Xml db
Dear all,
Version of DB: Oracle 11g (11.2.0.3.0)
I have a table with an XMLTYPE column with a structured storage.
CREATE TABLE Orders ( Order_id NUMBER NOT NULL, Order_etc VARCHAR2(100), Order_desc XMLType NOT NULL ) XMLTYPE Order_desc STORE AS OBJECT RELATIONAL XMLSCHEMA "http://localhost/public/xsd/order_desc_xsd.xsd" ELEMENT "OrderState";
I then recorded the XSD XML Db schema that is required for the structured storage.
Before the creation of the table, I had created a table XMLTYPE (db_objects) and was able to use the query to verify that all objects, the XMLTYPE table got broken into when I signed his XSD below.
SELECT column_name, data_type FROM user_tab_cols WHERE table_name = 'DB_OBJECTS';
And used under query to find data stored in the object-relational structure for my table (DB_OBJECTS) created with definition of XMLTYPE.
SELECT EXTRACTVALUE(xseq.column_value, '/THISROW/OWNER') AS owner , EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_NAME') AS object_name , EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_TYPE') AS object_type , EXTRACTVALUE(xseq.column_value, '/THISROW/OBJECT_ID') AS object_id , EXTRACTVALUE(xseq.column_value, '/THISROW/CREATED') AS created FROM db_objects do , TABLE(XMLSEQUENCE(EXTRACT(VALUE(do), '/ROWSET/THISROW'))) xseq WHERE ROWNUM <= 10;
Now could someone let me know, How to find how the column of XMLTYPE (Order_desc) was divided between other objects, just as I did for the Table with XMLTYPE (as shown above)?
Thank you very much.
First of all, because you are on 11.2, ExtractValue is obsolete and the documentation lists three options to use instead. Here's an (untested) option
SELECT owner, object_name, object_type, object_id, created FROM db_objects do, XMLTable('/ROWSET/THISROW' PASSING do.object_value COLUMNS -- Set data types accordingly owner VARCHAR2(20) PATH 'owner', object_name VARCHAR2(20) PATH 'object_name', object_type VARCHAR2(20) PATH 'object_type', object_id VARCHAR2(20) PATH 'object_id', created VARCHAR2(20) PATH 'created');
Secondly, why the column order matter? You store in a method of object / relational. As long as the XML is valid per the schema, Oracle will be able to store the data and thus to retrieve later. How these data are mainly internal Oracle and shouldn't be touched because it can be changed from one version to another. You can use the schema annotation to control how Oracle cards and stores the XML content, but nothing in there specifies the column order I know.
It seems several details are missing information which could help others to answer your question as to what you need.
-
Ask about the delay block drain plug
Hello
I have a question regarding delay clean in Oracle block.
I read below the meta link Note: 40689.1
Consider a transaction that updates a million row table. This obviously visits a large number of database blocks to make the change to the data.
When the user commits the transaction Oracle does NOT go back and revisit these blocks to make the change permanent. It is left for the next
transaction that visits any block affected by the update to 'tidy up' the block (hence the term 'delayed block clean out').
But the location of the table transaction rollback segment can be recycled once it is marked as a clerk.
If any new transaction tries to visit a block affected by the last update, and numbers on this block is changed and goes to the corresponding rollback segment transaction location of the table, but this location for the transaction rollback segment is recycled as a result of the validation.
So, how Oracle will take care of this situation?
Thanks in advance.
It will do still a drain plug delay block with a "best estimate YVERT" as it can extract is no longer the SCN of the transaction to cancel it.
See http://www.jlcomp.demon.co.uk/cleanout.html
Hemant K Collette
Maybe you are looking for
-
Original title: 80072EFE Hi every time I try windows update, I get this error 80072EFE code CAN ANYONE HELP!
-
Can I lack an impression if I place two print requests at the same time from two different nodes on the same printer?
-
Text broken blackBerry 10 or unknown format when sending email from BB Z10
I have installed POP account for my office email, every time I tried to send the email from this receiver account becomes different format and signs as between a words = insterded (that = y) r is missing and = sign is insterded automatically at the o
-
Computer: HP Envy 360Photoshop version: CS6I opened my JPG image and wanted to convert bmp (BitMap), so I choose the part of the JPG I wanted and it copied in a new document I made by accident, 32-bit. I didn't know how it would affect the image but
-
Lightroom 6 does not guard crashing
I recently tried the trial for light room and I liked it and it has a large so I went out and bought I installed it and I can't seem to open it brings the screen upward then crashes instantly I uninstalled and reinstalled several times I put it on my