Viewing 12 posts - 1 through 12 (of 12 total)
Actually, you need to specify OR in your where clause instead of AND.
A product id cannot be both 100 and 200, it is one or the other.
April 17, 2020 at 2:35 pm
It works in a 2008 r2 instance, and as I say here is a post about it from 2003:
parsename
October 23, 2018 at 9:49 am
Here's a post about it from 2003:
October 23, 2018 at 9:35 am
Try using the Parsename function:
https://docs.microsoft.com/en-us/sql/t-sql/functions/parsename-transact-sql?view=sql-server-2017
October 23, 2018 at 9:21 am
Lynn,
is there a reason why you put the iTVF access in a subquery? I use this form:
SELECT
isnull(HarvestYear,0) HarvestYear
FROM
[tblFuelFlow]
...
June 15, 2016 at 9:48 am
It is getting the average commission for each Job ID
November 30, 2015 at 9:32 am
You can wrap your query in double quotes:
declare @sql varchar(max)
set quoted_identifier off
set @sql = "SELECT Col1, Col2 FROM MyTable WHERE FOO = 'BAR' "
-- remember to...
September 23, 2015 at 7:51 am
Why not import the whole file into a new table and then update your existing table with an update statement.
Once it has worked you can drop the imported table if...
June 5, 2015 at 8:35 am
You only need the update statement.
The code before that is me setting up test data on my machine so I could test that it works.
You just have to replace...
May 20, 2015 at 8:38 am
Just to add, in the code above, my Job_id field refers to the Op's PDF_JOB_ID field.
May 20, 2015 at 8:35 am
You could try something like the code below:
-- set up test data
if object_id('tempdb..#printtab') is not null
drop table #printtab
create table #printtab (
Letter_idvarchar(10),
job_idvarchar(5),
txtvarchar(5)
)
insert into #printtab
select '123','aaa','flg' union all
select null,'aaa','flg' union all
select null,'aaa','flg'...
May 20, 2015 at 8:29 am
SQL Server will have interpreted originating_Shift_Type as an alias for the To_work column.
It's the same as:
select To_work [originating_Shift_Type]
from dbo.dutyrostershift
where ...
February 10, 2015 at 3:46 am
Viewing 12 posts - 1 through 12 (of 12 total)