How to reference a content of columns to another in a where clause clause
OK, so I need 2 columns of reference I joined in a data extraction. I need to find one was to say:
"where table_1.MFR_NM is like table_2.use_field1.
is it still possible?
Two columns contain the name of the PIECE, but they are of another era of data so 1 is named and the other bears the name, but it may also have the parent company in there too. I thought that if I was able to reference it with 'LIKE' it would work.
Any ideas?
Thank you
where table_1.mfr_nm like '%' || table_2.use_field1 || '%'
While match data like this:
Scott will match % cot
Jeffery will match % Jeff
etc.
But don't help much in these cases:
Bob smith will smith
(no match)
Tags: Database
Similar Questions
-
How to reference the names of columns, if you use select *.
Hello
How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.
Even if I could get the column names in the other variables. I am new to CF so question may be stupid.
getting column names: -.
< cfquery datasource = "RTW_ORA" name = "cn" >
SELECT COLUMN_NAME
OF ALL_COL_COMMENTS
WHERE TABLE_NAME = ' #meas #
< / cfquery >obtain data: -.
< cfquery datasource = "RTW_ORA" name = "cd" >
SELECT *.
To #meas #.
< / cfquery >How do all the output data?
Any help would be much appreciated!
Thank you
Tushar Saxena
How to reference the names of columns to get out of the data, when you use select * and not aware of the column names (and number of columns) in advance.
Even if I could get the column names in the other variables. I am new to CF so question may be stupid. getting column names: -.
SELECT COLUMN_NAME
OF ALL_COL_COMMENTS
WHERE TABLE_NAME = ' #meas #
obtain data: -.
SELECT *.
To #meas #.
How do all the output data?
Your question is not stupid. You can use the concept of a query requestand their properties cfquery attributes name and result.
SELECT *.
To #meas #.
column names: #column_names #.
number of columns: #no_of_columns #.
SELECT #column_names #.
FROM the cd
A SQL query:#resQoQ.sql #.
Query:
#column #: #cd [column] [currentrow] #.
T/t:
#column #: #QoQ [column] [currentrow] #.
-
How to create a procedure for REF CURSOR output with any WHERE clause?
I have a requirement like this: I have a huge question that need to reuse in my code over 10 times. This SQL has about 50 lines. Here for these 10 odd times sometimes changes in WHERE clause (columns are the same). So I can't create a view as SQL is not static.
I thought to write a procedure with a para of WHERE_CLAUSE entry. I pulled out a refcursor sys by adding where clause. But I can't do it because you cannot add a clause like this where clause.
i.e.
The foregoing gives an error.PROCEDURE dynamyic_query (p_where_clause IN VARCHAR2, p_out_query OUT SYS_REFCURSOR ) IS BEGIN OPEN p_out_query FOR SELECT ......... FROM table WHERE || ' ' || p_where_clause; END;
How to handle such a situation? Any help would be greatly appreciated.Hello
Channa wrote:
... However, when I change the procedure like this:PROCEDURE FORMS_TEXT_DYN_SQL_TEST(p_where_cluase IN VARCHAR2, p_out_cursor OUT SYS_REFCURSOR) IS v_stmt VARCHAR2(1000); BEGIN v_stmt := 'SELECT tname FROM tab_test WHERE tname LIKE ''%ABS_V4%'' AND :y'; OPEN p_out_cursor FOR v_stmt using p_where_cluase; END;
And run this block of code:
declare v_tname varchar2(200); out_cursor sys_refcursor; begin forms_text_dyn_sql_test(' 1 = 1 ', out_cursor ); LOOP fetch out_cursor INTO v_tname; exit when out_cursor%NOTFOUND; DBMS_OUTPUT.PUT_LINE(v_tname); END LOOP; end; /
I get the error:
[1]: (Error): ORA-00920: invalid relational operator ORA-06512: at "ABS.FORMS_TEXT_DYN_SQL_TEST", line 6 ORA-06512: at line 5
Looks like you can only set column_name =: z, column_name =: values of type y. You can not it seems to replace it with no WHERE CLAUSE?
A bind variable, such as: it, represents a single value.
If: is the VARCHAR2 '1 = 1', thenSELECT tname FROM tab_test WHERE tname LIKE '%ABS_V4%' AND :y
takes the value
SELECT tname FROM tab_test WHERE tname LIKE '%ABS_V4%' AND '1 = 1'
I think you want something like this:
CREATE OR REPLACE PROCEDURE FORMS_TEXT_DYN_SQL_TEST ( p_where_clause IN VARCHAR2 , p_out_cursor OUT SYS_REFCURSOR ) IS v_stmt VARCHAR2(1000); BEGIN v_stmt := 'SELECT ename FROM scott.emp WHERE ename LIKE ''%A%'' AND ' || p_where_clause; OPEN p_out_cursor FOR v_stmt; END; / show errors SET SERVEROUTPUT ON declare v_tname varchar2(200); out_cursor sys_refcursor; begin forms_text_dyn_sql_test(' 1 = 1 ', out_cursor ); LOOP fetch out_cursor INTO v_tname; exit when out_cursor%NOTFOUND; DBMS_OUTPUT.PUT_LINE(v_tname); END LOOP; end; /
Output:
ALLEN WARD MARTIN BLAKE CLARK ADAMS JAMES
-
How to set the content of the column for lines of automatic separation
Hello guys,.
I have a problem with the column width and the content of column in a standard report. In the report are hugh entries that are not interrupted by a space character. I put my column width to a special value by usingen "style css: display block; Width: 300px; ». Now the problem is that some of the entries in the column with a longer width that the column width is set. Then they overlock the entries in the column next to them.
My question is: How to set the column lines of automatic content break after a certain number of characters?
After searching for a couple of websites and discussion thread, I found maybe a reference to the solution. I hope that it helps you to give me an answer.
A4 FORMAT LAST_NAME COLUMN
*/*
concerning
wderrWderr,
It is more a matter of HTML as a matter of APEX... You can start by looking here:
http://www.456bereastreet.com/archive/200704/how_to_prevent_html_tables_from_becoming_too_wide/Kind regards
DanBlog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/ -
How do reference a value in the ATTR5 column from a mapping FDMEE Script?
OK, I think I thought about it:
In Jython his:
fdmRow.getString ("ATTR5")
Post edited by: Robb Salzmann - figured it out. I thought I want to leave here in case someone else had the same question. Still available for other answers and suggestions :) points
Hello
There are a few points not specified in your question:
* How to reference the ATTR5 column in the strRecord mapping FDMEE Import Script argument?
-There are no FDMEE mapping import Scripts. You have FDMEE mapping of Scripts and Scripts to import FDMEE. They are different types of scripts
-strRecord is used in the Import Script. Is the 2nd parameter of the import script works... def funcname (param1, param2):
-ATTR5 is a column in table TDATASEG. It is accessible in the FDMEE mapping using fdmRow.getString("ATTR5") or simply ATTR5 scripts if you use #SQL mappings
If it was your original question, or you have any other problem?
Concerning
-
How to read the contents of ps_txn (content column)?
I'm trying to debug our BC4J ADF application that doesn't seem not to manage AM release correctly and therefore table PS_TXN grows over time. I was wondering if there is an easy way to read the contents of its "CONTENT" BLOB column?
RadeRade,
Sorry for the confusion. I meant 11g. SQLDeveloper in JDev integrated to 11g.
You can use the standalone SQLDeveloper 1.5.1 1,5,2 or 1.5.3. All behave as I've described before.
You can even export the connection of jdev an import in SQLDeveloper.Timo
-
How to read the contents of the attachments to the record listener?
Hi all
We have a blackberry user interface application that implements FolderListener. The messagesAdded(FolderEvent e) public void in the record listener method is called whenever a new message arrives on the device.
Now, there are some emails that will also spare.
Can someone tell me how to read the contents of the attachment?
I can read correctly the content of the body of the email.
Our code to handle the arrival of e-mail for your reference is mentioned below.
public class MyUIApplication extends UiApplication implements FolderListener { public void messagesAdded(FolderEvent e) { Message orginalMessage = e.getMessage(); Folder messageFolder = orginalMessage.getFolder(); if (e.getMessage().isInbound() == true) { String sender = orginalMessage.getFrom().toString(); String subject = orginalMessage.getSubject(); String body = orginalMessage.getBodyText(); String attachmentContent = ""// Read atachment content here? // some more code } } }
Any help in this regard will be appreciated.
Thank you.
There is no way to prevent a menu item to be added to an AttachmentHandler. When a user clicks your menu item will be called the run method.
If you have registered an AttachmentHandler for your type of attachment and the prefix the file name of the attachment with x-rimdevice, you would be able to access its contents of in a FolderListener.
-
How to add auto calculation of column-shaped tables?
Hi all
I use Apex5
I have the form master detail
The columns of detail is:
select "ID", "OUT_ID", "ITEM_ID", "ITEM_NAME", "QTY", "PRICE", "ASSETS_ID", "STOCK_BALANCE", "NOTICE" from "#OWNER#"."T_OUT_DTL" where "OUT_ID" = :P9_ID
- I want to add call column 'Total' auto calculate values quantity * price...
- I want 'Total' auto calculation once I set values in quantity & price...
How to make... Help me
Thank you
Hi Amr Abdeen,
AMR Abdeen wrote:
I use Apex5
I have the form master detail
- I want to add call column 'Total' auto calculate values quantity * price...
- I want 'Total' auto calculation once I set values in quantity & price...
Assuming the form of tables after columns:
F06 - Qty
F07 - price
F10 - Total
NOTE: Make sure your respective columns and modify the code below accordingly.
You can do this in two ways:
Solution 1: Using JavaScript
- Change your Page attributes-> "JavaScript"-> "Function and declarations of global variables" section add the following:
//Checks whether the given string is numeric function isNumeric(str) { if (!str.length || !isNaN(str.replace(/\s/,"z")/1)) {return true;} return false; } //Checks whether a field is null or numeric else returns 0 function f_chkNumberFlds(pVal) { var lVal; if ( pVal.length > 0 ) { if (isNumeric(pVal)) { lVal = pVal; } else { lVal = 0; } } else { lVal = 0; } return lVal; } //Calculates the row total function f_calculate_total(pThis) { var total = 0; var row_id = pThis.id.substr(4); var qty = f_chkNumberFlds($('#f06_'+row_id).val()); var price = f_chkNumberFlds($('#f07_'+row_id).val()); if (qty > 0 && price > 0) { total = parseFloat(qty*price); } $('#f10_'+row_id).val(total); }
- Change the quantity and price columns. Go to the column attributes-> 'Attributes of the item' add the following:
onchange="f_calculate_total(this);"
Solution 2: Using a dynamic Action
Reference: calculated as a column
I hope this helps!
Kind regards
Kiran
-
[AS] IDCS4 - how to reference rectangle tagged in layer
Hello
What I'm trying to do is access a tagged rectangle called IMAGE, with a title of IMAGE script in a group on a locked layer and replace the contents of rectangles with a new image and did not have much success.
When I unlock the layer and no collective group, I can then access the rectangle labeled
with the code below.
(the code was cobbled together from here http://www.macosxautomation.com/applescript/datapublish/index.html( )Could someone please show me how to reference a rectangle labeled on a layer that is locked in a prayer group, if I need to unlock the layer, then that's fine.
Tell application "Adobe InDesign CS4"
According to the active document
value of the rectangle_list each rectangle of each spread ¬
where the label is not "" and the type of content is graphic
If the rectangle_list is {}, then
error "there no rectangles tagged image."
end if
If the rectangle_list class is not in the list then
define the rectangle_list to the rectangle_list as list
end if
tell the end
Repeat with i from 1 to the count of the rectangle_list
Try
error_indicator Set 1
the value this_rectangle to article i of the rectangle_list
the value this_tag to the name of this_rectangle
value this_image to 'PATH to IMAGE' as an alias - tests
error_indicator Set of 2
say this_rectangle
the value this_image to set this_image
If the class of this_image is the defined list then this_image to article 1 of the this_image
adjustment, given the content in the frame
the value image_h to the horizontal scale this_image
the value of the image_v to the vertical scale of the this_image
If the image_v is greater than or equal to image_h then
Set the horizontal scale this_image to image_v
on the other
Set the vertical scale this_image to image_h
end if
Insert the contents of given Center
tell the end
on error error_message
If the error_indicator is 1 then
the error_message value function "Image" "& this_tag & ¬»
""is not found in the database. »
end if
activate
beep
display the default button on dialog error_message buttons {"Cancel", "Continue"} 2
try to end
end repeat
tell the endsee you soon
KeVSomething like this should help you get started:
Tell application "Adobe InDesign CS4"
Tell document 1
Set theRects to every element of all page elements whose class is rectangle and the label is 'IMAGE '.
Repeat with i from 1 to the number of theRects
oneRect the value of item i of theRects
-unlock the layer if necessary
If it is locked layer of oneRect point is true then
lockFlag set to true
locked set of layer of point of oneRect to false
on the other
Set lockFlag false
end if
place the value on oneRect this_image this_image
-do your stuff to the image
If lockFlag is set to true then together closed of true point of oneRect layer -relock the layer
end repeat
tell the end
tell the end
-
How to see the content of what's currently on my iCloud of this site
How to see the content of what's currently on my iCloud. I would like to see these files presented in a display of file manager type in order to sort and remove if necessary.
Go to iCloud.com, then click on your iCloud drive icon. I hope this is what you mean or what you are looking for.
-
Classic scenario: after the bookmark long manual organization Firefox Sync adds trash of its server to my laptop or tablet.
Where can I find how to replace the content of the backup of the server by settings/passwords / current browser bookmarks? Stupid me, I put a new synchronization and lost this ability.
It is not recommended to go back to the old version of Sync
The old version is removed he'll stop being available soon, it takes getting used to using the new version.
IIRC, it is actually possible to force synchronization of the old working with Fx29 & Fx30 using an old profile or preferences of piracy, but I don't think I should encourage users to try this, but it would be better than using an older version of Firefox which is really bad. In fact using an old outdated version of Firefox is so bad, that it is customary to recommend using a browser on alternative day of someone else instead.
Firefox ESR is aimed at corporate users, definitely, at the moment, it will use the synchronization of the former. Who will update soon to use synchronization well again, and this time, I guess the synchronization of the former will probably totally frowned upon for example are not available at all.
It is possible to use the feedback system to leave a short comment on Sync. I would recommend this making, but at least to make very many people of spirit comments that I doubt will have no effect.
- Use https://input.mozilla.org/en-US/feedback
- Display interactive content available here https://input.mozilla.org/en-US/ eg Sync comments
- Use https://input.mozilla.org/en-US/feedback
-
How can I move content movie House of iPad2 to my iTunes library on my PC?
How can I move content movie House of iPad2 to my iTunes library on my PC? I can find advice on how to move content from the ITunes library on various devices, but not on how to move the content in iTunes.
I recently had a clean install of windows 10 on my PC and lost all previous programs. I reinstalled iTunes software but cannot find a way to update the iTunes library by transferring movies in iTunes of the Ipad2.
A few days ago, I synced my iPod with the new iTunes software and lost all my music (who did not care a lot), but I don't want to lose my home movies. There must be a way to make such a transfer.
See recover your iTunes from your iPod or an iOS device.
TT2
-
I would like to import the contents of an audio book on cd for my audiobook file into iTunes. How can I transfer content song (in iTunes) to the audiobook file lists?
Go read the information, click on the 'Options' tab, then change the drop-down list of "sort of media" to "Music" to "Audiobook". That worked for me, I hope that it helps you also.
-
How to make a non-editable column
Hye,
I want to create a table with 2 columns:
the first column should not be editable, where the 2nd is,
I found how I can dim the entire table, but not so as to reduce intensity of a column.
How can I do so?
Thanks in advance,
AJ.
SetTableColumnAttribute (panel_handle, control_id, column_index, ATTR_CELL_DIMMED, 1);
-
How to restore the contents of the folder workstation in the default format in Windows XP?
Dear Sir or Madam:
I have a desktop of Microsoft Windows XP Home Edition Version 2002 Service Pack 3.
Contents of the my computer folder is not in the correct format, I want whatever it is corrupt.
How to restore the contents of the folder workstation to the original format?
The first JPEG image is the content of the folder post current work that has the corrupted display format.
The second JPEG image is the content of the folder post original work that is in the correct format.
Please reply back soon.
Thank you.
Looks like you saw. Rearrange icons by | Name. Try to organize by Type and other options while keeping rearrange icons by | Show in groups were also checked.
Maybe you are looking for
-
Dear all, A domain controller is running on the Windows 2012 standard testing server with all the roles of the FSMA in (only one domain controller in the Organization). Now, the evaluation period has expired and the purchased license cannot be used i
-
Computer is not download the 'important' for vista security updates
Hello! I have problems with the download of the microsoft/windows updates current. My computer is set to automatically download, but there was a series of 10 "major updates" that I've been prompted to manually download. However, I get a notice that
-
original title: outgoing e-mail problem Can receive email, but can't send. An unknown error has occurred. ' Subject ' Fw: Krystal Finn - short term Major Medical', account: ' pop - server.wi.rr.com', server: 'smtp.att.yahoo.com', Protocol: SMTP, serv
-
Defragment my personal computer.
I can't defragment my personal computer. It is said to run Chkdsk /f. I tried to run several times, and nothing happens.
-
I have a J6480 and when I use the load to Fax or copy documents, it makes a black line to the bottom of the page. Can I clean or do to stop this? If I place the document directly on the glass, it works fine. Thank you.