Multi-Dimensional Array in C Language: An array of arrays is called a multi-dimensional array. In simple words, an array created with more than one dimension (size) is called a multi-dimensional array. The multi-dimensional array can be of a two-dimensional array or three-dimensional array or four-dimensional array or more.  Syntax: type name[size1][size2]…[sizeN];Example: intContinue Reading

One Dimensional Array in C: One dimensional array is an array that has only one subscript specification that is needed to specify a particular element of an array. A one-dimensional array is a structured collection of components (often called array elements) that can be accessed individually by specifying the positionContinue Reading

To run a computer system, there is a requirement of computer memory. Computer memory is one of the important components of the computer system. Therefore, it is necessary to have basic knowledge about what a computer memory is and how many types of computer memory are there. In this article,Continue Reading

Introduction to Django sessions Django has a session framework that supports both anonymous and user sessions. Django uses the session middleware to send and receive cookies. The following picture illustrates how the Django sessions work: When a web browser makes the first HTTP request to the web server, the sessionContinue Reading

Introduction to HTTP cookies When a web server interacts with many different browsers at the same time, it needs to identify which browser a specific request came from. Because the HTTP request/response is stateless, all web browsers look identical. To identify the web browsers, the web server uses cookies. Technically,Continue Reading

Introduction to the Django Group By The SQL GROUP BY clause groups the rows returned by a query into groups. Typically, you use aggregate functions like count, min, max, avg, and sum with the GROUP BY clause to return an aggregated value for each group. Here’s the basic usage of the GROUP BY clause in a SELECT statement: SELECT column_1, AGGREGATE(column_2)Continue Reading

Preparing data We’ll use the Employee and Department models from the hr application for the demonstration. The Employee and Department models map to the hr_employee and hr_department tables: First, add the salary field to the Employee model: class Employee(models.Model): salary = models.DecimalField(max_digits=15, decimal_places=2) # …Code language: Python (python) Second, make migrations using the makemigrations command: python manage.py makemigrationsCode language: Python (python) Output: Migrations for ‘hr’: hr\migrations\0005_employee_salary.py – Add field salary to employeeCodeContinue Reading

Introduction to the Django QuerySet exists() method Sometimes, you want to check if a query contains any rows. To do it, you use the exists() method of the QuerySet object. The exists() method returns True if the QuerySet contains any rows or False otherwise. Behind the scenes, the exists() will attempt to perform the query in the fastest way possible. However, the query willContinue Reading

Introduction to Django isnull We’ll use the Employee and Contact models from the HR application for the demonstration. The Emloyee and Contact models map to the hr_employee and hr_contact tables: In relational databases, NULL denotes missing information. For example, if you don’t know the contact of an employee, you can use NULL for the contact of the employee at the time of recording. NULL is special because you cannotContinue Reading