Help the release of the two column list
HelloI have two columns from two different tables. How can I write a query to list the information in a column of result?
I have
TABLE A TABLE B
_Column A_ _Column B_
a d
b e
c f
What I want isRESULT_COLUMN
a
b
c
d
e
f
Any help appreciated hereThank you
Select column_a table_a
Union
Select table_b column_b;
Tags: Database
Similar Questions
-
Hello.
I use jdev 11.1.5
= > I had created a Vo in the adf with the table named GrlJrl
I need the sum of the two columns
My scenario
Da Ca
500 100
600 100
100 200
S 400 1200 (adding two field must be displayed in the user interface).
someone help me reach this goalchk this
Calculate the sum involved new VO -
calculate the sum of the two columns - display the result in the third column
Hello
I have a report and I want to calculate the sum of the two columns of the report and display the total in the third column.
For example: Sample_My_Report
Col1 Col2 (Col1 and Col2) Total
3-7-10
can someone help me with this question.
Thank you.Hello:
If your report is an IR you can use the menu "Tool" to add columns calculated at the State
CITY
-
Combine the two columns of text
I have two columns of text (say that name is a column and the name is the other)
I would like to combine the two columns for the text of these two columns are in a column. (First name and last name in the same column)
Is this possible? If so is there a tutorial somewhere?
Hi Danielle,
The & (concatenation operator) is your friend.
Formula in D2 (fill down)
"B2 &" "& C2.
& joins elements into a single string.
"" inserts a space.
Kind regards
Ian.
-
using outer joins if the two column is null? Use only (+)
Hi all
create the table xxc_tr_num (tl_number number, tr_no number tl_no_id);
insert into xxc_tr_num values (123,100,222);
insert into xxc_tr_num values (124,100,333);
create the table xxc_od_tab (tl_number number, tl_id number);
insert into xxc_od_tab values (123,001);
insert into xxc_od_tab values (null, null);
create table xxc_oth_tab (name varchar2 (10), number of tl_id);
insert into xxc_oth_tab values('abc',,001);
insert into xxc_oth_tab values (null, null);
Wait it out put
tr_no tl_no_id name
100 222 abc
100 333
using outer joins if the two column is null? use only please of outer joins
And I tried to use outer joins on both tl_id column but not get values and I use have County (tr_no ) > 1
Rajesh123 wrote:
Thank you Kiss it is not possible to use having clause?
You need to understand the functioning of the group. If you will not be asked this question.
Check this box
SQL> select tr_no, 2 tl_no_id, 3 count(*) 4 from xxc_tr_num a, 5 xxc_od_tab b, 6 xxc_oth_tab c 7 where a.tl_number = b.tl_number(+) 8 and b.tl_id = c.tl_id(+) 9 group 10 by tr_no 11 , tl_no_id; TR_NO TL_NO_ID COUNT(*) ---------- ---------- ---------- 100 333 1 100 222 1
See what returns the count? You have grouped according to TR_NO and TL_NO_ID. You must take into consideration the TL_NO_ID just put COUNT (TR_NO) does not increase the NUMBER of the whole group. To get the NUMBER on the whole group, I used the analytical function and did. Like this, see the number of the analytical function here
SQL> select tr_no, 2 tl_no_id, 3 count(*), 4 count(*) over(partition by tr_no) 5 from xxc_tr_num a, 6 xxc_od_tab b, 7 xxc_oth_tab c 8 where a.tl_number = b.tl_number(+) 9 and b.tl_id = c.tl_id(+) 10 group 11 by tr_no 12 , tl_no_id; TR_NO TL_NO_ID COUNT(*) COUNT(*)OVER(PARTITIONBYTR_NO) ---------- ---------- ---------- ------------------------------ 100 222 1 2 100 333 1 2
So to answer your question, yes you can't do in the HAVING clause...
-
Update, one of the two columns based on a condition
I have this example table:
Lead_ID
Mailed_Date
Campaign of
Model
MPI
MP2
100
August 2, 12
Travel_Check
US_Air
null
null
200
August 2, 12
Travel_Check
US_Air
1099
null
MP1 and MP2 columns represent mailpiece_IDs (marketing mail that was sent). MP1 is the first piece in the mail and MP2 is the second room that receives mail. Here Lead_id 100 received no mail and Lead_id 200 received the first piece.
I want my update to allow me to update MP1 IF MP1 is null, but if MP1 is worth, I want MP2 to update. So if I update with a new post 2000 article ID the result should look like this after the update. Lead_ID 100 received a piece of mail, and 200 Lead_ID received two parts:
Lead_ID
Mailed_Date
Campaign of
Model
MPI
MP2
100
August 2, 12
Travel_Check
US_Air
2000
null
200
August 2, 12
Travel_Check
US_Air
1099
2000
I tried this case and I thought that maybe I could choose the field with COALESCE, but which doesn't seem to work. Can anyone help?
Hello
Here's another way to do it:
UPDATE yourtable
Mp1 SET = NVL (mp1, 2000)
mp2 = NVL2 (mp1, mp2 2000)
WHERE LESS (mp1, mp2) IS NULL
;
In any case, there are 2 columns that could be changed, so you should have 2 columns listed in the SET clause. It does not matter that one or these columns will be always equal to itself.
-
How to put the two column values in two different colors unique online: MobApp
Hello
I develop Mobile Application.
I want to show two values in different columns in single row and first column value in either green or red and the second color the default column value.
the first value of the column is green when the value is greater than the second value of the column.
and the first column value in red when the value is less than the second value of the column.
The code I tried is:
--------------------------------------------------------------------------------------------
< tr:panelGroupLayout layout = "vertical" styleClass = 'list' >
< tr:panelList styleClass = "panelist ul > li > a" >
"" < tr:outputText value = "deliver: % #{row.bindings.OccCurr.inputValue},
inlineStyle = "background-color: #{rank." OccCurr > line. OccFcst? {'Green': 'Red'}; ">
"< tr:outputText value =" OccFcst: #{row.bindings.OccFcst.inputValue} % ">"
< / tr:outputText >
< / tr:outputText >
< / tr:panelList >
< / tr:panelGroupLayout >
------------------------------------------------------------------------------------------------
But the code above does not work.
Please, someone tell me what I need to do.
I apreciate your time and your help.
Sanchez.Hi Catherine,
Exactly, what is not working? Your OccCurr and OccFcst values are printed to the screen? I notice some questions.
(1) If you want to display two outputText on one line, you can surround them with a panelGroupLayout and set the page layout to horizontal.
(2) I don't think that you can place an outputText in outputText one another as in the codes that you have provided.
(3) your EL is inconsistent. What is #{row.bindings.OccCurr.inputValue} or #{line. OccCurr}? If your values are displayed, but the background color does not work, it could be the first.Kind regards
Amélie Chan -
How to read the two columns of data in a file of PDM.
Hi all
I am reading two data columns for the 2nd of a PDM file two sheets, as shown below.
Two columns of data must then be shared so they can be displayed in a xy chart and also apply a linear adjustment VI. I implemented the graph xy and linear adjustment using a txt file (see below), therefore all the outputs work, however this application with a tdms file turns a little more tax.
So, essentially, that I don't know how read the correct leaf and therefore the columns in the PDM file and then how to produce the graph xy and linear adjustment of the data types produce. Here's my current attempt, which produces several errors of the type of terminal, as well as not being able to select the exact data in the PDM.
Any help/suggestions/example vi on this asap would be greatly appreciated.
Thanks in advance,
Pete
Also the PDM file viewer. VI helps you easily understand the structure of data files.
-
How to read the two columns of data from the Port series
Hello
I'm reading two columns of data from the serial port.
Example:
52439 52430
52440 52437
52209 52214
51065 51070
52206 52390
I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.
I want to both sets of chart data.
I enclose my VI.
Thank you for your help.
The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries). In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format). In particular, %d\t%d specifies a decimal integer,
, whole decimal. -
Combine the two columns?
HI, the problem is this, I have two columns: start_date and end_date
Invite a: start date (for example 08/08/2008)
Invite two: End Date (for ouvertede 30/04/2009)
so these are two different columns, do you know how get all the data between these two dates.
If I use the "between the function" I can't get the dates between the same column,
The start date
The start date
but I need the end date...
I really appriciate to help
Thank youHello
Something like:
SELECT * FROM
WHERE start_date BETWEEN TO_DATE('08/08/2008', 'mm/dd/yyyy') AND TO_DATE('04/30/2009', 'mm/dd/yyyy') OR end_date BETWEEN TO_DATE('08/08/2008', 'mm/dd/yyyy') AND TO_DATE('04/30/2009', 'mm/dd/yyyy'); Kind regards
-
Combine the two columns of the table
SELECT providerid, Sum OF appdev.usercounts
WHERE the counttime BETWEEN SYSDATE - 30/1440 AND SYSDATE-15/1440 GROUP BY ORDER BY providerid providerid
697 W
U 813
T 143
S 2
SELECT providerid, Sum OF appdev.usercounts
WHERE the counttime BETWEEN - 30/1440 AND (SYSDATE-1) - 15/1440 (SYSDATE-1) GROUP BY ORDER BY providerid providerid;
450 W
U 571
T 80
S 2
I want output like
W 697 450
U 813 571
143 80 T
2 2 S
Help, please
Thank you
Praveen'COUNT', which is the actual column name? It could become very confusing.
Not tested for obvious reasons, but it should be close:
SELECT providerid , sum( case when counttime between sysdate - 30/1440 and sysdate - 15/1440 then count end ) as cnt1 , sum( case when counttime between (sysdate-1) - 30/1440 and (sysdate-1) - 15/1440 then count end ) as cnt2 FROM appdev.usercounts WHERE ( counttime between sysdate - 30/1440 and sysdate - 15/1440 ) OR ( counttime between (sysdate-1) - 30/1440 and (sysdate-1) - 15/1440 ) GROUP BY providerid ORDER BY providerid ;
-
"How do you build a filter based on the conditions of the two columns?
Hi all
line desc period Amount1 Amount2
Jan Feb 10 0
Tue Jan 20 0
Jan jan 30 0
Jan - Apr 0 40
I have such a report with four columns
Line Descr is a table and other period table and amounts 1 and are 2 respective amounts.
now I need to see the only column in the result i, e. jan jan 30 0
I need to write a sql in the formula in the column so that I need to get this result
Any suggestions as what sql what I write
Thank you
Xavier.
Published by: Xavier on July 1st, 2011 12:03
Published by: Xavier on July 1st, 2011 12:04
Published by: Xavier on July 1st, 2011 12:05
Published by: Xavier on July 1st, 2011 12:05
Published by: Xavier on July 1st, 2011 12:06
Published by: Xavier on July 1st, 2011 12:07
Published by: Xavier on July 2, 2011 11:37OK, so try it this way.
(1) take another column. Click on the fx, delete the content and enter this:
CASE WHEN tablename. Line_Desc = tablename. Period THEN put END to 'Y' ELSE ' n
(2) put a filter on this column = 'Y '.
It should work.
-
Filter the two columns with a variable
Hi guys!
I am new to Oracle BI EE and I following the task at hand.
In my database, I've followed columns:
ID | VALUE | VALID_FROM | VALID_TO
The first is the unique ID, the second value I need to show my analysis, the latter two are dates.
I need to prepare the analysis when user asks values at a time, so I'll have to show all lines where the date selected by the user is greater than VALID_FROM and smaller than VALID_TO (but the user must enter only once).
I am a complete beginner and have no idea how prepare this analysis? Could you give me some advice?
Best regards
Greg
I did not understand your exact need. A date value, will be user input.
For example: 01.08.2014, then your analysis will be filtered by;
01.08.2014 > VALID_FROM and
01.08.2014<>
If so, you can create a prompt for dashboard column and give set a presentation for this column. Then, you will use this presentation for valid_from and valid_to columns column.
-
Helps the checkbox column layout
Here's what I need to accomplish:I need to display a long list(50-200) of boxes w / labels in the form of multiple columns. They should be sorted alphabetically down and across all columns. If scrolling is required, then it should only scroll vertically. Something like the image below.What I tried was to use a TileList component with an itemRenderer checkbox. It works very well for 1 column and scrolls vertically very well. It works very well for 3 columns, but when it scrolls it scrolls horizontally and I need to scroll vertically. I have attached my code.I noticed one thing is when you define '= vertical direction' for a component TileList list sorted vertically but horizontally scrolls. If we leave it as default (= horizontal direction), then sort horizontally, it scrolls vertically. I need to sort vertically and scroll vertically. I tried to set the VerticallyScollPolicy and HorizontalScrollPolicy but just cut the data instead of changing the direction of travel.I guess my second question is that if this feature is impossible with a TileList component, then which component would be a better option.Thanks in advance for taking the time to answer my questions.<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "
xmlns:CSC = "" com.facl.uaf.Common.Shared.widget. * ""
Layout = "vertical".
verticalAlign = "top".
horizontalAlign = "center".
backgroundGradientColors = "[0x000000, 0 x 323232]."
paddingTop = "20".
paddingBottom = "20" >< mx:ArrayCollection id = 'collection' >
< mx:Object label = "Alameda" / >
< mx:Object label = "Alpine" / >
< mx:Object label = "Amador" / >
< mx:Object label = "Butte" / >
< mx:Object label = "Calaveras" / >
< mx:Object label = "Del Norte" / >
< mx:Object label = "El Dorado" / >
< mx:Object label = "Fresno" / >
< mx:Object label = "Kern" / >
< mx:Object label = 'Los Angeles' / >
< mx:Object label = "Orange" / >
< mx:Object label = "Place" / >
< mx:Object label = "Plumas" / >
< mx:Object label = "Riverside" / >
< mx:Object label = "Sacramento" / >
< mx:Object label = "San Diego" / >
< mx:Object label = "San Francisco" / >
< mx:Object label = "Santa Barbara" / >
< mx:Object label = "Santa Clara" / >
< mx:Object label = "Santa Cruz" / >
< / mx:ArrayCollection >" < = xmlns:mx mx:TileList ' http://www.Adobe.com/2006/MXML "
Color = "#323232".
textAlign = "left".
paddingLeft = "20".
itemRenderer = "mx.controls.CheckBox"
verticalScrollPolicy = "auto".
themeColor = "#FFFFFF."
dataProvider = "{collection}."
columnCount = '3 '.
width = "500".
Height = "100".
direction = "vertical" >
< / mx:TileList >< / mx:Application >A list like the TileList class made a number of important things. It creates enough converters to fill the visible part, so you don't end up allocate tons of memory for thousands of pieces of data, and there a selection model where you can select one or more items of data, and he draws a reversal and selection of background color on the entire rendering engine.
What should you? If this is not the case, a VBox with 3 HBoxes with 1/3 of the checkboxes in each HBox is all you need. You can use a Repeater to generate checkboxes or just add it in a loop.
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
By comparing the two columns in a datagrid.
I have a datagrid that has a data provider for some users. Users have a name, address, balance and amount of the payment. For the amount of the payment, I use a custom MXDataItemRenderer like my TextEditor (no text rendering). I want to do is validate that the amount that they are entered in the payment amount does not exceed the balance.
I tried to do it on an itemEditEndHandler, but the problem is that for some reason that I don't have the amount of payment at this time here. I wonder what I am doing wrong or if I go about it completely the wrong way.
Any help would be greatly appreciated.
Thank you
Here's my editHandler function
var point: Object = ((event.currentTarget as DataGrid) .dataProvider as ArrayCollection) [event.rowIndex];
var paymentValidator:PaymentAmountValidator = new PaymentAmountValidator (item.balance);
paymentValidator.source = this.dataProvider;
paymentValidator.property = "paymentAmount;
paymentValidator.validate (item.paymentAmount);Here is my custom validator.
SerializableAttribute public class PaymentAmountValidator extends Validator
{
private var: table of results;
private var scale: Number;
public void PaymentAmountValidator (balance: Number = 0) {}
Super();
This.balance = balance;
}
Set the doValidation() method.
override protected function doValidation(value:Object):Array {}
Convert the value to a number.
var inputValue:Number = Number (value);
Table of clear results.
results = [];
Call the base doValidation() class.
results = super.doValidation (value);
Back if there are errors.
If (results.length > 0)
return results;
If the input value is not a number, or contains no value,
issue a validation error.
If (isNaN (inputValue) |! value)
{
Results.push (new ValidationResult (true, null, 'NaN',
"You must enter an amount."));
return results;
}
If (inputValue > balance) {}
Results.push (new ValidationResult (true, null, "moreThanBalance",
"The payment amount must be less than or equal to the balance."));
return results;
}
return results;
}}
Download the the itemEditorInstance paymentAmount. It has not been written
the question still.
Maybe you are looking for
-
Used to love Mac but who was in 1987. Since then while they got more slow. Now my Imac 21 inches is indistingushable of a rock. Y at - it an article or a checklist that I can read?
-
Compaq Presario SR5506F: update BIOS of BACK command line?
Hello I would like to be able to Flash the BIOS to the boot prompt, or with a USB/CD/DVD based tool. I can't open any OS even from live DVD. My Presario SR5507F came originally with Vista installed, but over the years, it has been upgraded to Windows
-
HP 15 G5T30AV: Laptop battery
I think to get a secondary battery, but I don't want to put the battery in the laptop to load. Is there such a thing as a charger that hooks to the pins on the battery itself? Because for me, it would be boring to take each battery and put him in cha
-
Check if the user event destroyed?
Is it possible to check if a user event has been destroyed or is even active before you sign up? For example, if a structure of the event is registered to a user event - the event user gets destroyed time of execution, is there a way to recover/get a
-
original title: NETBios TCPIP of missing in Device Manager I recently had to run two antivirus programs on an infected computer and am now unable to connect to the internet. When I went to the event viewer, I noticed the following error messages: Eve