Skip to content

BCP CHAR value to Snowflake

I am trying to create a BCP file with | delimiter and then load it to a snowflake table. Issue: in SQL server there are columns defined as CHAR(4) and have values “sss” so when i do BCP the its being …

how to use distinct and group with sql statement

i have created one query that is for parent summary list. here i just want to get records multiple time because mutiple entries to another table : here it is : ALTER PROCEDURE [dbo].[GetParentList](@…

Can you somehow overload the query in a method?

So there’s a Customer and a Seller and they’re both User. The only difference between them is that seller has a NameOfBusiness and customer does not. In the DAL I have this code: Is there a way to overload the query OR change the query so that you can fill in a NULL for NameOfBusiness? Answer Opti…

Select a specific time in DB2 from the currenttime

I am trying to do a select and set the time to 10AM in DB2. Ive tried however this sets the time to 0:00:00, im trying to get it set to 10AM, is there a way to do this in DB2? Answer Please can you try this: Here is the DEMO Also, in your question example you have one open

How to merge rows into one row with separator

I need merge rows into one row for summary of calculation (SQL Server 2014). My SQL query is: Result of this query is: I would like to have this result: When add new currency (x), the result of new currency must be appended: Can somebody please help me with this topic? Many thanks Answer Something like this s…