Qiestion about update statement

Assignment Help Software Engineering
Reference no: EM1379019

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 constructed 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: EM1379019

Questions Cloud

Implementing reusable code : Many programming languages exist in various libraries and on the Internet and using some of these functions and process, this can permit you to use these technique rather than having to write out the code from scratch on your own.
Creating an idef1x e-r diagram : The scenario is that the Public Affairs Office at Highline University gets requests for speakers on particular topics. To be able to respond to such request, that office wishes to create a database.
Difference between encapsulation and information hiding : Discuss and explain the difference between encapsulation and information hiding. In addition, describe the role both of these concepts play in helping to make designs more robust and extensible.
Indirect port addressing capability : Determine how many ports can the Z8000 address in each I/O addressing mode?
Qiestion about update statement : A table namedPoints varchar(81) has values stored in a column named Point. There are 2-columns in the Points table, X and Y.
Currency conversion event : Expand the Currency Conversion event to have a menu of 5-currencies that allows the user to choose which currency they wish to display in its equivalency to the United States dollars.
Importance of internet to most companies : Discuss how important is the Internet to most corporations? How have corporations improved the sales / service / performance process utilizing the Internet?
Privileges and obligations of a corporation : What should the privileges and obligations of a corporation be from an ethics perspective and how can these be enforced? In a global market, how can a corporation with a strong ethical agenda
Content validation of document : Do you believe that any form of document content validation should be applied to web pages before they are placed in the public domain?

Reviews

Write a Review

Software Engineering Questions & Answers

  Suggestions for viable guidelines

Do you think that variations in company and societal culture could pose a significant problem when coordinating or scheduling large assignments,

  Project communications planning

Determine what aspects of your assignment communications planning would you adapt for large-scale transnational IT projects in which the project teams.

  Create risk management policy to addresse security breaches

Oorganization which permitted unauthorized individual access to valuable data. Your job is to create risk management policy that addresses the two security breaches and how to mitigate these risks.

  Preparing a short video clip

Create a short video clip on some topic from your chosen multimedia assignment. Do the same for a short 3D animation using Blender on a different topic.

  Write z schemas defining state of atm operation system

Using your knowledge of ATM operation, write Z schemas defining the state of the system, card validation (where the user's identifier is checked) and cash withdrawal.

  Sketch er diagram to keep track of employees and projects

Sketch ER diagram for the following situation and write any assumptions you think you have to make to develop a complete diagram. Company requires the operational database to keep track of all employees, departments, and projects.

  Draw an e-r diagram for hospital staff

Draw an E-R diagram for the following situations. From discussions with hospital staff, reviewing hospital documents and studying existing information systems, the study team developed a list of business rules.

  Describe five forces of porter-s competitive forces model

Describe each of the five forces of Porter's competitive forces model and explain how Internet impacts each one. List and explain each of the six steps of knowledge management system cycle.

  Design context diagram for entering user-s name in system

Design Context diagram, level0 and level1 (if need) for the following: The user submit her/his name to the system, the system will tell the user if he is a boy or a girl or don't know by looking up his name in database

  Designing e-r diagram for each product at pvf

Suppose that at PVF, each product. Design E-R diagram for this situation and state minimum and maximum cardinalities on the diagram.

  Factors significant effects on initial cocomo estimate

Suggest four factors that might have significant effects on the initial COCOMO estimate and propose possible values for these factors.

  Difference between private, public and protected variables

Difference between private, public and protected variables

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