Found 622 Articles for Data Storage

How to Rename SQL Server Schema?

Bharti Kumari
Updated on 25-Jan-2023 11:11:18

6K+ Views

Introduction To rename a schema in SQL Server, you can use the sp_rename stored procedure to change the name of the schema. Before you can rename a schema, you need to make sure that the schema is not being used by any objects in the database. You can do this by running a query to check for objects that belong to the schema. If the schema is being used by objects in the database, you will need to either drop or transfer ownership of the objects to a different schema before you can rename the schema. Once you have ... Read More

How to List All Tables in a Schema in Oracle Database?

Bharti Kumari
Updated on 04-Oct-2023 13:11:29

39K+ Views

Introduction In Oracle databases, a schema is a logical grouping of related objects, such as tables, views, and stored procedures. Each schema belongs to a specific database user and has a set of associated privileges. To list all tables in a schema in an Oracle database, you can use one of the views in the data dictionary. The `ALL_TABLES` view contains one row for each table in the current schema, while the `DBA_TABLES` view contains one row for each table in the entire database. To list the tables in a schema, you can use a SELECT statement to query the ... Read More

How to Convert MySQL Table Field Type from BLOB to JSON?

Bharti Kumari
Updated on 25-Jan-2023 11:08:40

3K+ Views

Introduction If you have a table in MySQL with a BLOB field that you would like to convert to a JSON field, it can be done by performing a series of ALTER TABLE statements. The process involves creating a new column with the desired data type (JSON), copying the data from the old column to the new column, dropping the old column, and renaming the new column to the original column name. It's important to note that BLOB fields are used to store binary data, and JSON is a text-based format for representing data. In order to convert a BLOB ... Read More

How to Convert Epoch Time to Date in SQL?

Bharti Kumari
Updated on 02-Sep-2023 16:04:28

58K+ Views

Introduction The epoch is the date and time relative to which a computer's clock and timestamp values are determined. Epoch time is commonly used in computer systems to represent a point in time. It is typically represented as a single integer value, which represents the number of seconds that have elapsed since the epoch. In SQL, you can convert an epoch time value to a date by using the to_timestamp() function. This function converts an epoch time value (which is typically stored as a BIGINT or INT data type) to a timestamp with time zone value. The resulting timestamp value ... Read More

How to Change DB Schema to DBO in SQL?

Bharti Kumari
Updated on 25-Jan-2023 11:01:29

2K+ Views

Introduction In SQL Server, a schema is a container for database objects such as tables, views, and stored procedures. The `dbo` schema is the default schema for the database owner (also known as the "database principal"). There may be times when you want to change the schema of a database object in SQL Server. For example, you might want to move a table from one schema to another to better organize your database, or you might want to change the schema of an object to match the schema of other objects in your database. To change the schema of a ... Read More

Displaying the Employees in Increasing Order of their Salaries in SQL Server

Bharti Kumari
Updated on 25-Jan-2023 10:58:52

1K+ Views

Introduction Displaying employees in increasing order of their salaries in SQL Server involves a few steps. First, you need to have a database and a table that stores information about employees, including their salaries. Once you have that, you can use SQL commands to query the table and retrieve the data in the desired order. To retrieve the data in increasing order of salary, you can use the ORDER BY clause in a SELECT statement. The ORDER BY clause is used to sort the results of a query by one or more columns. In this case, you would use it ... Read More

Displaying Department Name Having Most Number of Employees in SQL Server

Bharti Kumari
Updated on 25-Jan-2023 10:56:40

2K+ Views

Introduction Displaying the department with the most number of employees in SQL Server is a common task that can be accomplished using a SQL query. The query will typically involve joining the employees and departments tables on the department ID, grouping the results by department name, and counting the number of employees in each department. Then use aggregate functions like COUNT() and TOP 1 with ORDER BY clause to get the desired result. To display the department name that has the most number of employees in SQL Server, it requires to have two database tables - Employees and Departments with ... Read More

10 Best SQL Editor Tools in the Market

Bharti Kumari
Updated on 25-Jan-2023 10:54:13

791 Views

Introduction SQL editor tools are software applications that allow you to write and execute SQL statements. They typically provide a user interface that includes features such as syntax highlighting, auto-complete, and the ability to run queries and view the results. Some SQL editor tools are specifically designed to work with a particular database management system (DBMS), such as Oracle, MySQL, or Microsoft SQL Server, while others are more general purpose and can be used with any DBMS. SQL editor tools are commonly used by database administrators, developers, and data analysts to manage and manipulate data stored in relational databases. They ... Read More

Difference between SDHC and SDXC

Md. Sajid
Updated on 19-Jan-2023 14:07:01

1K+ Views

SDHC and SDXC − what are they? What is the difference between SDHC and SDXC, did you know? SDHC vs SDXC will be discussed in this post. Additionally, it provides detailed instructions on basic safety measures to take when using these cards. A detailed Difference Between SDHC and SDXC is mentioned in this article. There are two different varieties of SD cards: SDHC and SDXC. Consequently, you must first study about the SD card in order to know the SDHC and SDXC. Secure Digital cards, or SD cards, are used to store files, music, photographs, and other types of data. ... Read More

Difference between MMC and SD Interface

Md. Sajid
Updated on 19-Jan-2023 14:14:40

2K+ Views

We frequently notice an SD/MMC slot when we look at card readers. As a result, it makes one wonder what is the difference between MMC and SD interface? Many common characteristics and physical and electrical standards between MMC and SD cards are the same. The commands at the software level are the primary area where the two standards vary. Numerous hosts can support MMC and SD cards using the same socket due to their similarity. Actually, the MMC standard gave rise to SD. Although they no longer have identical sets of commands, the two are still electrically compatible. SD kept ... Read More

Advertisements