DataGrid itemrenderer &; evaluation of different column
Hey all,.
I played with this for a while, but can't do things. Basically, I have an itemrenderer which has an image and a label, but I need to see what is the value of a different column before, I know what image to use. I have a feeling that the reason why will not work my scheduled logic is because [the] data not reporesent not the structure of entire data... but I could be wrong.
That's what I have now:
The dataprovider on the grid is a collection of table I have a grid that refers to this itemrenderer:
Form
" < s:GridColumn dataField ="employee"headerText ="employee"
" itemRenderer ="com.mycompany.view.assets.renderers.EmployeeStatusColour """> < / s:GridColumn >
Element converter
<? XML version = "1.0" encoding = "utf-8"? >
< s:GridItemRenderer ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "
... >
< fx:Script >
<! [CDATA]
override public function prepare(hasBeenRecycled:Boolean):void {}
THIS WORKS BUT NEED to ADD LOGIC
lblData.text = data [column.dataField];
statusImage.source = "com/mycompany/view/assets/images/dot_GREEN.png"
//THIS IS what I WANT instead - SYNTAX below IS FAKE, BUT YOU WILL the IDEA
lblData.text = data [column.dataField];
If (Data [Column (3)] = {'MONDAY')
statusImage.source = "com/mycompany/view/assets/images/dot_GREEN.png"
} else {}
statusImage.source = "com/mycompany/view/assets/images/dot_BLUE.png"
}
}
[]] >
< / fx:Script >
"" < s:HGroup verticalAlign = "middle" height ="100%" distance = "2">
" < s:Image id ="statusImage """/ >
" < s:Label id ="donneeslbl"paddingTop ="5"/ >
< / s:HGroup >
< / s:GridItemRenderer >
Thanks in advance to anyone who can direct me to a solution.
Flex
Found the solution. Well, I can go bang my head against the wall now! Laughing out loud
To find any value in the data structure you do the following:
Data [Column.DataField = "dayStatus"];
Tags: Flex
Similar Questions
-
DataGrid itemrenderer with the switch statement
Hello
I have the DataGrid with the columns
< mx:DataGrid id = "dgvParagraphs" >
< mx:columns >
< mx:DataGridColumn dataField = "type" headerText = "Type" / >
< mx:DataGridColumn dataField = "title" headerText = "Title" / >
< mx:DataGridColumn dataField = "happy" visible = "false" / >
< / mx:columns >
< / mx:DataGrid >Under the type column I have values between 1 and 6. Each issue contains the content type. I have icons for each type. I want to show an icon instead of the right number. I know that this can be done using itemrenderes, but I do not know how to proceed.
If this post answers your question or assistance, please mark it as such.
Greg Lafrance
www.ChikaraDev.comSupport and Flex development services
You might see problems with this code for scrolling, as DataGrid recycles itemRenderers, but in this case the information of the icon must be in the data.
2 My Title 1 Content 1 5 My Title 2 Content 2 3 My Title 3 Content 3 1 My Title 4 Content 4 4 My Title 5 Content 5 6 My Title 6 Content 6 2 My Title 7 Content 7 1 My Title 8 Content 8 4 My Title 9 Content 9 5 My Title 10 Content 10 2 My Title 11 Content 11 -
Combobox and button inside datagrid ItemRenderer
Hi all
I'm moving the selectedItem of the comboxbox click event of a button. These two components are present within a datagrid control.
A sample of cases looks like:
Main.MXML
< mx:DataGrid id = "dg1" dataProvider = "{initDG}" = "4" rowCount >
< mx:columns >
< mx:DataGridColumn dataField = "Artist" / >
< mx:DataGridColumn dataField = "Album" / >< mx:DataGridColumn id = 'test' resizable = "true" headerText = "account Options".
"itemRenderer ="components.comboButton "/ >
< mx:DataGridColumn dataField = "acctOption" headerText = "account of Actions."
< mx:itemRenderer >
< mx:Component >
< mx:LinkButton label = "Go" click = "parentDocument.testing ()" / >
< / mx:Component >
< / mx:itemRenderer >
< / mx:DataGridColumn >
< / mx:columns >
< / mx:DataGrid >private var initDG:ArrayCollection = new ArrayCollection([)
{Artist: 'Pavement', Album: 'Slanted and enchanted',}
{Price: 11.99, State: 'AL'},
{Artist: 'Pavement', Album: 'Brighten the corners',}
{Price: 11.99, State: 'AL'}
]);And comboButton.mxml looks like:
< mx:ComboBox id = "comboBox" >
< mx:dataProvider >
< mx:Array >
< mx:Object label = "on" / >
< mx:Object label = "two" / >
< mx:Object label = "three" / >
< mx:Object label = 'four' / >
< mx:Object label = "5" / >
< mx:Object label = "six" / >
< / mx:Array >
< / mx:dataProvider >
< / mx:ComboBox >So, how can I display the value of the selectedItem, when user a chooses comboxbox values and click on the button 'Go '.
I want to somehow show this value in my function called "testing().
Please notify.
Thank you
Value editable = false on every DataGridColumn that you don't want an editor to appear
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
How to take a column of duplicate names and fill a different column with the same names, excluding duplicates?
I find easier to use this copy separate Automator Service (download Dropbox).
To install in your numbers > Services, double-click menu just the package downloaded .workflow and if necessary give permissions in system preferences > security & privacy.
To use, just:
- Select the cells in the column with duplicate names.
- Choose separate copy in numbers > Services menu.
- Click once in the upper cell where you want the deduplicated values appear.
- Command-v to paste.
SG
-
Hello
In the attached VI, I am currently getting all tables appears in the same columns. I'm showing every passage in the VI attached to show different columns in the string table.
Any help will be appreciated.
Thank you
hiNi.
I allocate an array of strings to the final size, then replace the data as you go. Here's the quick rewrite (LabVIEW 8.5).
(I don't understand your use of the structure of sequence variable, local and while loops. The first two are not necessary and the curls should be FOR loops, because you know the number of iterations in advance.
(Note also that you must work with chains for the final table. A digital painting is filled with zeros for undersized lines or columns. An empty string for the missing elements seems most appropriate).
-
adding table to the report: different column width
Hello
Is there a way to set different column width when the table is added to the report VI? As I understand it, the width is distributed in evently for the Table to add to the report VI.
I have a table with 5 colunms and to set the width of each column differently for printing of the report.
Thanks for your help
H. Pham
Dig into the Table to add to the report VI as a result of the entry of the column width, you will find the Table add to the report > add text table of report VI > tables.vi > Set Table column width VI. You will find a node invoke named SetColumnWidth. Simply enter the column number and the respective width for each column.
-
For example, my table contains data in a column as follows.
COLUMN_DATA
-------------------------
A00 FOOD 0
A01 0 DENTAL
A02 0 PLASMA
A01A0 CLEAR
A02A0 CHANNEL
A01A1 ANTACIDS
A01A2 ANTACIDS + Napthalone
A01A3 ANTACIDS + Olive
A02A1 ACIDS
A02A2 PLASMAACIDS
Now, there is a relationship between codes. Four level hierarchy is maintained. EG - A01A1-> A01A0-> A01-> A00 0 0
I want to receive data as in the format below:
T4_CODE T4_DESC T3_CODE T3_DESC T2_CODE T2_DESC T1_CODE T1_DESC
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ANTACIDS A01A PLAIN A01 DENTAL A01A1 A DIGESTIVE
A01A2 ANTIACIDES + Napthalone A01A PLAIN A01 DENTAL a DIGESTIVE
A01A3 ANTIACIDES + Olive A01A PLAIN A01 DENTAL a DIGESTIVE
A02A1 ACIDS A02A CANAL A02 PLASMA A ALIMENTARY
A02A2 PLASMAACIDS A02A A02 PLASMA CHANNEL HAS DIGESTIVE
So we must derive the level four of codes and their descriptions in different columns.
Any help is really appreciated.
Thanks in advance.
And I got a simpler and more efficient way to do ds.
with t as
(select text
case
When substr (text, 4, 1) = ""
then rtrim (substr (text, 1, 3), ' 0')
of another rtrim (substr (text, 1.5), ' 0')
end of the code
, substr (text, 7) descript
of lc_load
)
t2 as
(select
case length (t.code)
When 1
then 1
When 3
then 2
When 4
then 3
When 5
then 4
end lvl
, t.*
t
)
Select t2_4.code
t2_4.descript
t2_3.code
t2_3.descript
t2_2.code
t2_2.descript
t2_1.code
t2_1.descript
of t2_1 t2
Join t2 t2_2
on t2_1.code = substr (t2_2.code, 1, 1)
Join t2 t2_3
on t2_2.code = substr (t2_3.code, 1, 3)
Join t2 t2_4
on t2_3.code = substr (t2_4.code, 1, 4)
where t2_1.lvl = 1
and t2_2.lvl = 2
and t2_3.lvl = 3
and t2_4.lvl = 4
-
OBIEE 11 g Date between guest in different columns
Hello
I did, between guest day in Obiee by using this statement: link. It works well, but I need to manipulate different in a different column, for example:
Data source values:
100 2009
100 2010
100 2011
100 2012
100 2013
Guest (what I choose in the analysis)
StartDate: 2011
EndDate: 2012
Results of the analysis (sum):
Column A column B
200 400
Explanation of the results: column A contains the sum of 2011 and 2012, it is ok and works well. My problem is the B column; I want to use prompt EndDate, but ignore the prompt StartDate, the result should be 400 (2009:100 + 2010:100 + 2011:100 + 2012:100).
Do I need to use this prompt EndDate in colum of B?
I found the solution! Here it is if anyone else have the same problems:
1. create guests: startdate and enddate
2. then call created invites in the formula editor:
FILTER ("some". "WITH something' ('time'". "the dimension' between 2000 and @{enddate})))"
FILTER ("some". "WITH something' ('time'". "between dimension' @{startdate} and @{enddate})))"
-
How to display rows of data in different columns?
I'm new to SQL and currently, that's what I try to do:
Display multiple lines of data in different columns in the same row
I have a table like this:
CREATE TABLE TRIPLEG)
T # NUMBER (10) NOT NULL,
STEP # NUMBER (2) NOT NULL,
DEPARTURE VARCHAR (30) NOT NULL,
VARCHAR (30) DESTINATION NOT NULL,.
CONSTRAINT TRIPLEG_PKEY PRIMARY KEY (T #, LEG #).
TRIPLEG_UNIQUE UNIQUE CONSTRAINT (T #, DEPARTURE, DESTINATION).
CONSTRAINT TRIPLEG_FKEY1 FOREIGN KEY (T #) REFERENCES TRIP(T#));
INSERT INTO TRIPLEG VALUES (1, 1, 'Sydney', 'Melbourne');
INSERT INTO TRIPLEG VALUES (1, 2, 'Melbourne', 'Adélaïde');
The result should be something like this:
> T # | ORIGIN | DESTINATION1 | DESTINATION2
> 1 | SYDNEY | MELBORUNE | ADELAIDE
The request must include the ' COUNT(T#) < 3' since I only need to display the records of less than 3. How can I get the results I want to use relational views?
Thank you!!!
I replaced the syntax "where" with the syntax 'account '. The reason why I do this is because I want to only display records with a number of travel of less than 3. By defining where the legs #.<=3, the="" result="" will="" be="" all="" the="" records="" of="" the="" tripleg="" table="" since="" each="" record="" could="" also="" have="" leg#="" is="">=3,>
The answer is:
with t as (SELECT t #,)
REGEXP_REPLACE)
LISTAGG (start |) '->' || destination, ' ')
THE Group (ORDER BY t #, leg #).
'([^ ]+) \1+',
"\1") str
OF tripleg
HAVING COUNT (T #)<>
GROUP BY t #)
Select T #, regexp_substr (str, ' [^->] +', 1, 1) departure
, regexp_substr (str, ' [^->] +', 1, 2) destination_1
, regexp_substr (str, ' [^->] +' 1, 3) destination_2
, regexp_substr (str, ' [^->] +' 1, 4) destination_3
Thanks to Marty and knani!
-
Find the same value in different columns
Hello
I'm trying to figure out how I would get the same value in the same row but in different columns. For example, in the table sometimes report the name is the same as the description. I would like to find all the lines where this is the case.
Thank you
Name of the report Description Date Time Report 1 Report 1 Delalande TTTT Report 2 Billing report Delalande TTTT Report 3 Report 3 Delalande TTTT Hello
Is that what you want?
SELECT *- or whatever the columns that you want to
FROM table_x
WHERE description = report_name
;
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).See the FAQ forum: https://forums.oracle.com/message/9362002
-
Hello
I have a problem on dynamically the transfer values of different columns in two variables given rowtype type.
My intention is to transfer values from table1 into table2.
Basically, I stated to vars of v_table1 and v_table2% rowtype, each of them contains columns with the same, and also the individual column names.
v_table2% rowtype must be initialized with default values.
I would like to insert v_table2 values in table2 later by practice 'INSERT INTO TABLE2 VALUES v_table2'.
Before inserting, I need to change several values of column by different rules, but these rules are not relevant for my actual demand.
The point is, how can I transfer the values of v_table1 in v_table2 for the hanving of columns with the same column name, without hard-coding the names of columns, because these two tables contain many columns.
In addition values initialized with v_table2 default_data values should not be overwritten by data does not exist in the same named column of v_table1.
Example: If v_table1. D is NULL, it should not replace the default value initialized former "Monday".
Conditions:
Table 1 contains the following values:
Column name Value A '1' B '2' C NULL VALUE D 'somedata '. E NULL VALUE F « 3 » After the transfer of the values of v_table1 in v_table2, I guess that the following data:
Column name Value Source C NULL VALUE Table1.C D 'somedata '. Table1.D E "Tuesday". DATA_DEFAULT from Table2 F « 3 » Table1.F G NULL VALUE H NULL VALUE Right now I am already able to fill the v_table2 with the default values:
declare lv_query varchar2(1000); type cur_typ is ref cursor; rcur_typ cur_typ; v_table2 table2%rowtype; begin for rec in (select * from user_tab_columns where table_name = 'TABLE2' order by column_id ) loop if rec.data_default is null then lv_query := lv_query||', null'; elsif rec.data_type = 'NUMBER' then lv_query := lv_query||', '||rec.data_default; elsif rec.data_type = 'DATE' then lv_query := lv_query||', '||rec.data_default; else lv_query := lv_query||', '||rec.data_default||''; end if; end loop; lv_query := 'SELECT'||substr(lv_query, 2)||' FROM DUAL'; dbms_output.put_line(lv_query); open rcur_typ for lv_query; fetch rcur_typ into v_table2; close rcur_typ; end;
I have no idea how to achieve the transfer of v_table1 to v_table2 without substitute default values of table2.
As far as I know I can find these columns with column names by querying:
select column_name from user_tab_cols where table_name='TABLE1' intersect select column_name from user_tab_cols where table_name='TABLE2'
Maybe you can give me some advice.
Thank you very much.
Sample data:
CREATE TABLE "TABLE1" ( "A" VARCHAR2(20 BYTE), "B" VARCHAR2(20 BYTE), "C" VARCHAR2(20 BYTE), "D" VARCHAR2(20 BYTE), "E" VARCHAR2(20 BYTE), "F" VARCHAR2(20 BYTE) ); CREATE TABLE "TABLE2" ( "C" VARCHAR2(20 BYTE), "D" VARCHAR2(20 BYTE) DEFAULT 'Monday', "E" VARCHAR2(20 BYTE) DEFAULT 'Tuesday', "F" VARCHAR2(20 BYTE) DEFAULT 'Wednesday', "G" VARCHAR2(20 BYTE) DEFAULT 'Thursday', "H" VARCHAR2(20 BYTE) ); INSERT INTO "TABLE1" (A, B, D, F) VALUES ('1', '2', 'somedata', '3'); INSERT INTO "TABLE1" (A, B, D, F) VALUES ('1', '2', 'somedata', '3');
Banner:
Oracle Database 11 g Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
You can build a dynamic query that checks the values of all columns in the table 1,
and if a column contains null, then retrieves the default value of the column in table2,
or null if this column doesn't have a default vallue.
Something like this pseudocode
SELECT if column A is not null then take A from table1, else take default for column A from table2 ..... if column X is not null then take A from table1, else take default for column X from table2 FROM table1
The default budget can be extracted from USER_TAB_COLUMNS
select column_name, data_default from user_tab_columns where table_name = 'TABLE2' order by column_id ;
-
Create model XMLP for lines in 2 different columns?
Hi all, is it possible to create a model of XMLP which shows the same group of data, but in 2 different columns, i.e. the left column display (say) first 10 lines and the right column display lines of the 11th-20th?
The XML source contains only the total number but no individual line number.
Thank you very much!I have 2 columns of the table.
And in each column of a table. Round table can have at a time for each -
How to get multiple records in a line and a different column
Hi all
I am using oracle database 11g
and I have a two table table_1, table_2
table_1 has columns
emp_no
first name
middle_name
last_name
E-mail
and table_2 have columns
emp_no
phone_type
Phone_Number
and having entires
emp_no phone_type phone_number
1001 MOB 9451421452
1001 WEMG 235153654
1001 652341536 EMG
1002 MOB 9987526312
1003 WEMG 5332621456
1004 59612356 EMG
Now I want the output of values with the MOB or WEMG phone type in a single line with different columns
emp_no first_name last_name middle_name officeno mobile e-mail
1001 score null k 9451421452 235153654 [email protected]
1002 chagneau gary [email protected] 9987526312 null
1003 dany craig [email protected] 5332621456 null null
1004 donald finn sian [email protected] null null
Can I have any input to achieve this?
Concerning
$sidHi Sid,
Under query will be help for you...
SELECT tab1.emp_no
*, first name *.
*, middle_name *.
*, last_name *.
*, email *.
*, mobile t2.phone_number *.
*, t3.phone_number officeno *.
OF tab1
*, (SELECT Emp_no *)
*, phone_number *.
Of THE tab2
WHERE phone_type = "MOB") t2
*, (SELECT Emp_no *)
*, phone_number *.
Of THE tab2
WHERE phone_type = "WEMG") t3
WHERE tab1.emp_no = t3.emp_no
AND tab1.emp_no = t2.emp_no;Thnks,
cveluri -
See the script generates names of different columns... not even when view desc
When I describe myself I think I get the following columns
voucherdetail / / DESC
Name of Type Null
------------------------------ -------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SERIAL_NUMBER NOT NULL VARCHAR2 (20)
SECRET_CODE NOT NULL VARCHAR2 (100)
STATUS VARCHAR2 (2)
NUMBER OF FACE_VALUE
NUMBER OF CALL_VALUE
CREATION_DATE DATE
VALIDITY_EXTENSION_PERIOD NOT NULL NUMBER (5)
DATE OF VOUCHER_EXPIRY_DATE
NUMBER OF TAX_AMOUNT
NUMBER OF MISC_CHARGE
NUMBER OF OTHER_CHARGE
BATCH_NO VARCHAR2 (10)
DATE OF LAST_MODIFIED_DATE
LAST_MODIFIED_BY VARCHAR2 (25)
DATE OF REDEEMDATE
DATE OF ACTIVATIONDATE
WHEN I GENERATE MY VIEW SCRIPT GET THE SCRIPT ACCORDING TO:
CREATE VIEW VOUCHERDETAIL AS SELECT PinSeq, a.Account_id, a.Status,
(SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
WHERE A.charge_id = B.charge_id
AND B.CHARGE_WHEN = 'A' - RATED VALUE
AND WETODATE IS NULL
AND CHARGESHEETCODE = b.CHARGESHEETNO
) FACE_Value,.
(SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
WHERE A.charge_id = B.charge_id
AND B.CHARGE_WHEN = 'B' - CALL VALUE
AND WETODATE IS NULL
AND CHARGESHEETCODE = b.CHARGESHEETNO
) Call_Value,.
NVL (A.LAST_MODIFIED_DATE, A.CREATED_DATE) CREATED_DATE, EXPIRYDAYS, NVL(A.EXPIRYDATE,B.EXPIRYDATE) DISPLAYED,
(SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
WHERE A.charge_id = B.charge_id
AND B.CHARGE_WHEN = 'Q' - AMOUNT OF TAX
AND WETODATE IS NULL
AND CHARGESHEETCODE = b.CHARGESHEETNO
) Tax_AMOUNT,.
(SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
WHERE A.charge_id = B.charge_id
AND B.CHARGE_WHEN = 'H' LOAD - MISC
AND WETODATE IS NULL
AND CHARGESHEETCODE = b.CHARGESHEETNO
) VARIOUS,.
(SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
WHERE A.charge_id = B.charge_id
AND B.CHARGE_WHEN = 'X' - ANOTHER LOAD
AND WETODATE IS NULL
AND CHARGESHEETCODE = b.CHARGESHEETNO
) OTHER_CHARGE, a.swhBatchcode, a.LAST_MODIFIED_DATE, a.LAST_MODIFIED_BY, a.ATTRIBUTE_DATE1, a.ATTRIBUTE_DATE2
Mst_PINDetails a, mst_batchno b
WHERE a.swhBatchcode = b.swhBatchcode
ORDER BY PinSeq;
WHAT I SEE, IT IS THE NAMES OF COLUMNS THAT ARE DISPLAYED WHEN I DESCRIBE MY VIEW OR RUN MY QUERY ON THE VIEW, OR NOT THE SAME IN THE SCRIPT THAT I GENERATE... DUE TO WHICH MY APPLICATION FAILS FRONTEND WHEN I RUN MY REPORT ON THIS POINT OF VIEW
WHY IS THAT IT IS SHOWING DIFFERENT COLUMN NAMES?How can you generate your view script? Which tool?
For example, if you use TOAD, then check your script options. You can miss a check mark in the setting "columns".
It might be, that if you put the check mark in the "columns" setting, then your script is as follows:CREATE VIEW VOUCHERDETAIL ( SERIAL_NUMBER, SECRET_CODE, STATUS, FACE_VALUE, CALL_VALUE, CREATION_DATE, VALIDITY_EXTENSION_PERIOD, VOUCHER_EXPIRY_DATE, TAX_AMOUNT, MISC_CHARGE, OTHER_CHARGE, BATCH_NO, LAST_MODIFIED_DATE, LAST_MODIFIED_BY, REDEEMDATE, ACTIVATIONDATE ) AS SELECT PinSeq, a.Account_id, a.Status, (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B WHERE A.charge_id = B.charge_id AND B.CHARGE_WHEN='A' --FACE VALUE AND WETODATE IS NULL AND CHARGESHEETCODE =b.CHARGESHEETNO ) FACE_Value, (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B WHERE A.charge_id = B.charge_id AND B.CHARGE_WHEN='B' ----CALL VALUE AND WETODATE IS NULL AND CHARGESHEETCODE =b.CHARGESHEETNO ) Call_Value, NVL(A.LAST_MODIFIED_DATE, A.CREATED_DATE) CREATED_DATE, EXPIRYDAYS, NVL(A.EXPIRYDATE,B.EXPIRYDATE) EXPIRYDATE, (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B WHERE A.charge_id = B.charge_id AND B.CHARGE_WHEN='Q' --TAX AMOUNT AND WETODATE IS NULL AND CHARGESHEETCODE =b.CHARGESHEETNO ) Tax_AMOUNT, (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B WHERE A.charge_id = B.charge_id AND B.CHARGE_WHEN='H' --MISC CHARGE AND WETODATE IS NULL AND CHARGESHEETCODE =b.CHARGESHEETNO ) MISC, (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B WHERE A.charge_id = B.charge_id AND B.CHARGE_WHEN='X' --OTHER CHARGE AND WETODATE IS NULL AND CHARGESHEETCODE =b.CHARGESHEETNO ) OTHER_CHARGE, a.swhBatchcode,a.LAST_MODIFIED_DATE ,a.LAST_MODIFIED_BY, a.ATTRIBUTE_DATE1,a.ATTRIBUTE_DATE2 FROM mst_PINDetails a, mst_batchno b WHERE a.swhBatchcode = b.swhBatchcode ORDER BY PinSeq;
CREATE VIEW statement supports explicitly naming them columns. If they are named like that, then the query name/alias columns are ignored.
-
How to get the value of EV - the diiference between two different columns
Hello
I get the difference between the two different columns of two different... as tables (emp.sal - dept.comm)... all I want is I need only the records that a negative gap how get this? Please help me
Thanks in advanceIf I understand your question right:
select case when emp.sal-dept.comm>=0 then YOUR_VALUE else emp.sal-dept.comm end difference_value from emp,dept...
or do you want to:
select ... from emp,dept... where emp.sal-dept.comm<0
?
Kind regards
Sayan M.Published by: xtender on 19.11.2010 22:29
Maybe you are looking for
-
40.0.2 Firefox crashes at the opening.
Have tried a new installation on several computers Windows 7 Enterprise. All crash instances 40.0.2 Firefox on opening the program. Only solution is to save the version 39 rev and tell him no to automatic update.
-
How to remove a Firefox suggested entry for a field
When I entered data into a field (for example a userid) Firefox suggests (previous entries that I did) what I would select and save typing. How o I remove one of these suggestions so that it is not yet done?
-
I have wireless, ethernet on Satellite Pro M30 under Win XP
I SP30, 2004, I had XP XP2 and installed what is proving to be a full XP SP3 ISO on the superior thinking, that I have been installed only SP3, Well now, I don't have a network, have tried each drivers I find, as well since the site of Toshiba and in
-
Need help: best way to exchange the Ipads?
Dear all, Need help a genre: I use Ipad Air2 and my father is using retina Ipad Mini... I gifted him before 2 years...! We thought to share the Ipads because he loved the biggest... Can someone guide what is the best way to swap the parameters of the
-
Pavilion dv6t - 6 c 00 A1U55AV: which USB 3.0 driver should I use
I have a HP Pavilion dv6t - 6 c 00 A1U55AV who had a hard drive failure. After replacing the drive and the installation of the operating system, I was able to get all the resettled drivers, but I'm not sure that I installed the right driver USB 3. I