Quantcast
Channel: 3 table update query
Browsing latest articles
Browse All 16 View Live

3 table update query

Hi,Ok, so I have included the actually script that appears to work (with the actual tables / column names)! This is based on ramireddy's statement. With so many variations it's hard for me to tell if...

View Article



3 table update query

update t set empLogon = TT.newLogonfrom tblBooking tinnerjoin tblMembers TM on t.empLogon = TM.empLogoninnerjoin tblTemp TT on TT.empNum = TM.empNum

View Article

3 table update query

Thanks all - lots of examples, let me detail this to make it a little clearer.db1.tblMembers (empNum, empLogon): this table contains a record for every user db2.tblTemp (empNum, newLogon): this table...

View Article

3 table update query

update table2 set oldlogon=t1.newlogon from table1 t1 inner join database2.dbo.table1 t21  on t1.id=t21.id where oldlogon=t12.oldlogon

View Article

3 table update query

You haven't used the "oldlogon" field for intranet.dbo.members in your query.database 1, table 1: id, newlogondatabase 1, table 2: oldlogon -- I need to update this fielddatabase 2, table 1: id,...

View Article


3 table update query

What is the data type of each column?If they are Char, a space could make a huge difference. Is there any EmployeeNumber from Members table that is also in owner column of rb_booking table?Check the...

View Article

3 table update query

Ok.The members table has a record for this user, the rb_booking table has multiple bookings by this user (which we want to update), and the tempmembersonemail table contains his new login (+ the...

View Article

3 table update query

UPDATEintranetnsops.dbo.rb_bookingSETowner = IsNull((SELECT dbTemp.newlogin FROM intranetnsops.dbo.tempmembersonemail AS dbTemp WHERE dbTemp.employeenumber = (SELECT dbMembers.employeenumber FROM...

View Article


3 table update query

almost there! Cannot insert the value NULL into column 'Owner', table 'intranetnsops.dbo.rb_booking'; column does not allow nulls. UPDATE fails.The statement has been terminated.(0 row(s) affected)

View Article


3 table update query

In the Set part, You named intranetnsops.dbo.tempmembersonemail As dbTemp, but in your Select Statement again you used "intranetnsops.dbo.tempmembersonemail" change it to dbTempowner = (SELECT...

View Article

3 table update query

Hi,Ok here is my query based on your example:UPDATE intranetnsops.dbo.rb_bookingSET owner =(SELECT intranetnsops.dbo.tempmembersonemail.newlogin FROM intranetnsops.dbo.tempmembersonemailAS dbTemp WHERE...

View Article

3 table update query

For Testing purpose send all those tables data to a temp tables and do your update in there. If you like the results then update real tables.

View Article

3 table update query

Then you all those multiple records will get the same oldLogon value. As long as you do not have multiple to one relationship between Db1 table 1 and DB2 Table 1, it is fine.

View Article


3 table update query

Hi Arbi - db1.table2 could contain multiple records - is this a problem?Thanks

View Article

3 table update query

Update Database1.dbo.table2 Set OldLogon = (Select db1.newLogon from Database1.dbo.Table1 As db1 Where db1.id = (Select db2.id From Database2.dbo.Table1 As db2 Where db2.oldLogon =...

View Article


3 table update query

Hi,I am trying to figure out how to update a couple of thousand logon names based on the following two database, three table structure:(database, table, columns) database 1, table 1: id, newlogon...

View Article
Browsing latest articles
Browse All 16 View Live




Latest Images