If I replace the following statement

UPDATE SomeTable SET SomeCol = Col1 * (LongWindedFormala) + Col2 * 
(LongWindedFormala)  + .......

with

WITH CTE(X) AS (SELECT LongWindedFormula)
UPDATE SomeTable SET SomeCol = Col1 * (SELECT X FROM CTE) + Col2 * (SELECT X 
FROM CTE) + .....

Is ā€˜(SELECT X FROM CTE)’ the briefest way of accessing LongWindedFormula? Not 
that I’m complaining by the way. The WITH is a big help regardless.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to