Viewing 15 posts - 2,341 through 2,355 (of 3,957 total)
There's always alternate ways of formatting a date. Whether you'd want to use them is another story.
DECLARE @product_name VARCHAR(20) = 'Vehicles'
,@expiry_date DATETIME = '2012-09-10'
SELECT...
December 19, 2012 at 6:11 pm
Have you considered using MERGE?
http://technet.microsoft.com/en-us/library/bb510625(v=sql.105).aspx
December 19, 2012 at 5:57 pm
opc.three (12/19/2012)
jmohan1984.tn.ind (12/18/2012)
hi, I need an example simple indirect recursive trigger.Thanks.
Did you make it beyond the phone interview?
ROTFLMAO! +1
December 19, 2012 at 5:35 pm
Since quote is also CHAR(25), you can also do this:
CHARINDEX(CHAR(25), string_column) > 0
December 19, 2012 at 5:33 pm
Ignoring the valid questions posted by Evil, something like this might get you started:
--Create Table Consumer
CREATE TABLE #Consumer(
[ConsumerID] [varchar](10) NOT NULL,
[ConsumerName] [varchar](100) NULL,
[ConsumerType] [varchar](20) NULL
) ON...
December 19, 2012 at 5:31 pm
dwain.c (12/18/2012)
Also I'm not 100% sure I adapted Steven's solution to the table correctly as it was returning some rows with NULL values.
The answer to this is the delimiter appearing...
December 19, 2012 at 5:21 pm
Credit to you Lonnie for being so thorough in your testing.
They say "never look a gift horse in the mouth," but I'd say on forum answers you always should.
Nothing like...
December 19, 2012 at 5:19 pm
sgmunson (12/18/2012)
If I could generate a good sample of, say, 1/2 million to several million test records, I'd find a weekend and test your code. Got any easy...
December 19, 2012 at 5:59 am
Let's try a few of these solutions in a small test harness to see what we can see, shall we?
CREATE TABLE #Strings (ID INT IDENTITY, MyString VARCHAR(8000))
;WITH Tally (n) AS...
December 18, 2012 at 11:10 pm
No answer to my questions so I'll ignore them.
This ain't pretty (elegant yes) but it seems to do the job.
CREATE TABLE #Employee_Leave
(emp_id INTEGER NOT NULL,
leave_date DATE NOT NULL,
NO_Of_Days...
December 18, 2012 at 10:35 pm
sgmunson (12/18/2012)
December 18, 2012 at 9:33 pm
sgmunson (12/18/2012)
You need to start a given group of records in the same industry and category with the value for AvgSales for the record with the lowest Emp_Rank value, and...
December 18, 2012 at 9:30 pm
Evil Kraig F (12/18/2012)
support 86837 (12/18/2012)
December 18, 2012 at 9:13 pm
SG,
BTW. In case you haven't, you should probably read this article by Jeff Moden: Solving the Running Total and Ordinal Rank Problems[/url]. Look for the section on triangular...
December 18, 2012 at 8:45 pm
sgmunson (12/18/2012)
A "Quirky Update" isn't going to work here, as the problem isn't just a matter of retrieving a value from a previous record. It's a matter of...
December 18, 2012 at 8:20 pm
Viewing 15 posts - 2,341 through 2,355 (of 3,957 total)