Viewing 15 posts - 271 through 285 (of 761 total)
Hi, Welcome To SSC.
It is never supposed to be this simple but won't the following get you the 80% accurate Search you need??
Select Top 1 * From <TableName>
Where FirstName LIKE...
June 18, 2012 at 11:05 pm
Very nice solution Chris.
Sorry for my last post. I had missed(not understood, actually) the "B--Buy, S--Sell" part. That is why I was asking for a Transactions Table. My bad.
June 18, 2012 at 10:12 pm
ann 31613 (6/18/2012)
Hi VijayManaged to solve the issue. Thank you.
You're very welcome.
I'm glad it worked out for you.
June 18, 2012 at 2:42 am
dwain.c (6/18/2012)
vinu512 (6/18/2012)
--Creating Temporary Table
CREATE TABLE #Test
(
DateTimeStamp datetime,
Value int
)
--Inserting Sample Data
INSERT INTO #Test SELECT '2012-06-15 16:00:00.000',4
INSERT INTO #Test SELECT '2012-06-15 2:05:00.000',5
INSERT INTO...
June 18, 2012 at 12:43 am
dwain.c (6/18/2012)
vinu512 (6/18/2012)
harri.reddy (6/17/2012)
i have 1 variable
declare @temp1 nvarchar(50)
set @temp1 = 'P=70'
now in 1 column i need p and in another i need 70 ,from @temp1
so i need function...
June 18, 2012 at 12:39 am
How is SQL Server supposed to know that you have a FIFO business logic in mind.
Do you have a transactions table where you record the Transactions, quantity sold/bought, Date of...
June 18, 2012 at 12:32 am
harri.reddy (6/17/2012)
i have 1 variable
declare @temp1 nvarchar(50)
set @temp1 = 'P=70'
now in 1 column i need p and in another i need 70 ,from @temp1
so i need function who can...
June 18, 2012 at 12:22 am
You can do it like this as well:
--Creating Temporary Table
CREATE TABLE #Test
(
DateTimeStamp datetime,
Value int
)
--Inserting Sample Data
INSERT INTO #Test SELECT '2012-06-15 16:00:00.000',4
INSERT INTO #Test SELECT '2012-06-15 2:05:00.000',5
INSERT INTO #Test SELECT...
June 18, 2012 at 12:19 am
ann 31613 (6/17/2012)
I have written a html query (please see below) and would like the query to hide On hand Qty which are zero. Can someone help me?...
June 17, 2012 at 11:10 pm
You can do it as follows, but the results would vary according to the Order in the chosen Execution Plan.
The results may not be universal in this case as there...
June 17, 2012 at 10:46 pm
Lucasprss (6/17/2012)
June 17, 2012 at 10:34 pm
Thanks a tonne Anthony.
I'll do some reading and understanding and lets see where I can get with it.
Thanks again,
June 15, 2012 at 3:47 am
The Sql Server Gurus are really fast here at SSC. 😀
By the time I read the new thread, it was all done and dusted. 😛
Nice work Lynn and Dwain.
June 15, 2012 at 3:32 am
ChrisM@Work (6/15/2012)
anthony.green (6/15/2012)
I like the idea of the values...
June 15, 2012 at 3:19 am
farooq.hbs (6/15/2012)
Thanks Buddy...I got the Solution
You're welcome.
Could you please post the solution so that other visitors to this thread(including me and Lynn) could know what was wrong and how you...
June 15, 2012 at 3:17 am
Viewing 15 posts - 271 through 285 (of 761 total)