Found 112 Articles for SQL

Production databases in SQL queries

sudhir sharma
Updated on 01-Feb-2024 11:30:46

15 Views

Overview Production databases are crucial for storing and retrieving data in organizations. SQL queries are essential for efficiently retrieving specific information from these databases. The article aims to equip readers with practical knowledge for working with production databases using SQL queries. Understanding SQL Queries and Relational Databases Relational databases provide a structured framework for organizing and storing data efficiently. Data modeling techniques, including normalization, help in designing effective databases. Understanding these concepts is essential for writing SQL queries that retrieve information accurately and efficiently from complex databases. Let’s dive into a few real world examples − Example 1 Creating ... Read More

Data Architecture Design & Data Management

Amrendra Patel
Updated on 22-Aug-2023 16:45:12

325 Views

Data architecture design consists of standards which have certain rules, policies, data types to be collected, from where the data is collected, storage of data, arrangement of data, and then using that data for further analysis. Data plays a vital role in successful execution of business strategy. Data architecture design It helps us to show how users view the data in the database. It describes the type of data structures used to manage data and make the processing easy. the concept of dbms depends on its architecture. It is divided into three models i.e. conceptual model, logical model ... Read More

Data anomalies in DBMS

Amrendra Patel
Updated on 22-Aug-2023 16:37:05

5K+ Views

Anomalies means problems or inconsistency which happened during the operations performed on the table. There can be many reasons that anomaly occur for example, It occurs when data is stored multiple times unnecessarily in the database i.e. redundant data is present or it occur when all the data is stored in a single table. normalization is used to overcome the anomalies. the different type of anomalies are insertion, deletion and updation anomaly. Input The same input is used for all three anomalies. Student ID Name Age Branch Branch_Code Hod_name 1 A 17 Civil 101 Aman ... Read More

Current user function in SQL

Amrendra Patel
Updated on 22-Aug-2023 16:27:22

144 Views

It is used to return the name of the current user in sql database server. it does not accept any parameter. Syntax CURRENT_USER Current_user is the function used to get the name of current user Example 1 In this example, we are going to use the current_user function to get the current user name. Input Employee Emp_id Name Dept_name Salary 1 Monu IT 50000 2 Sonu HR 60000 3 Golu Security 70000 This database is currently used by amrendra. Code SELECT CURRENT_USER;#selected current user name Output Amrendra ... Read More

Creating materialised view using table definition in cassandra

Amrendra Patel
Updated on 22-Aug-2023 16:19:18

45 Views

A materialised is defined as a database object that contains the results of a particular query. It could be called as a subset of a table. Any changes in the base table would be reflected in the materialised view. Syntax CREATE MATERIALISED VIEW view_name AS SELECT * FROM table_name WHERE column_name IS NOT NULL PRIMARY KEY (provide_primary_key) Here, view_name is the name of the materialised view, table_name is the base table, column_name are the columns provide_primary_key are the primary keys for the base table. Example 1 In this example, we are gonna have a ... Read More

Create, Alter & Drop schema

Amrendra Patel
Updated on 22-Aug-2023 16:13:08

69 Views

Create a schema Schema is basically the logical representation of the database. there is a default schema named dbo. Objects gets created inside a schema when ‘create schema’ statement is used. To provide access to other user after the schema is created, we need to impersoinate permissions. Syntax:The syntax to create a schema is − Create schema schema_name Here, we have created a schema named schema_name. Example 1: Granting permissions In this example, we are going to create a schema and grant permissions to have access to that. Algorithm Step 1 − Create a schema. Step 2 − ... Read More

Create login in SQL Server

Amrendra Patel
Updated on 22-Aug-2023 15:09:44

162 Views

A login is a security check process to authenticate the user and make their data secure. In case of SQL, we need to login to connect to the server. Creating login for the server gives a security advantage. Also, security implications are to be understood and kept in mind while creating a login. A user will be granted the access of the database after user login is provided. Here, we are going to use various methods. Method 1: login with Password We are going to use simply the userid and password to login to the server. Syntax Create login ... Read More

How To Connect and Run SQL Queries to a PostgreSQL Database from Python?

Mukul Latiyan
Updated on 07-Aug-2023 15:16:17

766 Views

PostgreSQL is a popular open−source relational database management system known for its robustness, scalability, and advanced features. Python provides excellent support for interacting with PostgreSQL databases, allowing developers to seamlessly connect and execute SQL queries. In this article, we will explore the step−by−step process of connecting to a PostgreSQL database from Python, running SQL queries, and retrieving results. We will provide code examples, explanations, and sample outputs to help you master this essential skill. In this article, we will learn how to connect and run SQL queries to a PostgreSQL database from Python. Step 1: Install the psycopg2 module The ... Read More

How to Connect to SQLite Database that Resides in the Memory using Python?

Mukul Latiyan
Updated on 04-Aug-2023 16:52:03

1K+ Views

SQLite is a popular, lightweight, and self−contained database engine that is widely used in various applications. One of the unique features of SQLite is its ability to create databases in memory, which allows for faster data access and manipulation. In this article, we will explore how to connect to an in−memory SQLite database using Python, providing step−by−step instructions, code examples, explanations, and sample outputs. Understanding SQLite In−Memory Databases An SQLite in−memory database is a temporary database that resides entirely in memory instead of being stored on disk. This type of database is useful for scenarios where data needs to be ... Read More

Airtable Alternatives

Shirjeel Yunus
Updated on 03-Aug-2023 17:18:24

103 Views

What is Airtable? Airtable is an online software which can be used to make and share relational databases. The user interface is simple and attractive because of its colorfulness. The tool helps you to make a database within a few minutes. The information can be stored, organized, and shared easily. There is no need to learn any scripting language or SQL to make a database and retrieve data. Price Plans of Airtable There are four price plans and the details can be found in the table below: Plan Cost Free $0 per seat per month ... Read More

1 2 3 4 5 ... 12 Next
Advertisements