Pulling data from table to a flat file
hi all,
Good day to all,
Is there any script which i can use for pulling data from tables to a flat file and then import that data to other DB's. Usage of db link is restricted. The db version is 10.2.0.4.
thanks,
baskar.l
Is there any script which i can use for pulling data from tables to a flat file and then import that data to other DB'sFlat file is adequate only from VARCHAR2, NUMBER, & DATA datatypes.
Other datatypes present a challenge within text file.
A more robust solution is to use export/import to move data between Oracle DBs.
Similar Messages
-
Extracting data from Oracle to a flat file
I'm looking for options to extract data a table or view at a time to a text file. Short of writing the SQL to do it, are there any other ideas? I'm dealing with large volumes of data, and would like a bulk copy routine.
Thanks in advance for your help.Is there any script which i can use for pulling data from tables to a flat file and then import that data to other DB'sFlat file is adequate only from VARCHAR2, NUMBER, & DATA datatypes.
Other datatypes present a challenge within text file.
A more robust solution is to use export/import to move data between Oracle DBs. -
How to extract data From Hyperion Essbase to Flat Files
Hi ,
Can anyone tell me how to extract data from Hyperion essbase to Flat file(e.g. .csv , .txt ,...) or Oracle Table using ODI.
Regards,
AvneetHi sutirtha,
I have make one column as key column now i am getting this error,
org.apache.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "<string>", line 1, in ?
com.hyperion.odi.essbase.ODIEssbaseException: The number of columns returned by script [10] is less than the source data columns exposed [12]
at com.hyperion.odi.essbase.ODIEssbaseDataReader.getAppData(Unknown Source)
at com.hyperion.odi.essbase.AbstractEssbaseReader.extract(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
at org.python.core.PyMethod.__call__(PyMethod.java)
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.PyInstance.invoke(PyInstance.java)
at org.python.pycode._pyx7.f$0(<string>:1)
at org.python.pycode._pyx7.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.A(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Caused by: com.hyperion.odi.essbase.ODIEssbaseException: The number of columns returned by script [10] is less than the source data columns exposed [12]
at com.hyperion.odi.essbase.wrapper.EssbaseReportDataIterator.validateColumns(Unknown Source)
at com.hyperion.odi.essbase.wrapper.EssbaseReportDataIterator.init(Unknown Source)
... 33 more
com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: The number of columns returned by script [10] is less than the source data columns exposed [12]
at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.A(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source) -
Extracting data from Essbase & loading into flat file through ODI
Hi,
I want to extract data from Essbase and load it into a flat file through ODI(for extraction from essbase I'm using a report script) and I’m using these KM’s:- LKM Hyperion Essbase data to SQL,IKM SQL to FILE Append & for reversing I’m using RKM Hyperion Essbase.All the mappings have been done and the interface has been made. But when I’m executing the interface it is throwing the error below:-
ODI-1217: Session ESS_FILEI (114001) fails with return code 7000.
ODI-1226: Step ESS_FILEI fails after 1 attempt(s).
ODI-1240: Flow ESS_FILEI fails while performing a Loading operation. This flow loads target table ESS_FILE.
ODI-1228: Task SrcSet0 (Loading) fails on the target FILE connection FILE_PS_ODI.
Caused By: java.sql.SQLException: ODI-40417: An IOException was caught while creating the file saying The system cannot find the path specified
at com.sunopsis.jdbc.driver.file.impl.commands.CommandCreateTable.execute(CommandCreateTable.java:62)
at com.sunopsis.jdbc.driver.file.CommandExecutor.executeCommand(CommandExecutor.java:33)
at com.sunopsis.jdbc.driver.file.FilePreparedStatement.execute(FilePreparedStatement.java:178)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:619)
Please let me know what I'm missing and how I can resolve this error.
ThanksIt seems that you are trying to use the file as your staging areas. Hyperion LKM extracts essbase data into a DB staging area which can then be used by your file IKM to load it into file.
You need to use a RDBMS for your staging area. -
Extract data from Query to a Flat File - scheduling in the background
Hi All,
We need to extract data from a query to a flat file periodically, but each time 10 separate executions based on 10 profit centers, to get the separate files.
So, we have PC1, PC2, ... PC10 Profit centeres.
We have Query1, with profit center variable.
We have created 10 variants for Query1 so that we can execute for 10 profit centers.
Now, we have used RSCRM_BAPI to execute the Query1 and write to a flat file. Now we are having a problem in getting this feature used to execute the query automatically for 10 different varaints.
Thanks in advance,
_ ShashiShashi,
You can try using Information Broadcasting or Reporting Agent. You can schedule this in Information Broadcasting.
check this link for Information Broadcasting... <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm</a>
Nagesh Ganisetti. -
DOWNLOADING DATA FROM R/3 TO FLAT FILE
hi,
friends,
In bdc while downloading DATA , i am getting error in filename
error- field filename is unknown & it is neither in one of the specified tables nor defined by "data" statements.
report yreport
tables:kna1.
DATA :BEGIN OF ITAB OCCURS 0,
KUNNR LIKE KNA1-KUNNR,
LAND1 LIKE KNA1-LAND1,
NAME1 LIKE KNA1-NAME1,
END OF ITAB.
SELECT KUNNR LAND1 NAME1 FROM KNA1 INTO TABLE ITAB.
CALL FUNCTION 'WS-DOWNLOAD'.
FILENAME = 'C:\VEND.TXT'.
FILETYPE ='DAT'.
TABLES DATA_TAB = ITAB.
NEAR filename
Error- field filename is unknown & it is neither in one of the specified tables nor defined by "data" statements.Hi,
Please use the following code,
DATA: ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm,
lv_file(80),
lv_fieldln TYPE i,
lv_def_path TYPE rlgrap-filename,
lv_mode TYPE c VALUE 'S',
lv_tmp_filename TYPE rlgrap-filename,
lv_tmp_mask(80).
FIELD-SYMBOLS: <fs_tmp_sym>.
save_ok = ok_code.
CASE save_ok.
WHEN 'EXCEL'.
*--- On click of 'Download to Excel' button transfer the ALV data to
*--- Excel sheet.
lv_tmp_mask = ',.,..'.
lv_fieldln = strlen( lv_def_path ) - 1.
ASSIGN lv_def_path+lv_fieldln(1) TO <fs_tmp_sym>.
IF <fs_tmp_sym> = '/' OR <fs_tmp_sym> = '\'.
CLEAR <fs_tmp_sym>.
ENDIF.
*--- Get the file name & path to which file has to be downloaded.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_path = lv_def_path
mask = lv_tmp_mask
mode = lv_mode
IMPORTING
filename = lv_tmp_filename
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc = 0.
*--- As we need to download the file in 'XLS' format add the
*--- extension '.XLS' if it is not provided by the user.
IF NOT lv_tmp_filename CS c_excel.
CONCATENATE lv_tmp_filename c_excel INTO lv_file.
ELSE.
lv_file = lv_tmp_filename.
ENDIF.
ELSE.
EXIT.
ENDIF.
*--- Down load the file to the path and filename provided above.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = lv_file
filetype = 'DAT'
TABLES
data_tab = gt_excel1
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
OTHERS = 10.
IF sy-subrc = 0.
MESSAGE i000(zf) WITH text-017.
ELSE.
MESSAGE e939(zf) WITH lv_file. "Errors while downloading.
ENDIF.
ENDCASE.
gt_excel1 is the internal table you provide to the FM for downloading.
lv_file is automatically taken care of from the input provided by the user.
The above code is triggered when a button in Application tool bar is clicked. Please use it as needed. It will ask for the path to which file has to be downloaded and once provided it will download the table only to excel.
It will work for sure.
Regards,
Paul. -
Extract of Data from Oracle in a Flat File with Column and Record seperator
I have a case where I have to extract whole data froma Oracle Table where the Columns should be seperated by |@|
and Records by ^*^.
The reason for this is My data has Space and New line in it. So My Program to recoganize each column and record I want them to be seperated by special chars.
Itried this but of no much help.
set echo off newpage 0 space 0 pagesize 0 feed off head off trimspool on;
spool on;
set colsep '|@|';
set recsepchar '^*^';
spool "T_COMPLAINT.dat";
select * from T_COMPLAINT where ROWNUM < '100' order by cptoid;
spool off;Having '@' and '*' characters in the data will not make any difference if you are using a combined column separator of '|@|' - provided any process you use subsequently can handle it.
However, the recsepchar parameter appears to be restricted to a single character which is repeated right across the page, so I don't think you could have a single iteration of '|*|' using this method:
SQL> set newpage 0 space 0 pagesize 0 feed off head off trimspool on
SQL> set recsep EACH
SQL> set recsepchar '*'
SQL> set colsep '|@|'
SQL> select * from testa;
A |@|1@ |@|22-JUN-2010
B |@|2* |@|22-JUN-2010
B |@|2* |@|22-JUN-2010
********************************************************************************Edited by: LindaA on 23-Jun-2010 08:33 -
How can I pull data from an attached excel/csv file?
I currently manage some price lists for the company I work for. They are graphical, and usually created in inDesign and then exported to pdf.
I'm looking for a way to attach our company's prices in an excel sheet, (or delimited file) and be able to pull a price into the pdf.
For example, attaching an excel file with 2 columns, SKU & Price. Then saying, if text field SKU= "APPLE" text field PRICE = "0.50". Only I don't want the user to have any inpurt options, I want to do this myself and then save a flat version to distribute in the company.
Any ideas on how this could be accomplished (if it even could be?) I've been searching for the past week.
Thank you in advance.
(I have Acrobat X Pro)First, let me start off by saying thank you again for your help. I sincerely appreciate it.
I have placed the following code into the document-level section of the javascript editor:
var oFile = this.getDataObjectContents("Price.xls");
var strData = util.stringFromStream(oFile, "utf-8");
function ParseData( strData ){
var objCollection = {}
strData.replace(
new RegExp( "\\[(\\w+)=([^\\]]*)\\]", "gi" ),
function( $0, $1, $2 ){
objCollection[ $1 ] = $2;
return( objCollection );
// Custom Calculate script for price text field
(function () {
// Get the value of the SKU field
var sku = getField("SKU").valueAsString;
// Look up the price
var price = objCollection[sku];
// Set the value of this field to the price if it's present,
// otherwise blank this field
event.value = price || "";
And I have created a field SKU, which I placed a valid SKU value into. I also created a blank field called event for the price to populate into, but I have a strong feeling that this was the wrong approach.
At any rate, I've recieved the following error in the javascript debugger:
ReferenceError: objCollection is not defined
89:Document-Level:ADBE::FileAttachmentsCompatibility
Any idea what I may be doing wrong?
Thanks again. -
Dump data from server (unix) into flat file on client (PC) on regular schedule
Hi folks,
I wish to dump the contents of a table (Oracle on Unix) into a file residing in a local directory (PC client). I know how to use utl_file but, init.ora resides on unix, therefore it will create file on unix directory and not the client machine.
Any ideas?Hi Bro
if u wan to write a file on Server use this code..
procedure write_file
filename varchar2,
mesg varchar2
is
hfile_handle utl_file.file_type;
begin
begin
file_handle := utl_file.fopen( '<FILE_PATH_HERE>', filename, 'A');
exception
when utl_file.invalid_path then
dbms_output.put_line('invalid path dummy');
when utl_file.invalid_operation then
file_handle := utl_file.fopen( '<FILE_PATH_HERE>', filename, 'W');
when others then
raise;
end;
utl_file.put( hfile_handle , mesg);
utl_file.fclose( hfile_handle );
exception
when utl_file.invalid_path then
dbms_output.put_line('invalid path dummy');
when utl_file.invalid_operation then
dbms_output.put_line('invalid opertaion dummy');
when others then
raise;
end write_file;
==================================================
and If you want it in the client you can use the one given below.
declare
file_handle text_io.file_type;
L_file_name := 'C:\Folder1\Filename.txt';
begin
file_handle := text_io.fopen(L_file_name,'w'); (mode should be 'a' instead of 'w' if u want to append)
text_io.put_line(file_handle,l_data) ;
text_io.fclose(file_handle) ;
end;
4 any help plz write me
Khurram. -
How can I download from R/3 to flat file?
Hi
My requirement is to download Material and Supplier data from R/3 to flat file...
These are the fields I have to bring it from SAP R/3 but I don not want to DOWNLOAD FM. I want to Concatenate from Internal Table and put it on application server.
There are my following fields...
Material and Supplier
1. Selection criteria
- Based on plant
- Hubs and FSL/Hubs
- Hubs can pull both Repair and NewBuy vendor
- FSL/Hubs pull only Repair vendor
2. Material EORD-MATNR
3. Region Determined by 9* plants
4. Site
1. plant-(W) and plant-(C) for FSL/Hubs
2. plant-(S) for DCs
5. Supplier
1. Menlo/Repair for DC
2. Repair only for hub/fsl
6. Supplier-type PURCHASE or REPAIR
7. Leadtime - (The number of days between placing an order and receiving an order)
8. Order Horizon 2
9. Minimum OQ 3
10. Order cost 50
11. Supplier part number EORD-MATNR
Waiting for some help and (or) sample code for this...
Thanks in advance.Here is an example program showing how to write a tab-delimited file to the application server. All you need to do is get all your data into an internal table, then loop at it, concatenate all fields into a string and then transfer that string.
report zrich_0001.
parameters: d1 type localfile default '/usr/sap/TST/SYS/Test.txt'.
data: begin of itab occurs 0,
field1(20) type c,
field2(20) type c,
field3(20) type c,
end of itab.
data: str type string.
constants: con_tab type x value '09'.
* if you have a newer version, then you can use this instead.
*constants:
* con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
start-of-selection.
itab-field1 = 'ABC'.
itab-field2 = 'DEF'.
itab-field3 = 'GHI'.
append itab.
itab-field1 = '123'.
itab-field2 = '456'.
itab-field3 = '789'.
append itab.
open dataset d1 for output in text mode.
loop at itab.
concatenate itab-field1 itab-field2 itab-field2 into str
separated by con_tab.
transfer str to d1.
endloop.
close dataset d1.
Regards,
Rich Heilman -
UNIQUE Problem in pulling DATA from DATA base table to internal table
Dear Experts,
I am new to ABAP. I have a very basic question but looks a quite puzzling one to me. Hemnce I am posting it here.
I am facing an unique problem in pulling data from database table and populating that data into internal table for further use.
The data in the database table "Zlt_mita" with fields M1 (Employee Name, Type: Char20) and M2 (Employee Code, Type Char7) are:
Plz refer the screenshot in the attached file:
My Code:
1) When I try to pull data from Dbase table by taking M2 as parameter.
This code is succcessful and I am able to populate data in internal table it_dat.
TYPES: Begin Of ty_DAT,
M1 TYPE Zlt_mita-M1,
M2 TYPE ZLT_mita-M2,
END OF ty_DAT.
DATA: it_dat TYPE STANDARD TABLE OF ty_dat with header line,
wa_dat TYPE ty_dat.
PARAMETERS: p_mitar TYPE Zlt_Mita-M2.
SELECT M1
M2
FROM ZLt_mita
INTO TABLE it_dat
Where M2 = p_mitar.
Loop at it_dat into wa_dat.
WRITE:/2 wa_dat-M1,
10 wa_dat-M2.
ENDLOOP.
2) When I try to pull data from Dbase table by taking M1 as parameter.
This code is NOT succcessful and I am NOT able to populate data in internal table it_dat.
TYPES: Begin Of ty_DAT,
M1 TYPE Zlt_mita-M1,
M2 TYPE ZLT_mita-M2,
END OF ty_DAT.
DATA: it_dat TYPE STANDARD TABLE OF ty_dat with header line,
wa_dat TYPE ty_dat.
PARAMETERS: P_Mita TYPE ZLT_Mita-M1.
SELECT M1
M2
FROM ZLt_mita
INTO TABLE it_dat
Where M1 = P_Mita.
Loop at it_dat into wa_dat.
WRITE:/2 wa_dat-M1,
10 wa_dat-M2.
ENDLOOP.
Why is this happening when both M1 and M2 are Type Character fields.
Looking forward for your replies.
Regards
Chandan KumarHi Chandan ,
Database fetch is case sensitive ,So u need to give exact format in where condition.
Make your parameter and database in same case so that you need not worry about case sensitivity .
Check the lowecase check box in the domain .
Then declare your parameter
PARAMETERS:
P_Mita
TYPE ZLT_Mita-M1 LOWER CASE .
You can do the vice versa also by unchecking lowercase and giving Upper case instead of lower in parameter declartion .
Regards ,
Juneed Manha -
How to delete a single data from table using control file
I want delete a single row data from table using sql loder control file
Edited by: 977940 on Dec 19, 2012 9:00 PM977940 wrote:
I want delete a single row data from table using sql loder control file
Edited by: 977940 on Dec 19, 2012 9:00 PMWhy?
And how do you imagine this happening with sqlloader?
The entire purpose of sqlloader is to load data (hence, the name sql*loader*) into a table from an external source. If you want to delete rows from a table, you use the sql DELETE statement.
What is the business problem you are trying to solve? -
Pull data from a table in HTML format from external URL into a Servlet
How do I pull data from existing website html table into a Servlet?
I will need to pull the data into a servlet. So, the servelet will need to go to the URL and get the data and save them as variables.
I know I will need an array to store the data. I just dont know how to call the URL and have the servelet search the site for the <table> </table>.
I will later use this to save to a database.
Thanks
Edited by: DJMegabit on Apr 14, 2010 7:36 PMMaybe give us more details about what exactly You'd like to achieve. I guess that there might be better solutions to the problem.
-
Using ABAP DATA FLOW to pull data from APO tables
I am trying to use an ABAP Data flow to pull data from APO and receive error 150301. I can do a direct table pull and receive no error, but when I try to put it in an ABAP data data flow I get the issue. Any help would be great.
Hi
I know you "closed" this, however someone else might read it so I'll add that when you use an ABAP dataflow, logic can be pushed to ECC - table joins, filters, etc. (Which can be seen in the generated ABAP).
Michael -
Having total brain fart - pulling data from two differnt tables
Good morning,
I am completely having a blonde moment here.
My main select statement can pull all the data I need from one table however I need to define my result set by date range and the date data is held in another table. I am trying to remember how to write my statement to pull data from two tables in the same database.
I haven't written query in a couple of years and was self taught previously - I need data our report management program cannot produce.
Any help would be fantastic! Thank you :-)
Dez
Edited by: user10773439 on Jan 8, 2009 8:12 AMHere is the pseudo sql.
select columns_from_table_a, columns_from table_b
from table_a a,
table_b
where a.common_column = b.common_column
and b.date_column > = <startdate>
and b.date_column < <end_date>+1;
--Dont forget to_date your date values
Maybe you are looking for
-
How to change the default "Safe" files in Safari?
I would really appreciate if anybody could teach me how to change the default "Safe" files using AppleScripts, Folder Actions or .plist files. I really would like to have some files to open automatically after download, specially .pps files, and safa
-
I have iOS 8 with Yosemite on my Mac all setup with the same iCloud account. The only thing of Handoff/Continuity that work is the phone. Does anyone know how can I activate the others? Or is it this for everyone? Thanks!
-
Registering call back object reference
hello to all. I am developing a RMI application and I have a problem while registering the call back reference object of client. I have followed what ever thing required to register the clients object reference to register at the server side and serv
-
Extracting contents from Content Db to a file system
Hi, What would be the best approach to extract the contents in Content Db to a file system and the metadata associated with them to a temporary database table so that we can use them to migrate documents to another content management system ? Thanks
-
Help on adding components to JTree
Hi All, I have a tree which is having 5 nodes.If i want to add a textfield to each and every node .How should i do it??? Thanks in advance.