My sample input has three columns with id, name and houses. My desired output is just two columns id , guid. where I did a transpose of all the row data to column based on column id. using select all statement. My question is when I do this I have comma separated values.
Is there a query I can use to to split these comma separated values and transpose
Related
I'm trying to get split comma-separated values into multiple rows.
here is my table and i have asin column with multiple comma separated value. i want to split asin value into multiple rows :-
i want record this type:-
I have two tables
Stores=> id,zip_id,stores
Zips => id,zip_code,county,state
the column store in store table is comma separated values , how can i get all the stores states wise.
See if these threads can help,
separate comma separated values and store in table in sql server
Turning a Comma Separated string into individual rows
I have a table which contains columns with multiple values(comma separated).How to fetch data based on a single value from these columns.Using mysql as DBMS
How can I get a List of table names and column names in a database where a column value like '%something%'
For an example, I have a Movie database, I need a List of table names and column names where the column value = 'tom cruise'
I am using MS SQL and MySQL database
Thanks
Check out this previous question and answer... the answer contains a script that scans a database and lists out all the tables/columns with a matching value:
Selecting column names that have specified value
You can get tables names and columns names using information_schema.
And Information_schema contains following column names using which you can filter your results:
I have two excel source on one excel file 1st fetching value date and 2nd fetching value price
now i have tried merge then union all also to get those two values in one derived column
but when i execute my package it is inserting values separately.
like this into two rows one by one but i want to insert these two values in one row only.
for example this is my problem:
date price
12-12-2001 null
date price
null 54
but i want it in one row only like
date price
12-12-2001 54
Create two derived columns with the same value (i.e. call them id1 and id2 and set both to have a value of 1).
Change the sort to sort by the new id columns.
Change the merge component to a merge join and use the newly created ids to link the data based on an inner join
which will give you a single row