Help Me Id Candidate And Superkeys Please

Mar 17, 2006

The relation (table) schema is multimedia (mm_id, f_name, extension, directory, size).

1) Identify at least three super keys for the relation called ?multimedia?.
2) Identify at least two candidate keys for the relation called ?multimedia?

Thanks much

View 14 Replies


ADVERTISEMENT

Super Key && Candidate Key....

Feb 26, 2008

 
can anyone explain what are superkeys & candidate keys with a simple example?
Thanx...

View 2 Replies View Related

Candidate For Partitioning?

Feb 12, 2008



I have a table that looks like this:

ItemID TokenID WordCount
12345 11334 5
12345 3453 1
12345 546546 2
12345 242555 1
12345 556346 4
12345 346346 1






Code SnippetCREATE TABLE [dbo].[ItemTokensLink](
[ItemID] [int] NOT NULL,
[TokenID] [int] NOT NULL,
[WordCount] [int] NOT NULL DEFAULT ((1)),
CONSTRAINT [PK_ItemTokensLink_1] PRIMARY KEY CLUSTERED
(
[ItemID] ASC,
[TokenID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]






So this table has now reached over 22 million rows. The problem is my machine only has 1GB ram....so SQl Server tries to load up the whole table and this is ~560MB....equals zero ram for ...well anything else!

Does SQL Server load up an entire table when performing an INSERT?




Code Snippet


INSERT INTO ItemTokensLink(ItemID, TokenID, WordCount)
SELECT DISTINCT @ItemID as ItemID, t.TokenID, Count(t.TokenID) as WordCount
FROM #Tokens t
Group by TokenID




@ItemID is parameter provided
#Tokens is a temp table create with a word list


Would partitioning help here?

The table is is 80% of the time added to and the ItemID will always increase. What is the best to deal with massive tables that are inserted to frequently?

How does SQL Server decide when to load a table into memory?
TIA

View 5 Replies View Related

Candidate,composite And Alternate Key

Jun 6, 2008

 Hi What is the difference between Candidate key , composite key and alternate key. I went through many websites but I didn't get examples. There were only definitions. Can anyone please tell me the site or blogs that elaborate this concept RegardsKaran 

View 2 Replies View Related

Transact SQL :: How To Create Candidate And Super Key

Jun 1, 2015

I did lot of google but did not get script for candidate and super key. I do not have syntax to create candidate and super key in sql.

View 4 Replies View Related

SQL Server 2008 Release Candidate (Express)Beta

Jun 17, 2008

I downloaded SQL Server 2008 Release Candidate (Express) Beta on 6/16/08. Installation started but failed. A message stated Microsoft NET Framework 2.0 SP2 needs to be installed first.

I downloaded SP2 and installed it. However, when I try again to install the SQL 2008 Release Candidate Beta I get the same message that SP2 must first be installed.

Can someone tell me how to make the SQL Beta version installer recognize the previously installed SP2 Service Pack?

Thanks, Norman

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved