sqlupdate = "update land "
sqlupdate &= " set MINUS_RAI"
sqlupdate &= " SELECT SUM (house.BLDG_WIDTH * house.BLDG_LENGTH)/1600,"
sqlupdate &= " FROM house WHERE (land.PARCEL_CODE = house.PARCEL_CODE) WHERE LAND_USEID='02'"
Tag : .NET, Ms SQL Server 2008, Win (Windows App), VB.NET, VS 2010 (.NET 4.x)
sqlupdate = "update land "
sqlupdate &= " set MINUS_RAI ="
sqlupdate &= " (SELECT SUM (house.BLDG_WIDTH * house.BLDG_LENGTH)/1600,"
sqlupdate &= " FROM house WHERE (land.PARCEL_CODE = house.PARCEL_CODE)) WHERE LAND_USEID='02'"
sqlupdate = "update land "
sqlupdate &= " set MINUS_RAI ="
sqlupdate &= " (SELECT SUM (b.BLDG_WIDTH * b.BLDG_LENGTH)/1600"
sqlupdate &= " FROM house b INNER JOIN land c ON (c.PARCEL_CODE = b.PARCEL_CODE)) WHERE LAND_USEID='02'"