How to export data to excel that has 2 tables with the same number of columns and the column names?
Hi everyone, yet once landed upward with a problem.
After trying many things to myself, finally decided to post here...
I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.
It works very well with a single table. The problem now is that I cannot do the same with 2 tables.
Because the tables have the same number of columns and the columns names.
Here are the 2 tables with column names:
Table-1 (MONTHLY_PART_1) | Table-2 (MONTHLY_PART_2) |
---|---|
SL_NO | SL_NO |
MODEL | MODEL |
END_DATE | END_DATE |
U-1 | U-1 |
U-2 | U-2 |
U-4 | U-4 |
.......... | ........ |
.......... | ........ |
U-20 | U-20 |
U-25 | U-25 |
Given that the tables have the same column names, I get the following error :
402 error at line 103, column 4
required aliases in the SELECT list of the slider to avoid duplicate column names.
So how to export data to excel that has 2 tables with the same number of columns and the column names?
Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?
Help me with this please.
Thank you.
Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?
see you soon
Tags: Oracle Development
Similar Questions
-
I just want to know when you buy a software that has a compatibility with the operating system windows 8, applies to windows 8.1system automatically?
Former title: compatibility
Yes, he does. Windows 8.1 is compatible with Windows 8.0. In fact, it can run almost all programs built for 7, Vista and XP as well.
-
I have the first Pro 2015 but when I try to open a project that has been registered with the Premier Pro 2015 on another machine I get an error message that says that the project has been saved with the latest version. Help!
It seems that your version is not the latest.
Check help / about... what version it reads.
It should be 2015. (9.2.0 build 41)
Otherwise, please update your version via app updates... or cloud in respect of aid.
-
How to import a table with the renamed name
If I want to import a table from a DMP on UNIX to my user where I already have a new version, but I don't want to give up this new version, because I only move files from one to the other, is an import option for importing the table with another name? I want to say I want to import it on the same user, where there is already the MYTABLE table, an older version of MYTABLE by impoting with the new name MYTABLE_OLD, if eventually I can update MYTABLE with some of the old files of the old version MYTABLE_OLD. Is this possible?You can't do it directly.
You can import the Table into a different schema, and then rename the table.
export and import in the required schema.
Import DataPump: How to import Table data in a Table that has different name? [342314.1 ID]
Concerning
Rajesh -
LR/carrier - how to export data to Excel columns synthesis?
I am able to use the process token to select metadata that you wish to export. I don't see a choice of export to something other than a file (summary.txt) .txt. I expect another format which can be read by Excel or CSV.
Copy the .txt file in an Excel spreadsheet results in a long string data selected in the first row. How can I get the data columns (like file name, opening, shutter speed, etc) so that I can produce an Excel spreadsheet to search and sort the data?
Or I go about it the wrong way?
See my response to your other post: How do I export Lr/carrier for Excel format?
-
View messes up and says something that has to do with the "display driver"?
randomly my laptop screen will start going haywire for about five seconds, recovers, said "my recovered display driver" and then gives me the blue screen and restarts. What is going on? should I get a new hard drive?
Signature of the problem:
Problem event name: BlueScreen
OS version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
More information about the problem:
BCCode: 116
BCP1: FFFFFA8008DB34E0
BCP2: FFFFF88004007A2C
BCP3: 0000000000000000
BCP4: 0000000000000002
OS version: 6_1_7601
Service Pack: 1_0
Product: 768_1
Files helping to describe the problem:
C:\Windows\Minidump\062612-30622-01.dmp
C:\Users\hailey\AppData\Local\Temp\WER-99201-0.SysData.XML
[quote]
"It is not a true crash, in the sense that the blue screen was launched only because the combination of material and video driver video was to be insensitive and not because of any exception processing synchronous".Since Vista, the components of "Timeout detection and recovery" (TDR) of the subsystem video OS have been able to do some really impressive things to try to find issues that would have led to the earlier OS like XP to crash.
As a last resort, the TDR subsystem sends a video driver command "Please restart you now!" and wait a few seconds.
If there is no answer, the BONE concludes that the combo of driver/hardware video has really collapsed in a heap, and it fires at this stop 0 x 116 BSOD.
If playing with video driver versions did not help, make sure that the box is not overheated.
Try to remove a side panel and a fan of big sector directly to the motherboard and GPU.
Run it like that for a few hours or days - long enough to check whether the cooler temperatures make a difference.
If so, it could be as simple as dust accumulation and inadequate cooling afterwards.
I download cpu - z and gpu - z (both free) and keep an eye on the video time
[/ quote] -
How to remove books that have been transferred to a zune player. My player has a menu audiobook download to it, but when I go to the device to remove items from the menu audiobook does not appear?
Zune discussion group
They no doubt know the answer in the Zune Newsgroup above.
See you soon. Mick Murphy - Microsoft partner
-
How can I recover a message that has been deleted from the Recycle Bin?
I deleted an email that was sent to the trash. Then, I emptied my trash and want to retrieve this e-mail. Is it possible to do?
You can try to modify - cancel
Shortcut Ctrl + z
-
exporting data to Excel using XSSFWorkbook
Hi everyone export data to Excel using XSSFWorkbook
having error javax.el.ELException: means: lots of Java space now I need to change my code to BigGridDemo.java
http://www.Docjar.org/HTML/API/org/Apache/POI/xssf/userModel/examples/BigGridDemo.Java.html
http://Apache-POI.1045710.N5.Nabble.com/HSSF-and-XSSF-memory-usage-some-numbers-td4312784.html
How can I change my code for BigGridDemo.java
This is my code
import com.bea.common.security.xacml.context.Result;
import com.sun.jmx.snmp.Timestamp;
to import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;
import java.util.HashMap;
to import java.util.Iterator;
import java.util.Map;
Org.apache.poi.ss.usermodel import. *;
Import javax.faces.context.FacesContext;
Import org.apache.poi.hssf.usermodel.HSSFCell;
Import org.apache.poi.hssf.usermodel.HSSFCellStyle;
Import org.apache.poi.hssf.usermodel.HSSFDataFormat;
Import org.apache.poi.hssf.usermodel.HSSFRow;
Import org.apache.poi.hssf.usermodel.HSSFSheet;
Import org.apache.poi.hssf.usermodel.HSSFWorkbook;
Org.apache.poi import. *;
Import org.apache.poi.hssf.util.HSSFColor;
Import oracle.adf.model.BindingContainer;
Import oracle.adf.model.BindingContext;
Import oracle.adf.model.binding.DCBindingContainer;
Import oracle.adf.model.binding.DCIteratorBinding;
Import oracle.adf.view.rich.component.rich.data.RichTable;
Import org.apache.poi.POIDocument;
import org.apache.poi
Import org.apache.poi.xssf.usermodel.XSSFWorkbook;
Org.apache.poi.hssf.usermodel import. *;
Import oracle.jbo.Row;
Import oracle.jbo.RowSetIterator;
Import oracle.jbo.ViewObject;
Import org.apache.myfaces.trinidad.model.CollectionModel;
Import org.apache.myfaces.trinidad.model.RowKeySet;
Import org.apache.myfaces.trinidad.model.RowKeySetImpl;
Import org.apache.poi.hssf.usermodel.HSSFRichTextString;
Import org.apache.poi.ss.usermodel.Workbook;
Import org.apache.poi.POIXMLDocumentPart;
Import org.apache.poi.POIXMLDocument;
Import org.apache.poi.hssf.usermodel.HSSFRow;
Import org.apache.poi.hssf.usermodel.HSSFSheet;
Import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public class PoiBean {}
RicheTableau CustomTable;
public PoiBean() {}
}
public static BindingContainer {} getBindingContainer()
return (BindingContainer) JSFUtils.resolveExpression("#{bindings}");
return (BindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
}
public static DCBindingContainer getDCBindingContainer() {}
return (DCBindingContainer) getBindingContainer ();
}
' Public Sub generateExcel (FacesContext facesContext, OutputStream outputStream) throws IOException {}
try {}
Workbook = new XSSFWorkbook(); or new HSSFWorkbook();
Spreadsheet sheet = workbook.createSheet("Fonts");
Get all lines of an iterator
/////////////////////////////////////////////////////////////////////////////////////////////////////
Links DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding dcIteratorBindings = bindings.findIteratorBinding("CustomClientView1Iterator");
Line rowss = worksheet.createRow (0);
ViewObject yourVO = dcIteratorBindings.getViewObject ();
Get all the lines of a ViewObject
RowSetIterator iter = yourVO.createRowSetIterator ("CustomClient");
ITER. Reset();
int rowCounter = 0;
While (iter.hasNext ()) {}
A cell = null;
line oracle.jbo.Row = iter.next ();
print header on the first line in excel
If (rowCounter == 0) {}
rowss = worksheet.createRow (rowCounter);
int cellCounter = 0;
{for (String colName: {row.getAttributeNames ())}
cell = rowss.createCell (cellCounter);
cellA1.setCellValue (colName);
cellCounter ++;
}
}
print the data from the second row in excel
rowCounter ++;
//////////////////////////////////////////////////////////////
short j = 0;
int cellCounter = 0;
excelrow = (HSSFRow) worksheet.createRow ((int) i);
rowss = worksheet.createRow (rowCounter);
{for (String colName: {row.getAttributeNames ())}
System.out.println ("Hello" + row.getAttribute (colName));
System.out.println ("Hello" + name of column);
cell = rowss.createCell (cellCounter);
rowCounter ++;
cell.setCellValue (new HSSFRichTextString (rs.getS));
{if (! isBlank (colname))}
If (colName.equalsIgnoreCase ("CcnCode")) {}
cell.setCellValue (row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
System.out.println ("column name" + colName + "row.getAttribute (colName) m:System.NET.SocketAddress.ToString ()" + row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
}
}
logic for the cell formatting
ElseIf (colName.equalsIgnoreCase ("CcnName")) {}
cell.setCellValue (row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
}
make double if you want to convert as a result
ElseIf (colName.equalsIgnoreCase ("CcnRegDate")) {}
cell.setCellValue (row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
}
ElseIf (colName.equalsIgnoreCase ("CcnCancelDate")) {}
{if (null! = Row.GetAttribute (colname))}
cell.setCellValue (row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
}
} ElseIf (colName.equalsIgnoreCase ("CcnUndertaking")) {}
{if (null! = Row.GetAttribute (colname))}
cell.setCellValue (row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
}
}
ElseIf (colName.equalsIgnoreCase ("CcnCode8")) {}
{if (null! = Row.GetAttribute (colname))}
cell.setCellValue (row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
} }
on the other
cell.setCellValue (row.getAttribute (colName) m:System.NET.SocketAddress.ToString ());
cellCounter ++;
}
worksheet.createFreezePane (0, 1, 0, 1);
}
Workbook.Write (OutputStream);
outputStream.flush ();
}
//}
catch (Exception e) {}
e.printStackTrace ();
}
}
The demo "big grid" is obsolete and has been replaced by SXSSF, which is compatible with XSSF (seehttp://poi.apache.org/spreadsheet/how-to.html#sxssfthe new Halloween Document) API.
Theoretically, all you need to do is replace "new XSSFWorkbook()" by "new org.apache.poi.xssf.streaming.SXSSFWorkbook ()" in your program.
You better post any specific questions of POI on the forum of the user Apache POI (see mailing lists , Apache POI)
Kind regards
Alex
-
Export data to Excel does not work in the build (.exe)
I'm new to LabView 2010, but made a small application which works as expected when run as a VI in the Labview environment. This is a simple data acquisition where the results are displayed in a waveform graph. I used the method "Export data to Excel" to present the request to transfer the results on the chart in an Excel file programmatically.
However, when I build the application and run the exe, the application works very well outside the export to Excel. Excel does not start, and when I right click on the graph for "export data to Excel" manually, it doesn't work anymore. The data can be exported to the Clipboard and then pasted into Excel, which is doable, but not very elegant solution...
Any thoughts?
Hi CFNoergaard,
This issue has been corrected in LabVIEW 2010 SP1.
If you upgrade to this version, it should do the trick.
-
How to import data in Excel sheet to the database using ADF BC
Hello
Can someone help me in suggesting how to import data from excel to database.
Thank you
Kunal Sharma
Hello
You can use the API to read each line of the file excel with your application and the creation of lines for each line that you read.
See link
http://www.codejava.NET/coding/how-to-read-Excel-files-in-Java-using-Apache-POI
-
Export data in Excel from pl/sql
can someone please give me some code examples on how to export data from pl/sql to excelNo, it's the problem. Oracle is unable to see the client directories (and it shouldn't). UTL_FILE works only in the directories of the server.
Concerning
Marcus -
How to fix iPhone 6 Plus that has had water damage.
How to fix iPhone 6 Plus that has had water damage.
By Apple
If you have Applecare and have identical one lives left, a replacement iPhone franchise according to your country
If not, the price of a new iPhone, there is no repair for a water damaged phone
-
Hello
in our society, we have an old domain controller has been disconnected for more than 200 days, probably in a State of thumbstone, it still appears in our network. We wanted to know what is the best way of disused this server, we connect to our network and do normal downgrade process.
How do you decommssion a domain controller that has not been on the network of more than 200 days?
Could you please write me back to my work email or call me on my work phone? Job information are below.
Hello
The business support, you can find forums on TechNet, see the following links:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
How can I play multiple instances of video (no problem reading of 12 movies at the same time, at the opening of the 13th film the problem only starts), the classic use of media player in windows XP? I was able to do all the time! It has to do with the codec?
If yes what codec plays multiple instances of Media Player Classic in windows XP?
I get the same problem with VLC all that needs to be checked on preferences is checked in the two VLC & MPC!Hello
Multiple instances of Media Player is not supported in version 7 and greater.
· What version of Windows Media Player you have installed?
· Are instances that you are referring to the bodies shipped?
· You use any third-party software to run multiple instances?
Maybe you are looking for
-
How can I unsubscribe from a monthly automatic renewal for the Washington Post?
I don't want to get the Washington Post more. It automatically renews each month and I pay on my Apple account. How can I stop it?
-
Why won't my iPhone 5s 9.3.5 update of the new iOS10?
Why won't my iPhone 5s 9.3.5 update of the new iOS10?
-
contacts sucked out of my mac. How to remove only the?
I just put Skype on my mac and it auto added my entire contacts in my address book. I don't want these CONTACTS, but can't say which ones I had before. How can I distinguish and cancel this? It's a horror for me to have thousands of addresses of Skyp
-
Can't see the number of COA to my Satellite L350-170
Hello I just wanted to ask I have a laptop Toshiba Satellite L350-170 and the sticker on the underside that CoA is all gone and cannot see all numbers or anything about it either and now today have noticed the band interleaved the vista COA silver st
-
My dear my vc system tray does not properly please give a solutiom
My dear, my computer showing me the plateau of vcsystem msg does not not properly.please give me the solution. Thank you