473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

SQL Data Manipulation

I am new i SQL and i want to update,insert and delete using multiple related tables for instance

Table 1 and Table 2 - When i update table one also the related field in table 2 must be updated ...


Thanks
Oct 31 '08 #1
2 1147
ck9663
2,878 Expert 2GB
Lots of ways:

1. Issue two statements.

or

2. Create an updateable view.

or

3. Use ON UPDATE CASCADE

It all depends on your requirement. Is this a one time thing? Why don't you post some sample data and your requirement.

-- CK
Oct 31 '08 #2
That is what i code

INSERT C.CustName,O.OrderDate
INTO Customer C , Order O
WHERE O.OrderNo=C.OrderNo
VALUES ('Lee','20/11/2008')

Correct me because i haven't test as my SQL Server is not working at moment.
Oct 31 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ferran Foz | last post by:
Hello, I'm using ADODB.Stream to open a binary file on the server and write it down to the browser using Response.BinaryWrite. It's working fine, but i need to make some changes to the binary...
0
by: Dennis McFly | last post by:
Hello, I am running into a problem with an application that doesn't work too well with mutliple rows. Therefore, I need a script that will return a SINGLE row. This is what I'd like to do: I...
1
by: Oded | last post by:
Hello, I'm trying to build a web form which should display a list of DB records and provide edit/insert/delete capabilities. I want to allow client manipulation of the data, including several rows...
2
by: ajay | last post by:
Hi I need to read data from flat files in memory and execute SQL query on the in-memory data. I do not have an option of using a database and I am using c# .Net to build my application. Does...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
3
by: Ben R. | last post by:
Since the original thread is marked as answered, I thought I'd post here to ensure visibility. Hi John and Steven, I'm going the dataset route as access doesn't seem to be too keen on that...
2
by: Mike Cain | last post by:
Hi, The Repeater control seems like exactly what I want to output rows of data from my database. However I need to do some manipulation to the data prior to it being output and I'm not...
5
by: holdingbe | last post by:
Hi all, During the update the views it shows ORA-01732: data manipulation operation not legal on this view error. this view created by only one table. please help me.... Thanks...
13
by: filipo | last post by:
Hello all; I have a .csv file that contains messages exported from one discussion forum that I want to import into another forum (phpBB), but I need to do some data manipulation on the original...
5
by: Spike1980 | last post by:
Hi, I am trying to update a table using cursors... I have a few if clauses... I just put the first if clause and I am trying to update the table, but it gives me an error saying "data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.