Viewing 15 posts - 1 through 15 (of 86 total)
louislsh
use union
select [Sales Date], Store, Product, Sold, cast(Null as Int) As SOH From TableA
union all
select Null As [Sales Date], Store, Product, Null As Sold, SOH From TableB
March 16, 2020 at 4:37 am
MVDBA (Mike Vessey) gave a good idea
I meant something like this
CREATE TABLE #Catalog_Data(
[Product_Catalog_ID] [int] IDENTITY(1,1) NOT NULL,
[Main_Product] [varchar](50) NULL,
[Product_Colour] [varchar](50) NULL,
[Product_Size] [varchar](50) NULL,
[Tax_Class_ID] [varchar](10) NULL,
[Outer_Print_Name] [varchar](100) NULL
)
Insert into #Catalog_Data
select '245862118101DRK_SGE',...
March 13, 2020 at 12:35 pm
type sample data
March 13, 2020 at 11:48 am
binary_checksum() ?
March 13, 2020 at 11:24 am
I choose "Write a query to specify data transfer" option
type your query please
March 13, 2020 at 9:09 am
Because @@FETCH_STATUS is global to all cursors on a connection, use it carefully. After a FETCH statement executes, the test for @@FETCH_STATUS must occur before any other FETCH statement executes against another cursor. @@FETCH_STATUS is undefined before...
March 13, 2020 at 5:47 am
Some brilliant idea that I can't think of?
maybe use "database snapshot"?
March 6, 2020 at 6:52 am
July 29, 2019 at 5:35 am
yes.
int columnCount = table.Columns.Count;
char[] charsToTrim = {','};
foreach (DataRow row in table.Rows)
{
string columnvalues = "";
for (int i = 0; i < columnCount; i++)
{
string value = row.ToString().Replace("'", "''");
columnvalues +=...
April 3, 2019 at 6:42 pm
string value = table.Rows[index].ItemArray
columnvalues += “‘” + value.replace("'", "''")+ “‘,”;
April 3, 2019 at 1:22 pm
April 3, 2019 at 10:04 am
my solution.
it's not good, but it can help you
;
With h As (
Select
o.Hierarchy
, o.ItemID
, StartDate = IsNull(t.StartDate, '19000101')
, EndDate = IsNull(t.EndDate, '30000101')
, o.ID
, o.OccupantTypeID
-- , ot.Name
From
#Occupant o
Left Join #Term...
March 18, 2019 at 11:44 pm
maybe this will help
declare @xml as xml = '
<Data>
<Interventions_x0020_Provided>
<Interventions_x0020_Provided_x0020_SubTable>
<Intervention>On-site (Observations, Consultation)</Intervention>
<Provided>true</Provided>
<Minutes>35</Minutes>
<Describe>Completed observation. Discussed with Janet (teacher) how Aisling''s behavior has...
March 13, 2019 at 7:30 am
Viewing 15 posts - 1 through 15 (of 86 total)