Viewing 15 posts - 1,141 through 1,155 (of 2,007 total)
omi_real (12/13/2011)
I need a statement that will view the Item per category.
All barcodes that starts with M and D are regular items,
otherwise barcodes that starts with A and B...
December 14, 2011 at 1:42 am
sandeep.cs3 (12/13/2011)
Good info about this topic is discussed at:
This thread is from 2008. . .
December 13, 2011 at 10:06 am
Chrissy321 (12/13/2011)
CASE isn't available in Access you would need to use iif.
D'Oh, yep that's correct.
Hopefully the OP understood the concept I was trying to get across so was able to...
December 13, 2011 at 9:04 am
mic.con87 (12/13/2011)
December 13, 2011 at 9:02 am
Dyn-o-mite!! (12/13/2011)
for e.g
create table test_table
(
letter varchar(max),
word varchar(max)
);
insert into test_table
values
('A','apple'),
('A','aeroplane'),
('C','car'),
('D','dairy'),
('C','camel');
the output should be as follows
letter...
December 13, 2011 at 7:59 am
Couple of problems: -
1) You haven't explained how we can tell what is a "regular", "sale" or "all" item. I'm guessing that "all" is just a combination of "regular" and...
December 13, 2011 at 6:25 am
mrwillcostello (12/12/2011)
USE TSQLFundamentals2008;
SELECT AVG (LineItems)AS AvgLineItems FROM
(SELECT orderid, CAST (COUNT (productid)AS DECIMAL...
December 13, 2011 at 6:09 am
Also, with some human intelligence, this sort of script can help identify potential relationships.
SELECT object_schema, object_name, CASE WHEN dataobjecttype = 'P'
...
December 13, 2011 at 5:56 am
mhike2hale (12/13/2011)
Thank you very much for your response I just read it by now and tried to run all the possible scenarios specially where I was stuck, like if...
December 13, 2011 at 4:32 am
Looks good.
How's this?
;WITH CTE AS (
SELECT ITCScoreDate, NameID, ITCScore,
ROW_NUMBER() OVER (PARTITION BY NameID ORDER BY ITCScoreDate DESC) AS rn
FROM #ITCChecks)
SELECT MAX(a.ITCScoreDate) AS ITCScoreDate, a.NameID, MAX(a.ITCScore) AS ITCScore
INTO #InitialTable_18
FROM CTE a
INNER...
December 13, 2011 at 4:03 am
First of all, hello and welcome to SSC!
Secondly, the good news: This can be done!! Not only that, but we can optimise your current code 😀
Now the bad news:...
December 13, 2011 at 2:42 am
I got the points because I made the correct assumption, but I think that if the data is consistent in representing an INT in "Value" where ever "IsInsuranceLength" = 1...
December 13, 2011 at 2:38 am
BEGIN TRAN
--First, create the sample data to play with
SELECT Cust, Doctors
INTO yourSampleData
FROM (SELECT 'A', 1
UNION ALL SELECT 'A', 2
...
December 12, 2011 at 9:47 am
SELECT 123456 * 0.01
Returns
---------------------------------------
1234.56
December 12, 2011 at 8:49 am
Jim-720070 (12/12/2011)
December 12, 2011 at 7:08 am
Viewing 15 posts - 1,141 through 1,155 (of 2,007 total)