Viewing 15 posts - 346 through 360 (of 761 total)
Welcome to SQL Server Central. Hffffff!!!!...long post right??....Do us one last favour....Go through the link in my signature....and post DDL of the tables, Sample Data and Expected Resultset as explained...
June 5, 2012 at 4:36 am
You can read about Dynamic Pivot here:
June 5, 2012 at 4:26 am
Yes We can tweak it.
--Static Pivot
Select xDATE, Max(MSFT), MAX(AAPL), MAX(AMD) From
(Select xDATE, [MSFT], [AAPL], [AMD] From
(Select A.* From StockQuote as A
JOIN #TempSymbolList as B ON A.xSymbol = B.TempSymbol) As...
June 5, 2012 at 4:11 am
How about this?
Select * From Ex Where Column1 IN (Select Column1 From Ex Group By Column1 Having COUNT(Column1) > 1)
And Column2 <> '-'
Union
Select * From Ex Where Column1 NOT...
June 5, 2012 at 3:22 am
Is this what you have i mind?
--Static Pivot
Select xDATE, [MSFT] As CloseSymbol1, [AAPL] As CloseSymbol2, [AMD] As CloseSymbol3 From
(Select A.* From StockQuote as A
JOIN #TempSymbolList as B ON A.xSymbol...
June 5, 2012 at 2:40 am
I am not asking about the query. Please post the sample data that you posted in your first post in a more understandable format. I am not able to make...
June 5, 2012 at 12:23 am
Please post the DDL and some sample Data of the table DailyStockPrices also.
June 5, 2012 at 12:21 am
Sorry for the late reply. Just worked your Requirements and came up with the following Queries:
--Query For First Requirement
Select a.Maker, AVG(b.Screen) As Average_ScreenSize From Product As a
JOIN Laptop As b...
June 4, 2012 at 11:56 pm
If none of the solutions have worked for you yet, then please post some adequate sample data which also contains "Dates".
The DDL and sample data should be adequate enough so...
June 4, 2012 at 10:54 pm
This one doesn't use any functions that might not be in older versions. Check if this works:
--Creating Table
Create Table Ex
(Column1 varchar(3),
Column2 varchar(3),
Column3 varchar(3) )
--Insertint Sample Data
Insert into Ex
Select...
June 4, 2012 at 10:12 pm
Your Sample Data is very unclear. I am not able to make out which data belongs to which column. Please post some better sample data.
Have a look at the link...
June 4, 2012 at 6:26 am
ssurekha2000 (6/4/2012)
empid 'basic' da ta ...
June 4, 2012 at 4:30 am
ssurekha2000 (6/4/2012)
but this is not i need
i mean i get the empid repeated
i shld...
June 4, 2012 at 3:35 am
prakashp 84206 (6/4/2012)
June 4, 2012 at 3:20 am
Viewing 15 posts - 346 through 360 (of 761 total)