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

How do you store and retrieve a picture in sybase database?

To store a picture in a Sybase database, you can use a BLOB (Binary Large Object) data type column in a table. You can insert the picture into this column using SQL commands or through an application that interacts with the database. To retrieve the picture, you can query the column where the picture is stored and then display or use the binary data as needed.

Describe the three retrieval operations for relational databases.?

The three retrieval operations are:

Selection - which retrieves a subset of rows.

Projection - which retrieves a subset of columns.

Joining -which combines data from two tables.

What is relation instance?

A relation instance is a set of tuples or rows in a relational database that represents a specific snapshot of data at a given point in time. Each tuple in the instance corresponds to a different record within the database and includes values for each attribute defined in the database schema. Multiple instances collectively form the relation or table.

What is the difference between databases and spreadsheets?

Nothing much, really. Other than the fact that a real database might contain ALOT MORE of data than a spreadsheet can. ALSO: The database might contain specific data in any field. Much more spesific that any spreadsheet can. Example: BLOB's. Binear Large Object B's. Those can contain almost anything. There are more details around this, but, anyway, a real database is something much more powerful than any spreadsheet (today anyways).

What is the standing data file?

The standing data file is a file containing static reference data that remains relatively unchanged over time, such as customer information, product details, or geographic data. It is used to provide a base for processing dynamic data and is often accessed by various applications within an organization for consistent information.

What is drop command?

The DROP table command of SQL lets you drop a table from database . The database requires you to empty a table before you eliminate from the database. But there is a condition for dropping a table ; it must be an empty table.

How do you extract information from relational database?

You can extract information from a relational database using Structured Query Language (SQL) queries. By writing SQL queries, you can retrieve data by specifying the table, columns, conditions, and sorting options to meet your requirements. This allows you to extract specific information from the database based on your criteria.

What is trie data structure?

§Trie is a special structure to represent sets of character strings.

§Can also be used to represent data types that are objects of any type e.g. strings of integers.

The word "trie" is derived from the middle letters of the word "retrieval

What is the difference between associative entity and relationship with attribute?

A relationship with attributes should be an associative entity when:

- All relationships for the associative entity should be many

- The associative entity could have meaning independent of the other entities

- The associative entity should have attribute(s), but it may or may not have an identifier

- The associative entity may participate in other relationships other than the entities of the associated relationship

- Ternary relationships should be converted to associative entities

Data is known as what?

Data can be defined as raw facts and statistics that can be processed and analyzed to extract meaningful insights.

What is the difference between distributed and replicated database?

Distributed and replicated databases have a topology of having roles : 'masters' and 'slaves' even though in a replicated database schema, the distinction becomes a little blurred.

Distributed databases are normally those where information is updated on a master. The changes in the master are distributed out to a number of slave databases. The slave databases can be updated themselves but if they are, their information isn't distributed to any other database. Should the master have updated information that would contend with information in a slave, the master would take presidence.

Replicated databases are normally those in which there is the capability to post updates to both 'master' through to 'slave' as well as 'slave' through to 'master'.

What is sql-3?

SQL-3 is short for Structured Query Language Level 3, which is a standard that defines the syntax and semantics of SQL queries. It includes features like advanced outer joins, enhanced data manipulation capabilities, and support for recursive queries. SQL-3 builds upon SQL-92 and provides more advanced functionality for managing databases.

Benefits of information system planning?

Information system planning helps organizations align IT resources with business goals, identify opportunities for technology improvement, and prioritize IT initiatives for maximum impact. It also enables efficient resource allocation and budgeting, as well as improved decision-making based on data-driven insights. Overall, effective information system planning can enhance operational efficiency, promote innovation, and support strategic growth objectives.

Is there a difference between a database and a data capture form?

Yes, a very fundamental one.

The form is the interface that allows you (or a user) to add data to the database.

The database is the thing that stores the information and retrieves it when queried by the database operator.

Define manual based information system?

A manual-based information system does not use any computer devices. All data would be kept in other ways, mainly paper. As a few examples: Before accounts, payroll and spreadsheet applications, people would have worked out this kind of information on paper. People would have handwritten letters or used typewriters instead of word processors. Graphs and diagrams would have been drawn by hand instead of using computer software to do them.

What are the advantages of centralized database?

Centralized databases offer simplified data management, easier maintenance, and increased data consistency due to a single point of control. They also provide better security measures by having a centralized system for monitoring and implementing security protocols. Additionally, centralized databases promote better scalability and efficiency in handling large volumes of data.

An attribute has what?

(1) A characteristic. In a word processing application, an underlined word would be said to have the underline attribute. In database systems, a field can have various attributes. For example, if it contains numeric data, it has thenumeric attribute.

(2) In database management systems, the term attribute is sometimes used as a synonym for field.

(3) In DOS systems, every file has a file attribute that indicate severalproperties of the file. For example, they indicate whether the file is read-only, whether it needs to be backed up, and whether it is visible or hidden.

(4) A language construct that programmers use to add additional information (i.e., metadata) to code elements (e.g., assemblies, modules, members, types, return values, and parameters) to extend their functionalit

What does Data Accessed mean?

Data accessed refers to the act of retrieving, viewing, or using data stored in a database or other electronic storage system. This can involve running queries, performing searches, or simply viewing the content of a file or database record. Accessing data is a fundamental part of using and analyzing information in various digital platforms.

What are the objective of the database?

The objective of databse is to categorise Information and to hide them as for example amazon's database keeps the info if everybody who has ever used it so be sure not to show the mainframe but there is another bit to a database. The table, this can be shown freely and contains smart ads to help your needs. Like the recommended part of amazon takes the information from their database and shows it as a table in the form of a webpage

Explain the distinction between closed an open hashing discus the relative merits of each technique in database application?

A hash table is where data storage for a key-value pair is done by generating an index using a hash function.

Open Hashing (aka Separate chaining) is simpler to implement, and more efficient for large records or sparse tables.

Closed Hashing (aka Open Addressing) is more complex but can be more efficient, especially for small data records.

What are the negatives of using a database?

  • Database management systems are intricately developed.
  • Database systems are complex, difficult, and time-consuming to design
  • Management complexity.
  • Frequent upgrade/replacement cycles.
  • At risk from the attack of viruses and hackers
  • Initial training required for all programmers and users

What is an electronic database?

An electronic database is a structured collection of data that is stored and accessed electronically. It allows for efficient storage, retrieval, and manipulation of data, typically organized in tables with relationships between them. Electronic databases are widely used in various fields to store and manage vast amounts of information.

Explain the distinction between closed an open hashing Discuss the relative merits of each technique in database application?

A hash table is where data storage for a key-value pair is done by generating an index using a hash function.

Open Hashing (aka Separate chaining) is simpler to implement, and more efficient for large records or sparse tables.

Closed Hashing (aka Open Addressing) is more complex but can be more efficient, especially for small data records.

What is the difference between a file processing system and a database system?

In file processing system a permanent system file is created for every new object. Application softwares are used to manipulate these files. SO characteristics (Some of them became its drawbacks) of file processing system are:-

1)Data redundancy and inconsistency

2)Difficulty in accessing data

3)Data isolation ie. data is in different formats and files.

In database system these issues where addressed, by data abstraction.

In DBMS, data is stored using 3 levels of abstraction

1)Physical Level : How data is stored

2)Conceptual level : What data is stored, relationship between data

3)View Level : What is visible to different users.

Difference between database and distributed database?

A database is nothing but simply a collection of records. The data can be stored all at a same place or can be distributed in different systems . When data is stored in different places that is distributed it is called distributed database.

A database is normally stored in one place. That could be a physical location, like a particular office. A distributed database is one database that has different parts of it stored in different places. This is often for security and safety purposes. To a user, they still see all of the data they need on their screen, so they don't even realise that it is stored in different locations.