Query using an update statement

Assignment Help Computer Engineering
Reference no: EM1329195

Here is the issue, a table namedPoints varchar(81) has values stored in a column named Point. There are two columns in the Points table, X and Y. Here is the code that created the table:
REATE TABLE dbo.POINTS (
I INT IDENTITY NOT NULL
,Point varchar(81) NOT NULL
,X decimal(38,10) NULL
,Y decimal(38,10) NULL
)
GO
INSERT dbo.POINTS (Point) VALUES ('(45.123,22.5)')
INSERT dbo.POINTS (Point) VALUES ('(7.95,3.45)')
INSERT dbo.POINTS (Point) VALUES ('(100.2,15.498)')
GO

I need a query using an UPDATE statement to populate X and Y from Point. THe data on the left side of the comma is X and on the right side of the comma is Y. I am guessing that either Substring or Charindex would beused but I am not sure.

Reference no: EM1329195

Questions Cloud

Explain progress report : Explain Progress Report and What are the global considerations for an all-inclusive resort
Supply chain for electric fans : Advantage of any global opportunities available to riordan manufacturing such as lower labor cost
Difference between encapsulation and information hiding : define the difference between encapsulation and information hiding. In addition, I need to explain the role both of these concepts play in helping to make designs more robust and extensible.
Solution to supply chain management : Solution to Supply Chain Management and Supply Chain Management identify the main issues in the chosen area, and contain and reference new learning that has occurred
Query using an update statement : Here is issue, a table namedPoints varchar(81) has values stored in a column named Point. There are two columns in the Points table, X and Y.
Does the airline industry offer attractive opportunities : Does the airline industry offer attractive opportunities for growth?
Student query- supply chain management : ABC car manufacturer is subject to caps on CO2 emissions and would like to assess whether or not it should invest in the technology necessary to make electric vehicles that would reduce the amount of CO2 produced by their vehicles.
Select which currency they wish to display : Expand the "Currency Conversion" program to have a menu of five currencies that allows the user to choose which currency they wish to show in its equivalency to the US dollars.
How are airline industry rival positioned : How are airline industry rival positioned and who is strongly positioned and who is not?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Determining the cost of line for new connections

The points T1, T2, and T3 are 25 miles apart, and the points C1, C2, and C3 also are 25 miles apart. If the telephone lines cost $1 per mile, explain the line cost for three.

  What is the expected access time

Given a 64-byte cache block, a 512 KB fully associative cache (assume byte-addressable), and a 32 bit address reference, which bits could be used for tag, index, and offset.

  Impact on the quality of software available for used

Will commercial software manufacturers be justified in raising their prices to make up for revenue lost to open source competitors? Do you think that strategy will be effective.

  Advantages and disadvantages of end-user computing

Explain the advantages and disadvantages of the end-user computing and determine if this is an application which should be progressively pursued. Describe your rationale.

  Developing system for the classification problem

client asks your company in order to develop a system for classification problem (for example: medical insurance fraud detection). Because of user requirements, he requires the final developed system to be able to offer the explanations about syst..

  Program to implement the calculations

Write down a program which has a function named presentValue which carry out this calculation. The function must accept future value, annual interest rate, and number of the years as arguments.

  Methods to target certain audience

Recognize a particular website which you frequently go to and explain the targeted audience which visit that particular site. Provide explanation how the site is developed for its certain target audience.

  Write dpwn an algorithm, using pseudo code

Write down an algorithm, using pseudo code, "Consensus algorithm": A group of ten people want to decide which one flavor of ice cream they will all order, out of three options.

  Cbc-mode encryption

Let a variant of CBC-mode encryption in which the sender simply increments the IV by 1 each time a message is encrypted in place of choosing the IV at random each time.

  When potential new suppliers compete for contracts

The company's newly hired VP of the IT is conducting this project because she does not have a security specialist on her staff and has learned that the company does not have the comprehensive security strategy. In fact, she suspects lack of even b..

  Methods of defense and provide examples

Methods of defense and provide examples

  Write down an sql statement

Write down an SQL statement

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd