answersLogoWhite

0

📱

Database Programming

Databases are collections of tables that maintain and display information, often collaboratively; this information can be used for interaction with an application or gaining general knowledge. Questions about database engines and modifying or using them belong in this category.

8,803 Questions

What are the difference between superkey and candidate key?

A superkey is defined as a set of attributes of a relation for which it holds that in all relations assigned to

that variable there are no two distinct tuples (rows) that have the same values for the attributes in this set.

As an example

Code:

Roll Number | First Name | Last Name

CSU0001 | Shabbir | Bhimani |

CSU0002 | SomeName | SurName |

CSU0003 | Larry | page |

Now here we have the following as super keys

1. Roll Number | First Name

2. Roll Number | First Name | Last Name

Now in plain language Any Unique key with some Non Unique key combination is called a super key of the

relationship.

A candidate key of a relationship is a set of attributes of that relationship such that there are no two distinct

tuples with the same values for these attributes. In simple example candidate key is a minimal superkey, i.e. a

superkey of which no proper subset is also a superkey.

Since a relation is a set(no duplicate elements), it holds that every relation will have at least one candidate key

(because the entire heading is always a superkey). For practical reasons RDBMSs usually require that for each

relation one of its candidate keys is declared as the primary key

Quote:

For example, Given an employee table consisting of the columns:

employeeID

name

job and

departmentID

we could use the employeeID in combination with any or all other columns of this table to uniquely identify a row

in the table. Examples of superkeys in this table would be {employeeID, Name}, {employeeID, Name, job}, and

{employeeID, Name, job, departmentID}.

In a real database we don't need values for all of those columns to identify a row. We only need, per our example,

the set {employeeID}. This is a minimal superkey - that is, a minimal set of columns that can be used to identify a

single row. So, employeeID is a candidate key.

Now, if employeeID is a candidate key then why not it is the superkey. Because employeeID can also uniquely

identify the tuples.

(2) In your example why Roll number is not the superkey as it is uniquely identifying the tuples?

(3)

Quote:

Any Unique key with some Non Unique key combination is called a super key of the relationship

Is it necessary that Unique key has to be combined with some Non Unique key to be called as a super key.

Unique key is also a super key but the minimal super key is called candidate key and all candidate keys are super

keys but the reverse is not true.

Does any one have experience in Gupta SQL and looking out for a job in Pune - India?

yeah, I have 7 yrs expericne in Gupta SQL Window and Centura Development Kit. I am looking the job in the Pune. for futher communication just drop the email on my email id ( ashutoshdubey72@gmail.com)

What is the full form of OLEDB?

Q. What is full Form of OLEDB?

The full form of OLEDB is Object linking and Embedding Data Base.OLEDB is the successor to ODBC, a set of software components that allow a "front end" such as GUI based on VB, C++, Access or whatever to connect with a back end such as SQL Server, Oracle, DB2, mySQL etal. In many cases the OLEDB components offer much better performance than the older ODBC.

OLEDB is a different type of data provider that came about with MS's Universal Data Access in 1996 and does not require that you set up a DSN. It is commonly used when building VB apps and is closely tied to ADO. It works with COM, and DCOM as of SQL 7.0.
OLEDB is the successor to ODBC, a set of software components that allow a "front end" such as GUI based on VB, C++, Access or whatever to connect with a back end such as SQL Server, Oracle, DB2, mySQL etal. In many cases the OLEDB components offer much better performance than the older ODBC.

OLEDB is a different type of data provider that came about with MS's Universal Data Access in 1996 and does not require that you set up a DSN. It is commonly used when building VB apps and is closely tied to ADO. It works with COM, and DCOM as of SQL 7.0.

How many GB is 250000 MB?

The standard multiple is 1024 (but much of the world is starting to migrate to 1000). Anywho, the most accurate answer is: 250,000MB / 1024 = 244.14GB

Who should make the decision about enterprise application?

CIOs have forever complained about the sticker shock of enterprise software maintenance fee

What are the five main features of a database?

1- Compactness - where there is no need for the old paper files that has a big size.

2- Speed - Because of the computer can restore the stored Data Base and upgrading it very fast than the normal human manual hand can do.

3- Less drudgery - Because the computer do every thing for you.

4- Currency - The more specific you can have when you asking for a Data Base information.

5- Simplicity - An easy way to collect, access-connects, and display information.

6- Stability - To prevent unnecessary loss of data.

7- Security - To protect against unauthorized access to private data.

Where is ASCII used?

ASCII is used to determine which character to display when a keyboard key is pressed, or code entered.

What are the Types and functions of registers?

A computer has address registers and data registers. The address registers usually keeps the computer informed about where certain data stores are kept.

What is the largest prime number that can be stored in 32 bit?

For signed 32 bit values:

2^31-1 = 0x7FFFFFFF = 2,147,483,647

For unsigned 32 bit values:

2^32-5 = 0xFFFFFFFB = 4,294,967,291

What is alphanumeric or text database?

A field of this data type will accept both numbers and text. The alphanumeric keys are the part of the deyboard that looks like a typewriter. When to use - it you want to enter text, or a mixture of text and numbers. When NOT to use - if you want to store only munbers, or only dates. You can enter numbers or dates into text fields but they would get sorted as if they were words and could not easily be used for any calculations.

What is the work of Encoder?

What is work the encoder

In cable television transmission systems

How do you create stored procedure?

--Takes three arguments, the last one is optional

CREATE PROCEDURE sp1 (@AuthorId int, @DateFrom DateTime,

@DateTo DateTime = NULL)

AS

BEGIN

--strip any time portion from the date passed in

SELECT @DateFrom = Convert(datetime,convert(char(10),@DateFrom,101))

--if no 'dateto' provided, then default to 23 hours, 59 minutes and 59 seconds

--this is because dates are stored by default as 00:00:00, and

--we only want to get data for one day

IF @DateTo IS NULL

BEGIN

SET @DateTo = DATEADD ( second , -1, @DateFrom + 1 )

END

SELECT a.Name,

a.Body,

t.Description,

u.Name

FROM Article a

INNER JOIN Topic t on a.TopicId = t.Id

LEFT OUTER JOIN Users u on u.Id = a.AuthorId

WHERE a.AuthorId = @AuthorId

AND a.CreatedDate >= @DateFrom

AND e.CreatedDate <= @DateTo

END

GO

What are sequence diagrams in UML?

Sequence diagrams are used to model the logic of usage scenarios. A usage scenario is exactly what its name indicates -- the description of a potential way your system is used. The logic of a usage scenario may be part of a use case, perhaps an alternate course. It may also be one entire pass through a use case, such as the logic described by the basic course of action or a portion of the basic course of action, plus one or more alternate scenarios. The logic of a usage scenario may also be a pass through the logic contained in several use cases. For example, a student enrolls in the university, and then immediately enrolls in three seminars. Sequence diagrams model the flow of logic within your system in a visual manner, enabling you to both document and validate your logic, and are commonly used for both analysis and design purposes.

Sequence diagram is the most common kind of Interaction Diagram in UML 2. It describes Message interchange between a number of Lifelines(interacting objects). Messages sent from one lifetime to another could be: synchronous calls, asynchronous calls, return messages, signals, create and delete messages.

Sequence diagram shows how lifelines interact with each other as a sequence of messages and signals sent, received back, or lost. This sequence could have loops (iterations), conditional messages, parallel messages, etc.

What are the Advantages and disadvantages of hierarchical model?

ADVANTAGES OF Hierarchical model Hierarchical, or nested, data structures are common throughout many areas of research. However, until recently there has not been any appropriate technique for analyzing these types of data. Now, with several user-friendly software programs available, and some more readable texts and treatments on the topic, researchers need to be aware of the issue, and how it should be dealt with. The goal of this paper is to introduce the problem, how it is dealt with appropriately, and to provide examples of the pitfalls of not doing appropriate analyses.(4)

Is it possible to recover data from physically broken sections of a CD?

A CD uses optical technology to read data stored on the surface of the CD by reading "BUMPS" or semi-reflective "burn" marks on the medium and interpreted similar 1's & 0's binary format just like in magnetic data storage such as that in Hard Disk Drives. It should be possible to recover the data depending on where the data is physically stored. There should be sufficient technology to go about this, There are companies that do this type of work for different purposes. It could be personal data recovery of very important files or perhaps it could be confidential information. Whatever it is that's stored on a disc, if your goal is to make it unrecoverable it would be to completely shred the disc or burn it, you could also achieve this by sabotaging the aluminum like surface area of a disc.

Should individuals and organizations with access to the databases be identified to the patient?

Yes. All individuals and organizations with some form of access to the computerized data bases, and the level of access permitted, should be specifically identified in advance. Full disclosure of this information to the patients is necessary in obtaining informed consent to treatment. Patient data should be assigned a security level appropriate for the data's degree of sensitivity, which should be used to control who has access to the information.

What does error 0x80070052 mean when attempting to copy a picture file to another folder?

I compared 2 pix that were similar (one I could copy onto the SD drive and the other I ended up with the error message 0x80070052) and the only difference I could see was in the properties . . . the one I could copy had archived checked the other did not . . . hmmm

Description of database subschema?

What are the purpose of developing a sub-schema in database? In database management, the Subschema pronounced "sub-skee-mah." is an individual user's partial view of the database while the schema is the entire database. It is the applications programmer's view of the data within the database pertinent to the specific application. A subschema has access to those areas, set types, record types, data items, and data aggregates of interest in the pertinent application to which it was designed. Naturally, a software system usually has more than one programmer assigned and includes more than one application. This means there are usually many different sub schemas for each schema. The following are a few of the many reasons sub schemas are used: # Sub schemas provide different views of the data to the user and the programmer, who do not need to know all the data contained in the entire database. # Sub schemas enhance security factors and prohibit data compromise. # Sub schemas aid the DBA while assuring data integrity. Each data item included in the subschema will be assigned a location in the user working area (UWA). The UWA is conceptually a loading and unloading zone, where all data provided by the DBMS in response to a CALL for data is delivered. It is also where all data to be picked up by the DBMS must be placed.

What is bcmwls32?

bcmwls32.exe is the Broadcom Wireless Network Card Utility. It is accompanied by the system drivers for a Broadcom wireless card. It replaces the Windows Wireless Zero Configuration Service as your interface for configuring and connecting to wireless networks.

What is canned transaction in IT?

What is canned transaction? Canned transactions: Standardized queries and updates with carefully programmed data validity checking.

What is the difference between Supervised and unsupervised methods in data mining?

Unsupervised Learning

• The model is not provided with the correct results

during the training.

• Can be used to cluster the input data in classes on

the basis of their statistical properties only.

• Cluster significance and labeling.

• The labeling can be carried out even if the labels are

only available for a small number of objects

representative of the desired classes.

Supervised Learning

• Training data includes both the input and the

desired results.

• For some examples the correct results (targets) are

known and are given in input to the model during

the learning process.

• The construction of a proper training, validation and

test set (Bok) is crucial.

• These methods are usually fast and accurate.

• Have to be able to generalize: give the correct

results when new data are given in input without

knowing a priori the target.