Select the column using
HelloI have a report with 4 columns, 'Year', 'Demand amount', 'Amount of the purchase order' and 'invoice amount.
The user want to select "Amount of demand", "The purchase order amount" or "Invoice amount" in the drop down menu from the drop in the Oracle replies
In other words, he wants to see only the year and "amount of demand."
year or "amount in the purchase order.
year or "amount of the invoice.
How can I do? I already search column, select but did not understand. Please tell me in detail.
Thank you
Hello user.
I advise to use the column picker in the responses.
(1) build your table (or any other point of view) a year and the amount of the claim.
(2) then create a view by using the choice of mode 'column selector.
(3) check the checkbox 'Include the selector' for your column 'amount of demand. "
(4) add the other two columns in the selection pane. Your view should look like the image below:
! http://i46.Tinypic.com/2gwyfso.jpg!
5) go to your compound view and add your views 'column selector.
You should now be able to Exchange "Amount of demand", "The purchase order amount" and "Amount of the invoice" using the column Chooser, and your other points of view should replace columns that you select.
I hope this helps and please assign points if you found it useful!
Kind regards
Jason
Tags: Business Intelligence
Similar Questions
-
Select the column name when the value = something
Is there a way to select the column name when there is a specific value in it?
As follows:
create table (abc123)
COLUMN1 VARCHAR2 (50).
COLUMN2 VARCHAR2 (50).
Column3 varchar2 (50)
);
insert into abc123 values ('yes', 'Yes', 'No');
insert into abc123 values ('no', 'Yes', 'No');
INSERT INTO ABC123 VALUES ('no ',' no', 'No');
insert into abc123 values ('yes', 'Yes', 'Yes');
SELECT CASE WHEN COLUMN1 = 'Yes' THEN - the name of the column would be here somehow?
WHEN COLUMN2 = 'Yes' THEN - the name of the column would be here somehow?
WHERE Column3 = 'Yes' THEN - the name of the column would be here somehow?
Another null
finish as abc123 columnname
final results for the just Column1 would be:
COLUMN1
NULL VALUE
NULL VALUE
COLUMN1
I'm not sure what I use to get the name of column in there
Thank you.
Hello
708631 wrote:
Is there a way to select the column name when there is a specific value in it?
As follows:
create table (abc123)
COLUMN1 VARCHAR2 (50).
COLUMN2 VARCHAR2 (50).
Column3 varchar2 (50)
);
insert into abc123 values ('yes', 'Yes', 'No');
insert into abc123 values ('no', 'Yes', 'No');
INSERT INTO ABC123 VALUES ('no ',' no', 'No');
insert into abc123 values ('yes', 'Yes', 'Yes');
SELECT CASE WHEN COLUMN1 = 'Yes' THEN - the name of the column would be here somehow?
WHEN COLUMN2 = 'Yes' THEN - the name of the column would be here somehow?
WHERE Column3 = 'Yes' THEN - the name of the column would be here somehow?
Another null
finish as abc123 columnname
final results for the just Column1 would be:
COLUMN1
NULL VALUE
NULL VALUE
COLUMN1
I'm not sure what I use to get the name of column in there
Thank you.
Thanks for posting the CREATE TABLE and INSERT for the sample data.
Don't forget to post the exact results you want from these sample data. If the results depend on the parameters you want to pass a run time, then give a few different examples, with the the desired results of each.
You can hardcode the values you want, such as the column names in a query. For example:
SELECT CASE WHEN column1 = 'Yes' THEN 'Column1' END like y1
CASE WHEN column2 = 'Yes' THEN 'Column2' END like y2
CASE WHEN Column3 = 'Yes' THEN 'Column2' END like y3
, a. *-If wanted
Of abc123 one
;
-
CS6, "Select unused shades" is to select the samples used.
In Illustrator CS6, "Select unused shades" is to select the samples used. I'm doing something wrong or is this a bug?
I can't reproduce this in CS6 (Cloud, 16.2.1). version
Maybe someone can check in 16.0.4 (?) so the problem can be reproduced.
You can check if you updated to the latest version available.
-
index on the column using custom function
Can we create index on the column using custom function?http://www.dbasupport.com/Oracle/ora8/FBI.shtml
Kind regards
Kaila Mahesh -
Select the column by using Session variables
I set a session variable to contain the name of a bound column that is the user. Is it possible to use a session variable to select a column in a database table? If so, how? Does need a statement where clause?
Something like that? :
< cfquery name = "rsSelectColumn" datasource = 'Test' >
SELECT column 1, column 2, column 3 is Variable from Session
OF tbl_data
< / cfquery >
Thank you
DaveI think you want to do this, if the value in the session variable is the actual column name:
SELECT column 1, column 2, #Session Variable # AS Col3
OF tbl_data
in this way, you can call any column stored in the session variable, and it will still be usable from the QUERY as COL3 regardless of which column you used.
If that's what you want to do - it OF as simple as that.
:-)
Sometimes we have to think of things too.
-
Select different columns using union all
I'm trying to select all the records of two table
Select A, B, C from table1
Union of all the
Select A, B, D, E, F from table2
I get results A, B, C columns but not D, E, F.
What should I do to get all the columns in the result. as A, B, C, D, E, F
Thank you
SKHello
That's what you asked for:
select Total_Customer_Qty, NULL AS Total_Supplier_Qty, Item_number, Org,item_id from table1; union all select NULL AS Total_Customer_Qty, Total_Supplier_Qty, Item_number, Org,item_id from table2;
I hope that's what you want, too.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using. -
Value of the column used as a column in the join
We have three tables
I need to create the query like thisProduct table Pno Pname Htype1 Htype2 101 ABC Ltype1 Loc Table LocId LocName Ltype1 Ltype2 TransportTable Tid Ttype LocId
Can you pls suggest/help me how to use the colum that is located in Htype1 in the Product tablebegin select Ltype1 into v_type from Product where Product = 101; for x in (select t.Tid,t.Lid from Loc l,Transport t where l.locid = T.locid and t.ttype = 'l.'|| v_type ) --- Getting Problem when the column which is set in Htype1 in Product table to be used to join here loop
to be used in the cursor?
Thank you very much
Published by: user12093849 on August 2, 2010 06:32
Published by: user12093849 on August 2, 2010 06:32Hello
As Sven said, the paintings were not designed for a relational database. The longer term solution wouold be redisgn the tables of a relational database.
The fundamental problem is that identifiers (such as column names) should be hardcoded in the query when compiling. You cannot use variables.
You can use variables in the Dynamic SQL statements , where the application is not compiled until the time of execution. I find this easier to do in SQL * more, using the substitutuion variables, but you can do dynamic SQL in PL/SQL, too.Depending on the data types involved, something like that can work for you as well:
SELECT t.tid , l.lid FROM loc l , transport t , product p WHERE p.product = 101 AND l.locid = t.locid AND t.ttype = CASE p.htype1 WHEN 'Ltype1' THEN lytpe1 WHEN 'Ltype2' THEN lytpe2 END ;
This is likely to be less effective than other alternatives.
-
Regd select the column in the table area
Hello
I have a search page... Have used autocustomization to create... This page will be used to query data from a table and then we must also update two fields of results table and save.
There is a region of results. I've included the multiselect table option that made me select a column as the first column of the table. Also, including a tableaction and a button upate with whom...
I need to write a handler for the update now... but do not understand all the slect column...
Whenever a user clicks on the boxes to select specific records and change the fields and click Update to save, how to write code to check whether the checkbox option has been activated or not?
Please help me as soon as possible...
Kind regards
PreetiHello
Take a Transient attribute tell 'SelectFlag' in view object and to set the Instance of the view and the view attribute
for multipleselection in the table.Now that the update is click on the button:
If (PageContext.GetParameter ("Update")! = null)
{
OAApplicationModule am = pageContext.getApplicationModule (webBean);
OAViewObject vo = (OAViewObject) am.findViewObject ("projVO1");
Line [] row = vo.getAllRowsInRange ();
Loop through lines
for (int i = 0; i)<>
{
Check if checbox is checked or not
If (line.getAttribute("SelectFlag").toString().equals("Y"))//means checbox is checked for this line.
{
write your logic
}
}
}Thank you
Gerard -
Select the column in a table that is defined in the select previous in the statement
Hello
I want to write a procedure that selects all the data in a table has then records them in the text file. I tested on table hr.countries.
My code is like this:
echo off newpage 0 space 0 pagesize 0 feed head off trimspool check out serveroutput on the value
coil countries.txt
define dtable = COUNTRY;
declare
col_num NUMBER;
no_lig NUMBER;
line VARCHAR2 (100);
Col VARCHAR2 (100);
Start
Select count (COLUMN_ID) in the col_num USER_TAB_COLUMNS WHERE table_name = '& dtable';
Select count (*) in no_lig of & dtable;
because me in 1.row_num
loop
1.col_num j
loop
Select column_name from col FROM USER_TAB_COLUMNS WHERE table_name = '& dtable' and column_id = j;
Select the pass in the row (select col, rownum: nurse of (select col from & dtable)) where rn = i;
IF (j! = col_num) THEN
DBMS_OUTPUT. PUT(Row ||) ', ');
ON THE OTHER
DBMS_OUTPUT. PUT (Row);
END IF;
end loop;
DBMS_OUTPUT. NEW_LINE;
end loop;
end;
/
spool off
I have had no error, but the result is like this:
COUNTRY_ID, COUNTRY_NAME, REGION_ID
COUNTRY_ID, COUNTRY_NAME, REGION_ID
COUNTRY_ID, COUNTRY_NAME, REGION_ID
.. and so on for the whole table.
I want to have results with data not only the names of columns. No idea what is the problem? I thought that select col online would do the thing, but the line is identical to the col variable...
Thank you
Honza
Set serveroutput on;
define dtable = COUNTRY;
declare
col_num NUMBER;
no_lig NUMBER;
line VARCHAR2 (100);
Col VARCHAR2 (100);
Start
Select count (COLUMN_ID) in the col_num USER_TAB_COLUMNS WHERE table_name = '& dtable;
Select count (*) in the no_lig argument of &dtable;
because me in 1.row_num
loop
1.col_num j
loop
Select column_name from col FROM USER_TAB_COLUMNS WHERE table_name = '& dtable' and column_id = j;
run immediately 'select'. Col | "from (select ' |) Col |', rownum: nurse from (select ' |) Col |' of & dtable)) where rn =' | I have
Online;
IF (j! = col_num) THEN
DBMS_OUTPUT. PUT(Row ||) ', ');
ON THE OTHER
DBMS_OUTPUT. PUT (Row);
END IF;
end loop;
DBMS_OUTPUT. NEW_LINE;
end loop;
end;
/
Output
anonymous block filled
AR, Argentina, 2
To, Australia, 3
BEING, Belgium, 1
BR, Brazil, 2
CA, Canada, 2
CH, Switzerland, 1
CN, China, 3
OF (Germany), 1
DK, Denmark, 1
For example, Egypt, 4
FR, France, 1
HE, Israel, 4
IN, India, 3
IT, Italy, 1
JP, Japan, 3
KW, Kuwait, 4
ML, Malaysia, 3
MX, Mexico, 2
NG, Nigeria, 4
NL, Netherlands, 1
SG, Singapore, 3
UK, United Kingdom, 1
WE, United States of America, 2
ZM Zambia, 4
ZW, Zimbabwe, 4
-
Select the columns not in the group by clause
Hello
My version of DB is 10.0.2
I have query, where in I need to select two columns more but that should not be part of the group by Clause.
Does perform a work around?
SELECT F.custnum, V.Import_date, -- F.ErledigtMM,F.ErledigtGrundMM, (Columns to be selected additionally) nvl(sum(nvl(round(V.VerAuf16/1000,2), 0) +nvl(round(V.VerAuf17/1000,2), 0) + nvl(round(V.VerAuf18/1000,2), 0) + nvl(round(V.VerAuf19/1000,2), 0) + nvl(round(V.VerAuf20/1000,2), 0) + nvl(round(V.VerAufKAPUn/1000,2), 0) + nvl(round(V.VerAufKAPVz/1000,2), 0) ), 0) Mandantenforderung, nvl(sum(nvl(round(V.VerAuf4/1000,2), 0) ), 0) Inkassokosten, nvl(sum(nvl(round(V.VerAuf5/1000,2), 0) ), 0) KontoFuehrungsgebuehren, nvl(sum(nvl(round(V.VerAuf1/1000,2), 0) + nvl(round(V.VerAuf2/1000,2), 0) ), 0) Verwertungskosten, nvl(sum(nvl(round(V.VerAuf10/1000,2), 0) + nvl(round(V.VerAuf8/1000,2), 0) + nvl(round(V.VerAuf9/1000,2), 0) ), 0) Barauslagen, nvl(sum(nvl(round(V.VerAuf13/1000,2), 0) + nvl(round(V.VerAuf14/1000,2), 0) + nvl(round(V.VerAuf15/1000,2), 0) + nvl(round(V.VerAuf6/1000,2), 0) ),0) Gerichtskosten, nvl(sum(nvl(round(V.VerAuf11/1000,2), 0) + nvl(round(V.VerAuf12/1000,2), 0) + nvl(round(V.VerAuf7/1000,2), 0) ), 0) RAKosten, TO_CHAR(F.Created_Date,'MM.YYYY') Created_Date_MM , TO_CHAR(F.Created_Date,'YYYY') Created_Date_MMRRRR FROM FACM F, VA V WHERE F.custnum = DECODE(0,0,F.custnum,0) AND F.accnum = V.accnum GROUP BY F.custnum, V.Import_date,TO_CHAR(F.Created_Date,'MM.YYYY') ,TO_CHAR(F.Created_Date,'YYYY'))
Hello
Here's what I suggest:
select a.custnum, a.import_date, b.ErledigtMM, b.ErledigtGrundMM, a.Mandantenforderung, a.Inkassokosten, a.KontoFuehrungsgebuehren, a.Verwertungskosten, a.Barauslagen, a.Gerichtskosten, a.RAKosten, a.Created_Date_MM , a.Created_Date_MMRRRR from ( SELECT F.custnum, V.Import_date, nvl(sum(nvl(round(V.VerAuf16/1000,2), 0) +nvl(round(V.VerAuf17/1000,2), 0) + nvl(round(V.VerAuf18/1000,2), 0) + nvl(round(V.VerAuf19/1000,2), 0) + nvl(round(V.VerAuf20/1000,2), 0) + nvl(round(V.VerAufKAPUn/1000,2), 0) + nvl(round(V.VerAufKAPVz/1000,2), 0) ), 0) Mandantenforderung, nvl(sum(nvl(round(V.VerAuf4/1000,2), 0) ), 0) Inkassokosten, nvl(sum(nvl(round(V.VerAuf5/1000,2), 0) ), 0) KontoFuehrungsgebuehren, nvl(sum(nvl(round(V.VerAuf1/1000,2), 0) + nvl(round(V.VerAuf2/1000,2), 0) ), 0) Verwertungskosten, nvl(sum(nvl(round(V.VerAuf10/1000,2), 0) + nvl(round(V.VerAuf8/1000,2), 0) + nvl(round(V.VerAuf9/1000,2), 0) ), 0) Barauslagen, nvl(sum(nvl(round(V.VerAuf13/1000,2), 0) + nvl(round(V.VerAuf14/1000,2), 0) + nvl(round(V.VerAuf15/1000,2), 0) + nvl(round(V.VerAuf6/1000,2), 0) ),0) Gerichtskosten, nvl(sum(nvl(round(V.VerAuf11/1000,2), 0) + nvl(round(V.VerAuf12/1000,2), 0) + nvl(round(V.VerAuf7/1000,2), 0) ), 0) RAKosten, TO_CHAR(F.Created_Date,'MM.YYYY') Created_Date_MM , TO_CHAR(F.Created_Date,'YYYY') Created_Date_MMRRRR FROM FACM F, VA V WHERE F.custnum = DECODE(0,0,F.custnum,0) AND F.accnum = V.accnum GROUP BY F.custnum, V.Import_date,TO_CHAR(F.Created_Date,'MM.YYYY') ,TO_CHAR(F.Created_Date,'YYYY')) ) a, FACM b where b.custnum = a.custnum
By the way
WHERE F.custnum = DECODE(0,0,F.custnum,0) AND F.accnum = V.accnum
can be translated into
WHERE F.accnum = V.accnum
because
F.custnum = DECODE(0,0,F.custnum,0)
is always true
becauseDECODE(0,0,F.custnum,0)
means
if 0=0 then F.custnum else 0
-
First of all, I would like to know the name of this type of table.
ex.
Name of the song. Artist | Album | Date | Quality | Etc.
Select the one you want to see less to higher value, select again to see bigger less valuable.
SortTable: make all your tables sortable
or with jquery
-
Hello
Every now and I have a lot of images to save for web (1-2 k images at once). All images are .psd or path or transparent background. I want to select the path and erease backgrount possible triming. The roads are named different, so this is another problem because the actions in photoshop select only the specific name of the track. So, it is possible to select the path regardless of his name? Or how to write the script of selection of several path names (IE "track 1", "path 2", "choice 1"...) I hope you understand what I want to do...
I have another script that resizing of images to corect size and save for web. So when I have jpg with white backgroound first I run action in photoshop to cut images and then I run the script to resize all the images, because the script to check if the image is larger or more...
If you want more information, just ask... I have version CS5 Photoshop
Kind regards
voahyeah
Edit:
For now, I wrote this:
app.activeDocument.pathItems.getByName ('path 2') .makeSelection ();
app.activeDocument.selection.invert ();
app.activeDocument.selection.clear ();
and he choose only if the path name is "path 2" else it stops... "."
So when the personal is way 2 everything is fine but I have 10-15 different names... so it would be great avoid the path names. It is possible to select the first HRAP (if there is more than one)
or if it is not possible to avoid the path name how wrote if els if block for it to check all path names...?
... Thank you
Hi Voahyeah,
Here's the Code...
If (app.documents.length > 0) {}
var app.activeDocument = docRef;
var n = docRef.pathItems.length;
If ((n>0) & (.name docRef.pathItems [0]! = "Work path")) {}
docRef.pathItems [0] .makeSelection ();
docRef.selection.invert ();
docRef.selection.clear ();
docRef.trim (TrimType.TOPLEFT);
docRef.selection.deselect ();
}
};
Kind regards
-yajiv
-
Select the column in a Flash datagrid?
When a person uses a datagrid control, is there a default way (only with no additional coding) to select an entire column?
Now when I click on the header, it changes the order. Is there a Ctrl key + click combo that does this?
See you soon
as far as I know, you need to encode that yourself.
-
change the column using the trigger
Hello
is there any possibility or a way around to change a LONG column in a trigger BEFORE INSERT and BEFORE UPDATE?
the scenario is like this.
Old DOS applications (this is why we must use LONG in the Oracle), they inserting a record in Oracle (9.2.0.8 - HP UX).
They are inserting ASCII characters that must be converted properly by Oracle using REPLACE.
But the problem is that I can not handle a long TIME in relaxation.
We have set the Oracle Client and Server NLS_LANG by using the same character set ISO-8859-1.
but in some sort the ASCII character has managed to go to the Oracle, and it had not stored in the database.
Use change will take more time than making a cleaning trash in the database.
Is there a way around that you think.OK, you have your problem:
Check this box:
SQL> create table t ( user_id number, user_account varchar2 (10), user_status varchar2 (1), user_message long ) / Table created. SQL> create or replace trigger t_trg after insert on t for each row declare l_new_long long; begin execute immediate ' declare l long; begin select user_message into l from t@loopback where user_id = :1; update t@loopback set user_message = replace(l, ''Some'', ''Some other'') where user_id = :1; end; ' using :new.user_id; end t_trg; / Trigger created. SQL> insert into t values (1, 'michael', 'Y', 'Some Message') / 1 row created. SQL> select * from t / USER_ID USER_ACCOUNT USER_STATUS USER_MESSAGE ---------- ------------ ----------- -------------------- 1 michael Y Some other Message 1 row selected.
-
Found a Bug? -Select the columns to sort by - but not current table
Just found a problem. Don't know if it's the right place for this but:
-on the spreadsheet (or whatever it's called), when I clicked the sort, the list of columns was for one table OTHER then the one I had open - he had two already selected columns that do not exist in the open table. By clicking on "apply sorting" caused no changes.
-J' have removed the sort criteria and applied so and then reopened the list sort and the wrong table was still in place, but the criteria was allowed.
-J' tried to sort by clicking the buttons in the field headers - but nothing happened - tried several times and in several different areas.
- then I have opened the list sort and he had finally registration of the appropriate table.
It is version 1.5.1 build 5440 against a server 10g.
GlennThe table has the same name as a table that you used previously, including in another schema?
There are a few old bugs where sqldeveloper confused the tables of the same name and used the file layout of table to the wrong table. Those that have been set for most, but it may be something related.
Maybe you are looking for
-
Pavilion p6-2375eo: IDT High Definition Audio Codec
After a reinstalled windows 10 cleaning I have no device driver for IDT High Definition Audio Codec I can't get one from HP support not available for p6-2375eo I would like to know how and where I can get a device compatible windows 10 if possible ev
-
Java SE RE 6u21 for Windows 7 64-bit or 32-bit when I use Winodws 7 64-bit
I use Windows 7 64-bit.Should which version of JRE I use 64-bit or 32-bit?What the plug-in in the 64 bit version of the Java JRE? I need Firefox to use Java? Thank you This has happened Don't know how many times
-
I can't read my product key to activate windows
When you try to activate windows on my computer, I was prompted to enter the product key for Windows 7. However, as my computer is more than a year, the sticker on the bottom of the laptop has to wear with age and I can't read it. What can I do? * or
-
Impossible to uninstall proinstaller156
Original title: Windows Firewall What is proinstaller156? It's on my list of programs that are allowed to communicate through Windows Firewall. I tried to delete it, but couldn't.
-
Question regd import/export feature of CUCM BAT
Hello We have a production cluster CUCM 8.6 running. I was asked to create models of translation of 300-400. I see that I can not do this directly through bat. But I can't see the import/export option. We have 1000's of existing patterns of translati