HOW TO SAVE DATA FROM TABLE A AND TABLE B INTO TABLE C
Hi,
I have a table called EMPLOYEE , GROUP and EMPLOYEE_GROUP
table EMPLOYEE contains emp_id, emp_name, emp_dep and emp_level
table GROUP contains group_id and group_description
table EMPLOYEE_GROUP contains emp_id and group_id (emp_id is a primary key)
I want to assign each employee to a group based on their department and level..
How can I assign many employees to one group?
But each group have the limit number.
My screen would be :
1. search employees based on their department and level
2. assign each employees to a group
*3. save the data into table EMPLOYEE_GROUP (where the process should save the emp_id and group_id into table EMPLOYEE_GROUP)*
Thank you in advance!
Hi Rakesh,
Thank you for your valuable information that you post...
I made 1 to many relationship between employee and group.
I want to assign each employee to a group...so one employee can only have one group but one group can contains many employees..
When I run the application, I have an error when i try to save many employees into one group...
master table is group, detail table is employee
error : Too many objects match the primary key oracle.jbo.Key
Hope that you could help me with this..
Thank You.
Similar Messages
-
How to read data from SharePoint list and append to html table?
Hi All,
I would like to create custom view of SharePoint list, so want to append those sharepoint list items in a custom html table design using content editor webpart.
How to achieve this? thanks in advance!Content edit web part is not the right control. You can either Content Query Web Part
or Data view web part, where you need to modify xslt template using
SharePoint Designer and can render list data as per choice.
For Content Query Web Part:
Using the Content Query Web Part
Customizing the Content Query Web Part and Item Style
How to Customize SharePoint List Content Display using Content Query Web Part
For Data View Web Parts
Working with Data view Web Parts
Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer. -
How to import data from excel or csv files to Oracle table
hello everybody,
I am new here and new in Oracle. I would like to know the steps how to import data from excel or csv files to Oracle table.
Let say I already have table inside the Oracle. Then my user give me the sets of data inside the Excel Worksheet.
So, how can I import the excel data into Oracle table.
Thank you in advance.
cheers,
shimaEven easier. Download JDeveloper 11G from this site.
Set up the database connection, right click on the table, select Import->Excel and specify your file to load it. On the import pop-up, you must view and update each tab indicating Columns, Data Types, and DML.
Columns -- move the selected columns that you want to load to the box on the right
Data Types -- select column name from second column to which the data for each column of the import file should load
DML -- click this tab to generate the INSERT SQL
Once done click 'Insert' -
How to save data from JTable multiple rows and columns
Hi Y_Not thanks for your help before...
But what should I do if I want to get/save many data from many column and rows??i don't quite understand your (repeated) question. what is the problem with "multiple rows and columns". Y_NOT and i have shown you ways to access them.
all you need are 2 loops: one around your number of rows and one around the number of columns or vice versa depending in which order you want to save things:
for (int col = 0; col < data.size(); col++) {
for (int row = 0 ; row < data[col].size(); row++) {
// save your data
saveData(data[col].getElementAt(row));
// or use yourtable.getValueAt(row, col);
}this is not a problem of Swing/Java but of simple algorithm...
thomas -
How to save data from form into database
i nid to save data from form into the new table, @abc.
got any idea ?
smtg like oObj = BaseAddOn.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes) this but it is a new object or user data source.
Thankshi
i have created UDO i have also done registration i want to bind item master completely to matrix and then in one column i will set check box to check unchecked and then i want to save it to database
i have one user defined form and 4 matrix and 4 child tables
for each matrix i have given 1 form and i have to transfer the data from temp form to main form matrix having large data in matrix on temp form to main form matrix
to load data on matrix i have used for loop that i want to avoid so how i can bind large data to matrix without for loop
regards
amey -
How to Extract Data from the PDF file to an internal table.
HI friends,
How can i Extract data from a PDF file to an internal table....
Thanks in Advance
ShankarShankar,
Have a look at these threads:-
extracting the data from pdf file to internal table in abap
Adobe Form (data extraction error)
Chintan -
How to extract data from generic view and function module
hi experts,
can anybody give me the steps to extract data from generic view and functon modules.
thanks and regards
venkathttps://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
https://websmp103.sap-ag.de/~sapidb/011000358700007535452002
Hope it Helps
Chetan
@CP.. -
Hi,
I want to create a visual webpart which will read data from excel sheet and import it in to sql server database.(using sharepoint development)
I want to do it using visual webpart.
Please help to solve the issue.
Thanks in advance!
Regards
RajniHi Rajni,
Microsoft.Office.Interop.Excel assembly provides class to read excel file data, in your web part solution, reference the assembly, and following blog contains samples about how to read the excel file data,
and import it to SQL database.
1.Create a Visual Web Part Project:Create
Visual Web Parts in SharePoint 2010
2.Read the excel workbook by using SPFile class:
http://alancejacob.blogspot.in/2012/06/read-data-from-excel-file-and-insert-in.html
http://stackoverflow.com/questions/14496608/read-excel-file-stored-in-sharepoint-document-library
3.Export the excel workbook to SQL Server:
http://www.c-sharpcorner.com/UploadFile/99bb20/import-excel-data-to-sql-server-in-Asp-Net/
Best Regards,
Eric
Eric Tao
TechNet Community Support -
How to save data from a server log to the java dictionary table?
Hi,
I need a java dictionary and a program which will read data from the log file and save records into tables.
Can somebody help how to achieve this? Please help!
Thanks & regards
AmitaHi folks, Give some inputs here....
Thanks & regards
Amita -
HOW TO READ DATA FROM A FILE AND INSERT INTO A TABLE USING UTL_FILE
Hi..
I have a file.I want to read the data from file and load it into a table using utl_file.
how can I do it?
Any reply apreciated...Hi,
This is not your requirment but u can try this :
CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
GRANT READ ON DIRECTORY text_file TO fah;
GRANT WRITE ON DIRECTORY text_file TO fah;
DROP TABLE load_a;
CREATE TABLE load_a
(a1 varchar2(20),
a2 varchar2(200))
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY text_file
ACCESS PARAMETERS
(FIELDS TERMINATED BY ','
LOCATION ('data.txt')
select * from load_a;
CREATE TABLE A AS select * from load_a;
SELECT * FROM A
Regards
Faheem Latif -
How to extract data from xml file and store that data inti data base table
Hii All
I have one table that table contains one column that column contain an XML file
I want to extract data from that XML file and want to store that extracted data into an other table.
That xml file has different different values
I want to store that values into table in diff diff columnsHi,
I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
Can you please let me know if you know the solution how to do it in oracle apps.
Thanks, -
How to Save data from HR_INDVAL BADI
hI
I M USING THE ABOVE BADI FOR CALCULATION OF BONOUS FOR INFOTYPE 15 .... IT IS CALCULATING VERY WEL BUT DATA IS NOT GETTING SAVE IN PA0015 .
KINDLY HELP ME
REGARDS
AMMADhi
i have created UDO i have also done registration i want to bind item master completely to matrix and then in one column i will set check box to check unchecked and then i want to save it to database
i have one user defined form and 4 matrix and 4 child tables
for each matrix i have given 1 form and i have to transfer the data from temp form to main form matrix having large data in matrix on temp form to main form matrix
to load data on matrix i have used for loop that i want to avoid so how i can bind large data to matrix without for loop
regards
amey -
Hi,
I have to implement the following scenario in SSIS but don't know how to do since I never worked with SSIS before. Please help me.
I have 20 different text files in a single folder and 20 different tables corresponding to each text file in SQL Server 2008 R2 Database. I need to extract the data from each text file and
load the data into corresponding table in Sql Server Database. Please guide me in how many ways I can do this and which is the best way to implement this job. Actually I have to automate this job. Few files are in same format(with same column names
and datatypes) where others are not.
1. Do I need to create 20 different projects ?
or
Can I implement this in only one project by having 20 packages?
or
Can I do this in one project with only one package?
Thanks in advance.As I said I don't know how to use object data type, I just given a shot as below. I know the following code has errors can you please correct it for me.
Public
Sub Main()
' Add your code here
Dim f1
As FileStream
Dim s1
As StreamReader
Dim date1
As
Object
Dim rline
As
String
Dim Filelist(1)
As
String
Dim FileName
As
String
Dim i
As
Integer
i = 1
date1 =
Filelist(0) =
"XYZ"
Filelist(1) =
"123"
For
Each FileName
In Filelist
f1 = File.OpenRead(FileName)
s1 = File.OpenText(FileName)
rline = s1.ReadLine
While
Not rline
Is
Nothing
If Left(rline, 4) =
"DATE"
Then
date1 (i)= Mid(rline, 7, 8)
i = i + 1
Exit
While
End
If
rline = s1.ReadLine
End
While
Next
Dts.Variables(
"date").Value = date1(1)
Dts.Variables(
"date1").Value = date1(2)
Dts.TaskResult = ScriptResults.Success
End
Sub -
How to display data from 2 different groups in a single table
Hi,
Following is the requirement:
The XML Content is below
ListOf_ssAssetMgmtAsset>
-<ssAssetMgmtAsset>
<ssAccountName>1-1D09-83031</ssAccountName>
<ssAccountPrimaryCountry>USA</ssAccountPrimaryCountry>
<ssAssetNumber>13111027</ssAssetNumber>
<ssNaiAssetNumber>123</ssNaiAssetNumber>
<ssNaiGrantNumber>ABC</ssNaiGrantNumber>
<ssNaiProductType>System Security Software</ssNaiProductType>
<ssNaiSuperceded>123</ssNaiSuperceded>
<ssProductDescription>Upgrade extract local DB</ssProductDescription>
<ssProductName>1-1M5H-296</ssProductName>
<ssStatus>ABC</ssStatus>
<ssId>1X-ZY</ssId>
<ssCreated>01/01/1980</ssCreated>
<ssUpdated>01/01/1980</ssUpdated>
<ssCreatedBy>1X-ZY</ssCreatedBy>
<ssUpdatedBy>1X-ZY</ssUpdatedBy>
-<ListOf_ssAgreementEntitlement>
-<ssAgreementEntitlement>
<ssEntitlementEndDate>16/12/2009</ssEntitlementEndDate>
<ssEntitlementStartDate>16/11/2009</ssEntitlementStartDate>
<ssEntitlementType>Services</ssEntitlementType>
<ssNaiQuantity>2</ssNaiQuantity>
</ssAgreementEntitlement>
</ListOf_ssAgreementEntitlement>
-<ListOf_ssAgreementEntitlement>
-<ssAgreementEntitlement>
<ssEntitlementEndDate>10/12/2009</ssEntitlementEndDate>
<ssEntitlementStartDate>10/11/2009</ssEntitlementStartDate>
<ssEntitlementType>ServicePortal</ssEntitlementType>
<ssNaiQuantity>1</ssNaiQuantity>
</ssAgreementEntitlement>
</ListOf_ssAgreementEntitlement>
</ssAssetMgmtAsset>
</ListOf_ssAssetMgmtAsset>
The data needs to be displayed in the below manner where first grouping is by Account Country, then by Account Name. Then the table with 9 columns where in the first 5 columns are from first group and the next 4 are from second group.
Account Country
Account Name
ProductType Grant # Asset # Product SKU Product Name Entitlement Type Quantity /Nodes EntitlementStart Date Entitlement EndDate
I have the coding as
first for loop: <?for-each-group:ssAssetMgmtAsset;./ssAccountPrimaryCountry?>
second for loop: <?for-each-group:current-group();./ssAccountName?>
third which is for the table : <?for-each:current-group()?>
I close the above grp after product description.
One table with the first 5 columns and below second table is placed adjacent to the first to display the 4 columns with the grp <?for-each:ssAgreementEntitlement?>
how do I get all the 9 columns in a single row in a single table.
Any help is appreciated.
thanksWhat is the lnk between the two
ssAssetMgmtAsset and ssAgreementEntitlement ?
you want to display all the ssAgreementEntitlement for every ssAssetMgmtAsset group ?
there shud be a link between them, you have link them and display. -
How to get date from html form through php to show table from oracle sql
I have a form method post.Also an input date like input date (html 5,the one that picks the date from a window below)
I want to take the date the user inputs and use it in a php which contains a contains a select statement that is like that $stid = DBExecute($conn, "select customer_name,product_name,order_date,quantity and ends like this.. and order_date>='".$_POST['date']."'");
Then i have echo "<table....
And while ($row = oci_fetch_array($stid, OCI_ASSOC)) {......
But I have a problem on that. No results shown. Why?
Does anybody know to help me?
What value the date input gives in HTML5 and in which format? How can i fix that?There's not enough info posted to help. Do some googling. Do some debugging - add some 'var_dump' calls in PHP to check everything
e.g. var_dump($_POST);
And never, ever, ever do concatenation like you do with $_POST to build up a query string. This is a major "SQL Injection" security risk.
instead, use an OCI8 bind variable. See PHP: OCI8 - Manual
Maybe you are looking for
-
After updating to iOS 7 for my iPhone 5, my phone is now in constant vibrate mode.
After updating to iOS 7 for my iPhone 5 last week, my sounds went away. Phone is randomly showing the ringer silent graphic without me touching the phone or putting it into this mode. The volume settings under sounds are on, notifications are all cor
-
I can log into OTN just fine. When I try to download something (Oracle Application Express) and I click on accept, I'm prompted for the userid/login box. Even though, I'm already logged in. My userid/password that I used a to get in now fails. I've b
-
What is the best way to plug my iPhone 5 into a mixer for live music performances?
I'm thinking of performing live with my iPhone 5 or maybe an iPad that I haven't bought yet. What is the best way to get the sound for the device to a mixer or PA? I'm wondering if anyone has any experience with wireless options. I'm wondering if it
-
Aperture 3.2.3 and NIK plugins. I use several of these plugins. Recently, and intermittently, the edited image fails to update in the viewer until Aperture is quit and re-launched, even though it is updated in the browser strip. I have assumed the NI
-
Hello, There are many errors in log: %CSM_SLB-3-ERROR: Module 3 error: Grow pool failed - CSG memory is fragmented or depleted What do they mean?