Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

UPDATE A COLUMN OF A TABLE WITH A DATE FUNCTION.

$
0
0

Hi I am struck a bit.

 

I have a table with a DATE and a MONTHS field(both have NVARCHAR datatype) . I want to update the Months with the help of an UPDATE or a PROCEDURE .

Presently I am running this

UPDATE "AVG_DIM" SET "MONTH" = (SELECT month("DATE") FROM "AVG_DIM");

 

 

DATEMONTHS
20150102?
20140203?

 

Regards,

Tanush


Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>