postgresql - Update single entry based on lookup in multiple sql tables -


I'm trying to update the entries in a table that I have been stored in the second table, it shows Oh, one item of which category is still in another table, oh, and my item is closed by both an alphabetic key (AKA) and numerical key (NKA).

So far I have

  update itmHistory set ithLocation = items stor location, select storaky of storage (storage where ithAKey) and choose storNKey the (storage ithNKey) And storCategoryName = itmCategoryName;  

What is set on the ends of each instance of itmLocation the items table very last entry, where storCategoryName = itmCategoryName .

Any ideas to be made as each update is found? In

Edit: Table information:

  itmHistory: ithakey varchar (3) PK ithNKey int pk ithStart timestamp pk ithEnd timestamp ithLocation text items: Aitimke considered (3) PK Aitimankei Int PK Aitimsinetnam text storage: Stornam text PK stores Kantantonam text Strorokeshn text  

(PK = primary key)

Depending on the information in your table, how about this?

  UPDATE ih SET ih.ithLocation = s.storLocation Aimaiaitiaiaitiai I Aiaiaaiaiaitiaiaiaiaiaaiaiaiaiaai = Aikaitimaki and Aiaacanaikeai = Aikaitimanke Aioaiaitimantryj = SS to join items Or name of the class  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -