﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by VM  / More of computed columns / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 15:12:42 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>Thanks for the question.</description><pubDate>Wed, 24 Nov 2010 11:44:56 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>Good question. Nice extension - Carlo. Thanks</description><pubDate>Thu, 11 Nov 2010 21:23:49 GMT</pubDate><dc:creator>Hardy21</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>Thanks for the question.One small point, not only did the create for the second table fail, so did the drop. (Though I doubt that would trip anybody up.)</description><pubDate>Wed, 10 Nov 2010 09:53:17 GMT</pubDate><dc:creator>UMG Developer</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>QOD is a very good one, and the extension by carlos was awesome. Good work guys, got to learn something new today.Thanks.</description><pubDate>Wed, 10 Nov 2010 07:59:00 GMT</pubDate><dc:creator>Surii</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>I gift this question fife stars for knot havings type o's and shows correct referance meaterials and knowledge of SQL feartures.I give the extra star to Carl for the post of how a function can include the column data from another table in a computed column.:smooooth:</description><pubDate>Wed, 10 Nov 2010 07:29:41 GMT</pubDate><dc:creator>SanDroid</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>Good question, and to Carlos - great addition. Learned something new form both</description><pubDate>Wed, 10 Nov 2010 06:08:57 GMT</pubDate><dc:creator>sjimmo</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>Nice question.And thanks to Carlo for the add-on.</description><pubDate>Wed, 10 Nov 2010 03:23:16 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>Good question!I was pretty sure that the first create would fail since the operator ^ isn't described in BOL under arithmetic operators. It never occured to me that it could be a bitwise operator. I just assumed it was an attempt to make me think it was a "to the power of" operator.DOH!</description><pubDate>Wed, 10 Nov 2010 01:06:58 GMT</pubDate><dc:creator>Rune Bivrin</dc:creator></item><item><title>RE: More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>To get values from other tables or columns of the same table but different row, you should use a function:[code="sql"]CREATE TABLE [dbo].[a2]([a1ID] [int] NULL,[col3] AS (a1ID^2))GOcreate function get_a2_col3(@a1id int)returns intasbegin    return (select col3 from [dbo].[a2] where a1ID = @a1id)endgoCREATE TABLE [dbo].[a3]([a3ID] [int] NULL,[col4] AS dbo.get_a2_col3(a3ID) --(dbo.a2.col3 - 1))GOdrop table [a2]drop table [a3][/code]</description><pubDate>Wed, 10 Nov 2010 01:06:36 GMT</pubDate><dc:creator>Carlo Romagnano</dc:creator></item><item><title>More of computed columns</title><link>http://www.sqlservercentral.com/Forums/Topic1018353-1495-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/T-SQL/70958/"&gt;More of computed columns&lt;/A&gt;[/B]</description><pubDate>Tue, 09 Nov 2010 20:27:10 GMT</pubDate><dc:creator>VM-723206</dc:creator></item></channel></rss>