
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 140 Articles for SQL

3K+ Views
Python is a powerful and versatile programming language that is widely used for data analysis, machine learning, and other scientific applications. One of the reasons for its popularity is the availability of several powerful libraries and frameworks that make data manipulation and analysis a breeze. Among these, Pandas is a popular library for working with tabular data in Python. In this tutorial, we will explore how to convert SQL query results to Pandas Dataframe using pypyodbc. If you're working with data in Python, you're likely to encounter situations where you need to extract data from a SQL database and manipulate ... Read More

4K+ Views
The pandas library in Python is highly regarded for its robust data manipulation and analysis capabilities, equipping users with powerful tools to handle structured data. While pandas excel at efficiently managing data, there are circumstances where converting a pandas DataFrame into an SQL database becomes essential. This conversion enables deeper analysis and seamless integration with diverse systems. In this article, we will explore the process of transforming a pandas DataFrame into SQL using the influential SQLAlchemy library in Python. SQLAlchemy serves as a library that offers a database-agnostic interface, allowing us to interact with various SQL databases like SQLite, MySQL, ... Read More

13K+ Views
Embedded SQL Embedded SQL is a method that combines SQL with a high−level programming language's features. It enables programmers to put SQL statements right into the source code files used to set up an application. Database operations may be carried out effortlessly by developers by adding SQL statements to the application code. The source code files having embedded SQL statements should be preprocessed before compilation because of the issue of interpretation of SQL statements by the high−level programming languages in embedded SQL. The terms EXEC SQL and END_EXEC must be used before and after each SQL statement in the source ... Read More

1K+ Views
It refers to a language that is used to insert, delete and update data in a database. It is used for the manipulation of data in the database.DCL is used together with DML because the changes made by dml wouldn't be saved permanently and have a chance of rolling back. Here are three DML commands: Insert into command It is used to insert a data row in a table. Syntax INSERT INTO table_name(col1, col2, col3, ..) VALUES (value1, value2, value3, ...); or INSERT INTO table_name VALUES (value1, value2, value3, ...); Example This example will show the ... Read More

1K+ Views
A schema is a logical structure that stores database objects in SQL Server. It offers a method for classifying and organizing database items including tables, views, and processes. There could be instances where you need to delete a schema from your database. The SQL Server DROP SCHEMA command is useful in this situation. We can delete a schema from the database using the DROP SCHEMA statement. For database administrators and developers who wish to effectively control the structure of their databases, the Drop statement is a crucial tool. Syntax DROP SCHEMA [ IF EXISTS ] schema_name; Here, If ... Read More

30K+ Views
Embedded SQL is a powerful method that allows the integration of high−level programming languages with database management systems (DBMS). It acts as a bridge between applications and databases which helps in data manipulation and communication. Various database management systems offer embedded SQL, giving developers the freedom to select the one that best serves their requirements. Popular DBMS that support Embedded SQL are Altibase, IBM Db2, Microsoft SQL Server, Mimer SQL, Oracle Database, PostgreSQL, and SAP Sybase. Need of Embedded SQL The goal to make database interactions simpler for application developers and end users determines the demand for embedded SQL. ... Read More

2K+ Views
Retrieval and Update Operations When we work with files, we usually do two types of operations: retrieval and update. Retrieval operations help us find specific records in the file and look at their data. Update operations change the file by adding, removing, or modifying records. Selection Conditions To do either operation, we may need to specify a condition that the records must meet. For example, we might want to retrieve all the records where the salary is greater than or equal to $30, 000. This is called a selection condition. Selection conditions can be simple or complex. A simple condition ... Read More

7K+ Views
Offset-Fetch is feature in MS SQL Server. It helps to retrieve subset of rows from result set. It consists of two components: OFFSET and FETCH. The OFFSET clause specifies the number of rows to skip from the beginning of the result set. FETCH clause determines the number of rows to retrieve. Syntax SELECT column1, column2, ... FROM table ORDER BY column OFFSET {integer_value} {ROWS | ROWS ONLY} FETCH {FIRST | NEXT} {integer_value} {ROWS | ROWS ONLY} ONLY; Explanation of Syntax SELECT column1, column2, ...: Specifies the columns to be selected from the table. FROM table Specifies the table from ... Read More

2K+ Views
In DBMS, there are object-relational features that combine elements of object databases with SQL. SQL language is used for relational databases, and it has evolved over time. In the latest standard called SQL:2008, object features have been incorporated, although not all commercial DBMSs have implemented these features yet. Object-relational model refers to the combination of the relational model and object database enhancements. SQL has undergone revisions to include features related to XML as well. Here are some of the object database features included in SQL: Type Constructors New type constructors have been added to specify complex objects. For example, the ... Read More

54K+ Views
Normalization is a process of organizing data in a database to reduce redundancy and improve data consistency. Primary keys are really important in organizing information in a database. They help to make sure that every row in a table has a unique identification so that nothing gets mixed up or lost. In this article, we will discuss the different normal forms of database normalization. Normalization Normalization is a process of organizing the data in database to avoid data redundancy, insertion anomaly, update anomaly & deletion anomaly. Normalization is the process of organizing data in a database to minimize redundancy ... Read More