03-17-2022 10:06 AM
I’m planning to fetch the data from a table using “Snowflake select snap” while putting the condition of getting 1k records ONLY in WHERE clause however it is not getting any results.
I can put the entire query in “Snowflake execute snap” as well but wanting to do with Snowflake Select as of now. Any help is highly appreciable.
Thanks!
Solved! Go to Solution.
03-23-2022 06:08 AM
Wanted to share the solution here. The query was right, no need to change the “Fetch-size” as well.
The only thing that was missing was ’ ’ for the IDs that we were passing in the query. Thus, the query would look like -
WHERE NAME IN (‘102345’, ‘1701’, ‘5604878’)
03-18-2022 01:42 AM
Sure, below snaps for your reference:
03-18-2022 01:50 AM
There’s no need for the expression functionality (equal sign (=)) button to be on in both situations, unless you’re using some function later in the where clause. Other than that, I can see that you have a new line character ‘\n’ in the query itself, so you should replace those with new lines or space.
03-18-2022 01:56 AM
Even if I remove the “=” decorator, the query doesn’t run. Moreover, regarding \n, there is none in the query but the error message still shows that → this is where I’m blown away.
I appreciate your detailed attention though.
03-18-2022 02:46 AM
If you are allowed to, send the query without IDs in the where clause. Make sure you use the Preformatted text
option when pasting the query.
03-18-2022 09:33 AM
How do I send IDs without where clause in the query? Is there any snap which will help me with the same?