About 50 results
Open links in new tab
  1. Concatenate text from multiple rows into a single text string

    Consider a database table holding names, with three rows: Peter Paul Mary Is there an easy way to turn this into a single string of Peter, Paul, Mary?

  2. How to execute store procedure for another DB? - Stack Overflow

    WHERE DATA_TYPE = 'varchar' AND TABLE_CATALOG = @Database AND TABLE_SCHEMA = @TableSchema AND TABLE_NAME = @TableName -- [TargetDB] = @Database The TargetDB will …

  3. Select data from date range between two dates - Stack Overflow

    Jan 8, 2013 · Now what is the query if I want to select sales data between two dates from a date range? For example, I want to select sales data from 2013-01-03 to 2013-01-09.

  4. Error in Zeppelin notebook stating unable to create a sink

    Oct 7, 2023 · I am trying to write to from 1 KDS to another after processing in Apache Flink. I have used Zeppelin notebook to create sink table with the following query : %flink.ssql CREATE TABLE …

  5. Trouble replacing Chr (160) with VBA in excel - Stack Overflow

    Jan 28, 2014 · sSql = sSql & ")" db.Execute sSql DoEvents Debug.Print i Next i End Sub Now I did some research and found out that to replace these characters you use Chr (160). I have used that in my …

  6. How to get sp_executesql result into a variable? - Stack Overflow

    May 4, 2009 · I have a piece of dynamic SQL I need to execute, I then need to store the result into a variable. I know I can use sp_executesql but can't find clear examples around about how to do this.

  7. Getting only Month and Year from SQL DATE - Stack Overflow

    Nov 23, 2009 · SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, <dateField>), 0) AS [year_month_date_field] FROM <your_table> This gets the number of whole months from a base …

  8. postgresql - Double colon `::` notation in SQL - Stack Overflow

    Jun 23, 2022 · It varies based on RDBMS, but if I guess right, that's PostgreSQL, in which case the :: converts a.dc to a date type of date. In other flavors... In MS SQL Server 2000: For built-in user …

  9. Passing operator as a parameter in stored proc while preventing the ...

    Nov 1, 2018 · If you print out what your @sSQL variable is, the result is SELECT * FROM WEBPM_COPY.DBO.Test1111 WHERE AGE1 @ageOperator @age so it is literally passing the …

  10. sql - How to Join to first row - Stack Overflow

    Feb 14, 2019 · This is a good solution. Please note: when using for your own situation, be very careful how you PARTION BY (usually you do probably want some ID column there) and ORDER BY (which …