SELECT rowid, LEFT(ID, LEN(ID)-CHARINDEX('-', REVERSE(ID)))
FROM a_part Got it ;)
User Profile
Collapse
Profile Sidebar
Collapse
MyDanes
Last Activity: Jul 23 '13, 06:27 AM
Joined: Jun 10 '13
Location:
-
Sql Server Query help
Ok I hope I can explain my dilema
I need a sql select statement that will
Select part_number from RCTOOL
the column part_number has values such as
BR643-0034-344-34
AS54-54689
A77360-3454-34456-4
B7374-343-33-32-356-433-11-1
In each of these cases ALL we want it to return is the values UP to the last -
Desired result set from example above ... -
Update from another table and use multi criteria
THE ABOVE DOES NOT WORK WIHT THE ERRORCode:update PHYS_COUNT_TAG set COUNT_QTY= (SELECT qty from MC_PART_LOCATION where MC_PART_LOCATION.part_id = PHYS_COUNT_TAG.PART_ID and MC_PART_LOCATION.location_id = PHYS_COUNT_TAG.LOCATION_ID)
Msg 4104, Level 16, State 1, Line 4 The multi-part identifier "PCT.PART_I D" could not be bound. Msg 4104, Level 16, State 1, Line 5 The multi-part identifier "PCT.LOCATION_I D"...
No activity results to display
Show More
Leave a comment: