Skip to content Skip to sidebar Skip to footer
Showing posts from November, 2024

Retrieve All Child Nodes From A Parent Node Xml Sql Server

I have this xml: Solution 1: First of all: The provided example cannot be complete as there is a d… Read more Retrieve All Child Nodes From A Parent Node Xml Sql Server

Cascade Update Oracle

I have the following tables: CREATE TABLE supplier ( supplier_id numeric(10) not null, supplier_nam… Read more Cascade Update Oracle

How To Store Json In Sqlite

I am having issues with storing JSON data to sqlite. This is the code which I am trying to implemen… Read more How To Store Json In Sqlite

Sql Server Populate A Table Based On Another Table With A Substring As Column Name

I would like to populate a table based on a given table: Given table t1: id1 (string), id2 (strin… Read more Sql Server Populate A Table Based On Another Table With A Substring As Column Name

Regex To Find If A Number Is Within A Range, Example 1,3,10-15,17

I would need to find a way How to check if a given number is included in a string of numbers and ra… Read more Regex To Find If A Number Is Within A Range, Example 1,3,10-15,17

Mysql Code To Convert Excel Datetime

Excel's datetime values look like 42291.60493, which means MySQL sees them as strings and not a… Read more Mysql Code To Convert Excel Datetime

Sqlite: Prevent Duplicates

I would like to create a table to store device settings. The table has three rows: id, parameter_na… Read more Sqlite: Prevent Duplicates

How To Return 1 Single Row Data From 2 Different Tables With Dynamic Contents In Sql

Can someone provide answer to this situation?? Suppose I have 2 tables: Table Books with values Bat… Read more How To Return 1 Single Row Data From 2 Different Tables With Dynamic Contents In Sql

Sql Server 2008 To Sql Server Compact Edition?

I have some questions about SQL Server Compact Edition. Now we are using SQL Server 2008 and develo… Read more Sql Server 2008 To Sql Server Compact Edition?

Chained Comparisons In Sqlalchemy

Python supports chained comparisons: 1 Solution 1: SQLAlchemy won't support Python's chain… Read more Chained Comparisons In Sqlalchemy

Sqllocaldb Info Lists Two Instances With The Same Name

When my IIS MVC4 Web App (running as my user) tries to connect to a named LocalDb Instance it fails… Read more Sqllocaldb Info Lists Two Instances With The Same Name

Error Trying To Connect To A Sql Server Using Sqlcmd (from Ubuntu Command Line)?

I am finding some problem trying to connect to a SQL Server instance from an Ubuntu machine using s… Read more Error Trying To Connect To A Sql Server Using Sqlcmd (from Ubuntu Command Line)?

Optimize Queries

I have the following function CREATE FUNCTION [dbo].[SuiviRupture] (@CodeArticle [NVARCHAR](13… Read more Optimize Queries

Query A Database Based On Result Of Query From Another Database

I am using SSIS in VS 2013. I need to get a list of IDs from 1 database, and with that list of IDs,… Read more Query A Database Based On Result Of Query From Another Database

N Prefix And Parameter

I have some stored procedure CREATE PROC MyProc ( @FullName NVARCHAR(200) = NULL ) AS --......… Read more N Prefix And Parameter

Sql How To Select The Most Recent Date Item

Hello I have a table with columns: *using oracle ID NUMBER USER_ID NUMB… Read more Sql How To Select The Most Recent Date Item

Sql Continue Executing Queries After Duplicate Key Violation

I have a situation where I want to insert a row if it doesn't exist, and to not insert it if it… Read more Sql Continue Executing Queries After Duplicate Key Violation

How To Optimise Filtering And Counting For Every Row In A Large R Data Frame

I have a data frame, such as the following: name day wages 1 Ann 1 100 2 Ann 1 150 3 A… Read more How To Optimise Filtering And Counting For Every Row In A Large R Data Frame

Entity Framework Reverts Changes

I have MVC application hosted as Azure web role and I also have Worker role which checks some data … Read more Entity Framework Reverts Changes

What Timezone Does Mysql's Now() Follow

Does MySQL's NOW() follow the system's timezone or some standard like GMT or UTC? Solution … Read more What Timezone Does Mysql's Now() Follow

What In The Dbnull

I have a stored procedure which has a parameter that is nullable to a decimal column. The method I … Read more What In The Dbnull

Self-referencing Data Object In Coredata

I'm making the mental switch from a lifetime of SQL to CoreData and it's not without a few … Read more Self-referencing Data Object In Coredata

Returning Multiple Rows From Querying Xml Column In Sql Server 2008

I have a table RDCAlerts with the following data in a column of type XML called AliasesValue: AKA S… Read more Returning Multiple Rows From Querying Xml Column In Sql Server 2008

Multiple Fields In Query Don't Work In C++ Builder 6

I am using C++ Builder 6 and I want to query more than one field/column in my query to a table of m… Read more Multiple Fields In Query Don't Work In C++ Builder 6

Change The Value Of Computed Column In Specific Conditions

I have a table for Library Circulation that have a column named 'Delay'. This column is a c… Read more Change The Value Of Computed Column In Specific Conditions

Could Not Create The Driver From Nhibernate.driver.sqlite20driver, Nhibernate, Version=3.1.0.4000

I have a tests project that I am trying to test my nhibernate layer with using sql lite in-memory d… Read more Could Not Create The Driver From Nhibernate.driver.sqlite20driver, Nhibernate, Version=3.1.0.4000

Run-time Error '3704' Operation Is Not Allowed When The Object Is Closed In Vb6 While Using Sp Using Temp Tables

I am using the Stored procedure 'sp_Missingdata' to get the data and to display in the MSFl… Read more Run-time Error '3704' Operation Is Not Allowed When The Object Is Closed In Vb6 While Using Sp Using Temp Tables

Sql Function Calls Ignored With "having" Clause

For the below query, the MAX function seems to be completely ignored. The MAX function has no effec… Read more Sql Function Calls Ignored With "having" Clause

How To Get Specific Result From A Search In A Sql Column Populated With Xml

I have the following XML which is a column (content_html) in a SQL table (ntext type): Solution 1: … Read more How To Get Specific Result From A Search In A Sql Column Populated With Xml

Order Of Execution For Tsql Statement With Cte

I'm working on running a report for a table that generic table. So the values in the 'Param… Read more Order Of Execution For Tsql Statement With Cte

Convert Time To Decimal In Sql Server 2012

i have a table in sql server 2012, with one of its column having the following data in time datatyp… Read more Convert Time To Decimal In Sql Server 2012

Uploading Documents In Sql Server 2008 Using Asp.net C#

I'm currently researching different methods and techniques into uploading and downloading docum… Read more Uploading Documents In Sql Server 2008 Using Asp.net C#

How To Use Dbo Procedure To Execute For Different Schema?

I am using SQL Server 2008 R2, I have a schema [dbo], and in that schema, I have created a stored p… Read more How To Use Dbo Procedure To Execute For Different Schema?

Tsql Help | The Select List For The Insert Statement Contains Fewer Items Than The Insert List

Please see my query below, I have counted the columns a number of times and also I have checked the… Read more Tsql Help | The Select List For The Insert Statement Contains Fewer Items Than The Insert List

Calling Linked Server From Trigger

I've created instead of trigger in server A, in which I call a procedure, which in turn calls o… Read more Calling Linked Server From Trigger

Sql Stored Procedure - Variable Too Short

I have a mySQL stored procedure that work with few data in a table : SQL Fiddle Demo -> thanks t… Read more Sql Stored Procedure - Variable Too Short

Sqlalchemy : Association Table For Many-to-many Relationship Between Template_id And Department. How Can I Delete A Relationship?

Department = models.department.Department association_table = Table('template_department',… Read more Sqlalchemy : Association Table For Many-to-many Relationship Between Template_id And Department. How Can I Delete A Relationship?

Deleting Item From Listview And Database With Onitemclicklistener

I created a database and managed to display the added items into a ListView. Now I need a method to… Read more Deleting Item From Listview And Database With Onitemclicklistener

Postgres Query Of An Array Using Like

I am querying a database in Postgres using psql. I have used the following query to search a field … Read more Postgres Query Of An Array Using Like

Returning All Children With A Recursive Select

Good day everyone! I've got a graph. First, I know how to build simple recursive selections. I … Read more Returning All Children With A Recursive Select