11

Hi i have two tables ...

Acctive table:

SELECT * FROM 36496839_radioamater.skladovekarty00006;

CISLO NAME 1 NULL 2 NULL 3 NULL (other cells) 4 NULL 5 NULL 

Helpfull table

SELECT * FROM 36496839_radioamater.skladovekarty00008;

CISLO NAME 1 one 4 four 3 tree (other cells) 

And i need create a SQL code which find first row from table00008 in table00006 and copy value in NAME by matching CISLO

result:

CISLO NAME 1 one 2 NULL 3 tree (other cells) 4 four 5 NULL 

and thus need to remodel an additional 12 000 rows

Can anyone help me I have desperately Thx, Martin

3
  • There is no such thing as a "first row" in a table (tables represent sets which are inherently unordered). Can you guarantee that there is only one matching row? Commented May 16, 2014 at 20:31
  • update ... join ... on ... will probably do the trick. Commented May 16, 2014 at 20:32
  • Is the SQL different? And where is the database mentioned? Commented May 16, 2014 at 20:37

1 Answer 1

4
update 36496839_radioamater.skladovekarty00006 d join 36496839_radioamater.skladovekarty00008 s on s.CISLO = d.CISLO set d.NAME = s.NAME 
Sign up to request clarification or add additional context in comments.

1 Comment

thx ... all works ... i love you :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.