Viewing 15 posts - 36,406 through 36,420 (of 59,102 total)
kanika.bhagat (10/11/2010)
create table "student"
(
"rollno" varchar2(4000),
"class" varchar2(4000),
"sem" varchar2(4000),
"sub" varchar2(4000),
"mtt1" number,
"mtt2" number,
"external" number,
"tot" number,
)
output will be like
if we insert values in all the fields...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2010 at 4:41 am
mail4sha (10/11/2010)
http://www.sqlservercentral.com/articles/T-SQL/62867/... i got ur article jeff 🙂
So you're all set then?
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2010 at 4:30 am
A word of caution. These solutions are all "Triangular Joins". What are those? Well, a full up CROSS JOIN is also known as a "SQUARE JOIN" so...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 11:34 pm
The Dixie Flatline (10/5/2010)
It is the CROSSTAB of UNPIVOTS
Is this what we're looking for?
declare @sample table (ID int identity(1,1), Column1 varchar(10), column2 varchar(10), column3 varchar(10))
insert into @sample...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 11:01 pm
The Dixie Flatline (10/5/2010)
It is the CROSSTAB of UNPIVOTS
Is this what we're looking for?
declare @sample table (ID int identity(1,1), Column1 varchar(10), column2 varchar(10), column3 varchar(10))
insert into @sample...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:53 pm
nadarajan_v (10/5/2010)
PrimaryKey ForeignKey DataType Value
1 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:51 pm
The Dixie Flatline (10/5/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:47 pm
parthi-1705 (10/6/2010)
cbalasuriya (10/6/2010)
Can someone please tell me if value1 and 2 are on same table how to get a result sets similar to
F ---> A and A --->...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:42 pm
Jersey Moe (10/6/2010)
cool trick, I'll give it try. Thanks for the replies>
It may be a cool trick but you MUST not use it in this case. Unless you...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:37 pm
The two COUNT(*)'s are part of correlated subqueries (joined on the "pm" alias) with aggregates. It would likely be much cheaper computationally if those aggregates were done separately and...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:31 pm
vijay1327-891581 (10/6/2010)
1: Remove count(*) and replace it with count(any one INTEGER type column). Here all you are doing is checking if there is any row...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:23 pm
Alvin Ramard (10/7/2010)
Jeff Moden (10/7/2010)
I may be in a minority here. To me, SSIS is a four letter word. 😉
There's nothing wrong with SSIS, but there are wrong ways...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:14 pm
grahamc (10/8/2010)
Have a look in BOL at the PIVOT function, might do the trick for you.
As a side bar, you might want to take a look at the two articles...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:06 pm
I'm not sure but I believe you'd need to look at locking/blocking on the Oracle side. I also don't believe that the use of a view is going to...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 10:04 pm
WayneS (10/10/2010)
Any suggestions on good, inexpensive, close places to stay?...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2010 at 9:49 pm
Viewing 15 posts - 36,406 through 36,420 (of 59,102 total)