How to append new columns with data from one table to another - sql

I know the title might seem confusing but the real situation is as follow: I have two tables with existing data and both of them have n rows but different columns. The order of the rows in two tables do match. So the goal is such that after appending, the first row of the second table is appended to the first row of the first table, etc. and all the columns from the second table are added to the first table - basically just like paste two tables together.

Related

Join from multiple tables to one column

I have some problem with sql view. I have some element_ids in my based main table. That column is connected with another 3 tables, there ane unique el_id for that 3 tables. I want to joint that three tables in one column taking another id and write in another column which item it is.
Example:
I take el_id=2 from main table, check if it is in table_1, then I check table_2, there is el_id=2, so I get item_id to my view and write the information in type column in my view.

How to reorganise a table basis a criteria

I have a table where columns exist at different rows as shown in Problem figure.
I am able to identify the rows of column headers (Numbered 1 in column A) and there values(Numbered 2,3 onwards in Column A).
I want collate it in a neat table as shown in Solution table; where all Column headers are in one row and subsequently we have their values.
Problem and expected results are as shown in picture

rearrange two columns into single unique rows

I have a table that has two ID fields:
ID_expired
ID_issued
This table is the only place where this link between IDs is recorded. An ID_issued will show up with a match in these ID_expired column when a new ID_issued occurs (e.g. z234, g123). There are some exact duplicate rows. There are also instances where there is a duplicate ID_issued but no ID_expired listed (e.g. b111).
My objective is to connect all the IDs into a single row so I can refer to the ID history of an individual.
You can create a View and add the table to the view for as many times as there are ID's and join it on itself as many times as well.

Clear a particular column of data table in vb

I have a data table which has 3 columns . I am populating the values of each column separately in a loop which causes the table structure to be in the format as shown in the image. How to clear every column at the beginning of the loop so that all data comes in a proper tabular format. In short I want to have a data table with variable number of rows possible for each column.
To clear every column at beginning of the loop you have two options:
loop all rows
remove column, add column
Depending on the plenty of rows the two options have different performances.
For large amount of rows i prefer the second option.

try to have a single row view from several tables in group by in view

The is one to many relation between first column in first table to first columns for the next two tables
When I make a view with union all between the three tables I can’t have a one row result because the value fields with the yellow color are group by.
The best result I get is to select first() in the yellow column of first table and 0 in the others but I see this as source of error and the result not a single row.
What I can do in the view to have a single row result like this
a pictures for the three table