Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.net SQL Update tables based on joined query

Posted on 2014-10-12
2
Medium Priority
?
130 Views
Last Modified: 2014-10-17
Hi
I have a SQL query where I have joined the Customers, Orders, and [Order Details] tables below. This is shown in a DataGridView. I want the users to be able to choose a line and update the data to something else. How would I approach this?

SELECT c.[Company], c.[Last Name], c.[First Name], b.[Quantity], b.[Unit Price], a.[Ship Name], a.[Ship Address] FROM [Orders] a LEFT JOIN [Order Details] b ON (a.[Order ID] = b.[Order ID]),[Customers] c LEFT JOIN [Orders] d ON (c.[ID] = d.[Customer ID])
0
Comment
Question by:Murray Brown
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 40376442
0
 

Author Closing Comment

by:Murray Brown
ID: 40387978
Thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question