Fill in the data in terms of different columns no lines?

Hello world

My version of DB is

BANNER

--------------------------------------------------------------------------------

Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE 11.2.0.1.0 Production

AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

Now, if I want to see number of carpenters in a month individual per year on the emp table and then

Select to_char(hiredate,'MON/YY') as MONTH_YEAR, count (*) as no_of_joiners of the emp by to_char(hiredate,'MON/YY') group.

No it will return the month/year and not carpenters during this period.

But I want to fill the same data that "each month will be a separate column and no value of carpenters will appear in the relevant month/year column»

How can I do?

Kind regards

BS2012.

Hi Frank,.

I have it. Please check on the following query. Hoooooaaaaaa

SELECT count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "JAN/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JAN/81 ' ") END) AS"JAN/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "FEB/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' FEB/81 ' ") END) AS"FEB/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = ' MAR/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' MAR/81 ' ") END) AS"MAR/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = ' APR/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' APR/81 ' ") END) AS"APR/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = ' CAN / 81'

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' CAN / 81') END) AS "CAN / 81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "JUN/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JUN/81 ' ") END) AS"JUN/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "JUL/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JUL/81 ' ") END) AS"JUL/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "AUG/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' AUG/81 ' ") END) AS"AUG/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = ' MS/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' MS/81 ' ") END) AS THE"SEP/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "OCT/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' OCT/81 ' ") END) AS"OCT/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "NOV/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' NOV/81 ' ") END) AS"NOV/81",

count)

CASE

WHEN TO_CHAR(HIREDATE,'MON/YY') = "DEC/81 '.

THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' DEC/81 ' ") END) AS"DEC/81 ".

FROM EMP;

Tags: Database

Similar Questions

  • Divide the data in row in different columns

    Hi all
    I have a table with a column as below.
    col1
    ------------
    / shared
    / shared/dashboard invites you
    / shared/dashboard of the guests/statistics_from_to_p
    / Shared/Filters
    / Shared/Filters/_filters
    / shared/Summary Reports
    / shared/reports/age_gender_r summary
    / shared/TRC explore _portal/edge/DB tables / dashboard layout

    Here, I want to split these data delimited by "/" and the need to show as below. I tried with substr and instr functions, but I could not achieve.
    col1 Col2 col3 col4 col5 col
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    / shared shared null null null null
    / shared/dashboard guest shared Dashboard prompt null null null
    / Shared/Dashboard Dashboard shared guests/statistics_from_to_p invites statistics_from_to_p null null
    / Shared/shared Filters filters null null null
    / Shared/Filters/_filters shared filters _filters null null
    / shared/Summary Reports shared null null null Summary Reports
    / Shared/Summary reports/shared age_gender_r null null age_gender_r summary reports
    Explore _portal/edge/DB tables layout / dashboard/Shared/TRC shared _portal TRC dashboard layout of dashboard Explorer tree
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Appreciate your help.

    Thank you.
  • Fill in the Date field to CurrentDate if not entered by the user

    I have this simple condition to enter the Date to current date if it is not entered by the user. In the same way with the time of day. I tried writing below the lines in the document of the rule, but it does not work: -.

    DATE = current date if

    DATE is not known

    Can someone help me with this? I have a screen where the field belongs to several questions. If not entered by the user, the system fills when the user presses the submit button.

    3 things to consider:

    • If the user does not provide an answer to a question of date attribute, this attribute date will be uncertain, not unknown;
    • You cannot define an attribute based on itself - which is a loop of logic and modules does not compile
    • You cannot set a conditionally non Boolean attribute without a rules table.

    My solution would be to ask the user for the value of another attribute (DATE of the USER) and then use it to determine the value of DATE inside a table of rules, as follows:

    DATE

    the date of the day

    The USER DATE is uncertain

    THE USER DATE

    in the opposite case

    See you soon,.

    Brad.

  • Script to fill in the date field and disable the form

    Hi all

    With little experience of Adobe I was tasked to create a set of PDF forms to use in my company. I drew using Pro forms, but I need a digital signature field that will fill a separate date field at the signing and also disable some of the fields in the form. For the moment I can get it to do one or the other, but I can't do both.

    Is there a script that I can use for these functions?

    Thank you

    KC

    As you have probably seen, there is an option on the signing tab to run a script when a digital signature is applied.

    Do what you have described what follows can be used (of course, you have to adapt the name of the field):

    this.getField("SignatureTime").value = util.printd ("mm/dd/yyyy", new Date()); Enter the date with the current date

    this.getField("Text1").readonly = true; The value of some fields read-only

    this.getField("Text2").readonly = true;

    this.getField("Text3").readonly = true;

    this.getField("Text4").readonly = true;

    etc.

  • Cancellation of the assignment and reassign the data store by using different LUNS that datastore has not appeared.

    Hi all

    I have a data store after vdisk1 I have not assigned the vdisk to data store and reread the esxserver, the data store has disappeared.

    Again, I assigned the vdisk using the same number of logical unit as before and reread the esxserver, datastore appeared again return.

    But if I use a different assignment vdisk lun and on a new analysis of data store does not appear.

    Can someone tell me if the LUN must be even to see the store of data back again.

    If so why. ?

    Is there a vmware documentation to substantiate this claim.

    concerning

    Neela

    What do you mean by vdisk1?  The data store are stored as metadata on the LUN, when is formatted VMFS.  If you remove the LUN the VMFS is sitting on, then Yes, the data store will disappear.  If you only remove the vmdk who lives on this data store, then no, the data store must remain as it is, and you should be able to move the vmdk on the data store as needed.

    -KjB

    VMware vExpert

  • Automatically fill in the Date fields

    Can you have automatically fill fields date after you have entered a date? For example, if someone has put a date in a field "Date Week Ending ', could other date fields automatically fill in office on that date?

    ZeroZone

    Use a calendar for the first field widget.  Then use the text fields for each date, you need.

    If you wanted to tomorrow's date, enter the first field measurements: (formCalc)

    If (StartDate.rawValue == null) then
    $.rawValue = «»
    on the other
    Num2Date (Date2Num (StartDate.formattedValue, DateFmt (2)) + 1, DateFmt (2))
    endif

    If you want to 7 days of the date selected, change + 1 to + 7 and so on.

  • Fill in the data in an Excel template (with pre-defined formulas) Oracle

    Hello

    Anyone know how I can fill (with PL/SQL) Oracle data in an Excel template (with pre-defined formulas)? I mean that the user provides the Excel model so I just transfer the data from Oracle in particular cells in the worksheet. The model can be large and can become 50 pages long.

    Thank you.
    Andy

    So, you want an Oracle process or a process of APEX to take an existing Excel file and simply plug data into it? What I would say is instead, you export your data out and into your writing Excel VBA code file to take you input file and treat it accordingly.

    Thank you

    Tony Miller
    Webster, TX

    You can get more with a kind word and a legacy, you can with just a kind word

  • Fill in the date field

    Hi all, I am filling the 'datefield' (cv58) when the 'valid' field (cv55) is set to a specific string in the menu dropdown. I used the following code in the change event of the (cv55).    If (form1. P1.client.variable_option_client. CV55. RawValue == "Validated") and then of form1. P1.client.variable_option_client. CV58. RawValue = num2date (date (), 'YYYY-MM-DD') endif if (form1. P1.client.variable_option_client. CV55. RawValue is "On hold" GOLD form1. P1.client.variable_option_client. CV55. RawValue == not "validated" GOLD form1. P1.client.variable_option_client. CV55. RawValue == 'null') and then of form1. P1.client.variable_option_client. CV58. RawValue = "null" endif this does not pupulate anything in my datefield.  I need the datefield to fill with date of the day when (cv55) is set to 'Valid' else it should not set the date for what either.  Please help Joey

    Hello

    the rawValue applies only when you exit the menu drop down.

    Use xfa.event.newText instead.

    If (xfa.event.newText eq 'valid') then

    Form1. P1.client.variable_option_client. CV55 = Num2Date (date (), "YYYY-MM-DD")

    on the other

    Form1. P1.client.variable_option_client. CV55 = null

    endif

  • showing a date of entry of the Recordset, how to fill out the dates does not appear?

    I've been several different directions on it, but it can work.

    I'm trying to list a date range as Nov 1-8 November, that is to say Nov1, 2, Nov3, etc., under each date show a COUNTY recordset for this date and if there is no record for this date, indicates 0.

    I have this sql

    mysql_select_db($database_connbubba, $connbubba);
    $query_rs_count = "SELECT yard_sales.yardsale_date,DATE_FORMAT(yard_sales.yardsale_date, '%b %d') AS theDate,COUNT(*) FROM yard_sales WHERE yard_sales.yardsale_date>=CURDATE() GROUP BY yard_sales.yardsale_date";
    $query_limit_rs_count = sprintf("%s LIMIT %d, %d", $query_rs_count, $startRow_rs_count, $maxRows_rs_count);
    $rs_count = mysql_query($query_limit_rs_count, $connbubba) or die(mysql_error());
    $row_rs_count = mysql_fetch_assoc($rs_count);
    


    user publishes their yard sales information in the db and the yardsale_date column is date YYYY-MM-DD

    with this configuration, so I have a table with 2 lines (rs_count.theDate and rs_count. COUNT) and the table is repeated horizontally.

    so the result is

    2 Nov6 Nov8

    1 yard Sale 2 Yard Sale 1 Yard Sale

    How can I get

    Nov2                 Nov3                   Nov4                 Nov5                   Nov6                      Nov7                  Nov8

    1 yard Sale 0 Yard Sales 0 Yard Sales 0 Yard sale Yard Sales 0 Yard Sale 1 Yard Sale 2

    Thanks for your help,

    Jim balthrop

    You cannot display the data that do not exist, so you must first create another calendar table which includes all the possible dates. You can then join this table to your main table. Pull on the dates of the calendar table and count the number of sales in your main table. To group the dates table.

  • fill in the data of the table

    Hi, I have the problem on coding when I use the table to display the data in the table. I don't know what Miss me in the code, data appears only in the first row and second row appears empty. I have spent a lot of time to find the solution but I am not successful.

    I need your help. Thank you.

    This is the encoding that puts the button: click

    var part1 = new Array ("A", "3", 78, 9)
    var part2 = new Array("E","2",45,8);
    var part3 = new Array("C","1","14",9);

    var b = new Array("",part1,part2,part3)

    var a = new Array()
    a = form1.page1.Table1.Row1.TextField1 [0];
    a = form1.page1.Table1.Row1.TextField2 [1];
    a = form1.page1.Table1.Row1.TextField3 [2];
    a = form1.page1.Table1.Row1.TextField4 [3];

    a = form1.page1.Table1.Row2.TextField5 [4];
    a = form1.page1.Table1.Row2.TextField6 [5];
    a = form1.page1.Table1.Row2.TextField7 [6];
    a = form1.page1.Table1.Row2.TextField8 [7];

    a = form1.page1.Table1.Row3.TextField9 [8];
    a = form1.page1.Table1.Row3.TextField10 [9];
    a = form1.page1.Table1.Row3.TextField11 [10];
    a = form1.page1.Table1.Row3.TextField12 [11];

    for (var i = 0; i <.) Length; i ++) {}
    for (var j = 0; j < b.length; j ++) {}
    a [i] = b [j] [i] .rawValue;
    }

    }

    Hello

    Try this.

    var i = 0;
    for (var j = 0; j)< b.length="" ;="">
    for (var k = 0; k)< b[0].length="" ;="">
    a [i] = b [j] [k] .rawValue;
    i ++ ;
    }
    }

  • How to recover data from textfield, select location and fill in the data of another textfield

    I want to be able to enter a number or text in a field, and then select a location for the data to be placed in the world based on the selected location

    Here's a form Im trying to get to work.

    http://www.myschooljacket.com/OutputLocation.PDF

    Thanks for any help you can lend.

    OK I've got get it now... is your modified sample.

    Paul

  • How to fill out the Date and time in the OPS page CO

    Hi all

    How to generate the date current system (without using "select sysdate from dual"), in the controller OAF (processRequest) to an OAMessageDateFieldBean page?
    When I use the following code, the month is always displayed in January alone.
    In his display as a page OFA: January 26, 2009 15:46:30
    Using System.out.println: 2009-05-26 15:46:30.0

    Kindkly help me in this regard.

    Code
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    SimpleDateFormat f = new SimpleDateFormat ("yyyy-mm-dd hh: mm :"); ")
    String dateString = am.getOADBTransaction () .getCurrentDBDate () m:System.NET.SocketAddress.ToString ();

    java.sql.Date sqlDate = new Date (f.parse (dateString) .getTime ());

    DateField OAMessageDateFieldBean =
    (OAMessageDateFieldBean) webBean.findIndexedChildRecursive ("currentDate");
    dateField.setValue (pageContext, sqlDate);

    System.out.println (am.getOADBTransaction () .getCurrentDBDate (). ToString());

    Kind regards
    Joe

    Hey Joe,

    Change the line of code...

    Of

    SimpleDateFormat f = new SimpleDateFormat ("yyyy-mm-dd hh: mm :"); ")

    TO

    SimpleDateFormat f = new SimpleDateFormat ("yyyy-MM-DD hh: mm :"); ")

    It will work...

    Thank you
    Anoop

  • Fill in the data in the text field

    Hi all
    Here, I'm a bit confused. In my page, I have three text boxes, they are - P10_YEAR, P10_MONTH, P10_TOTAL. I use LOV for year and month field. LOV is as for the year 2000, 2000, 2001; for the month of June 2001; June, July. ; July and so on. Month field is set to textbox to validate.
    So I want to recover the data in the P10_TOTAL when the user selects the month. Interestingly, it always returns 0, but it should be more than that. I put the Source for P10_TOTAL as PL/SQL Expression * 0 = (SELECT count (*) from rtv_metro_count where record_month =: P10_month); * but it does not work. However, it does not work in the sql query and the toad. I tried to change the SQL query expression, but doesn't work anymore.

    Is there another way, I can run this task, retrieve data from the table in a specific text field? Please provide your suggestions.

    Thanks in advance.

    Djelloul

    Create a process page - on submit using the following code:

    DECLARE
    v_count NUMBER;
    BEGIN
    SELECT COUNT (*)
    IN v_count
    OF rtv_metro_count
    WHERE record_month =: p10_month;

    : p10_total: = v_count;
    END;

    and eliminate the source of pages by assigning static assignment - only when the current value in session state is set to zero.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • 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})))"

  • 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.

Maybe you are looking for

  • Icons become very large and do not match the screen

    My screen keeps going wonky and the image becomes too large for the iPad mini.  I continue to turn it off, and sometimes it returns to normal.  How can I stop this from happening?

  • sync iPhone completed, but nothing transferred

    So I have this problem I deleted all the music on my iPhone 6 of 9.3.3 and wanted to put it back on the phone via iTunes 12.4.2.4. 8 64-bit Windows. I also run iTunes diagnostics for Device Connectivity and synchronization of device Test, and this is

  • Unable to get internet via Wi - Fi

    I can't access the internet via my laptop. all other devices works fine (apple phone ipad tv etc.) I can connect with a cable directly to the wifi router and everything works. What could be the problem.

  • HP Designjet T830: HP Designjet multifunctional T830

    Hello HP Designjet T830 multifunction have twain driver?

  • Toshiba DVD player freezes my Windows 7 computer.

    Hi all I had horrible probs with my PC lately. The new number is my Player DVD from Toshiba. If I click again on it to try to watch a DVD on my pc just freezes and I have to turn it off as it is.  What is going on? I checked every device driver M and