Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Update with a subquery 1

Status
Not open for further replies.

jchewsmith

Technical User
Nov 20, 2006
161
US
I am trying to update a field in my table from a view based on a MAX(Date)

Table: dbo_OrderLine
Fields LineNo, OrderNo, and ShipDate (there will be multiple row with the same OrderNo and each row needs to update based on the link to the OrderNo in dbo.MaxDate

View: dbo.MaxDate
Fields OrderNo and ShipDate

I need to update all shipdate fields in the OrderLine table where the OrderNo = the OrderNo in MaxDate



 
Crystal is not really designed to allow you to update data. However, you might be able to accomplish this by using a stored procedure to get the data from the view after updating the field.

-Dell

DecisionFirst Technologies - Seven-time SAP BusinessObjects Solution Partner of the Year
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top