Hello,
One of the columns returned from my query is full of JSON data (contacts_list)
Is there anything I can write into the initial query that will return these 3 columns instead?:
cust_id, name, email
Essentially I need to extract the name and email from contacts_list and display it in the results with columns for name and email so I can export that info.
Thanks for your question and welcome to the forum! What kind of database are you querying? Your query is being passed directly to that database. So you can use any of the JSON handling functions of that DB.
I’ve been searching how to parse json data from a SQL query but I’m not getting back anything that makes sense to use with redash. I’m trying to do the following:
SELECT cust_id, contacts_list
FROM some_database
WHERE cust_id = 1234567
then get name and email from contacts_list
return a table with columns for cust_id, name, email INSTEAD of what's in the attached picture
My SQL knowledge is as basic as it gets so maybe I’m just misunderstanding the information I’m googling, but is there anyone who can show me what the rest of that query needs to be in order to achieve my goal? When you ask what type of DB, can you give me a few examples so I can find out?
Just re-reading back on this to get that link again and realizing you asked me about the database about 4 times before I gave an answer … many apologies and THANK YOU for your patience on that one :-).