I want to do something like this ... but it doesn't work however :
Insert Into T1 ( C1 ,C2) Values ( 'C1' , (Select Max (C1) From T2) )
I made a lot of combinations of sub queries , but none worked
and I'm avoiding to declare a var and put the (Max) in it , and then use it in the (Insert) statement
any way , I'm using VB.Net 2008 if it makes any difference
any help please
thanks in advace
This post has been edited by vbnetskywalker: 15 April 2009 - 11:41 PM

New Topic/Question
Reply



MultiQuote





|