Skip to main content

5 Queries in SQL

 




                SQL Queries are large in Number. We have multiple Queries and subqueries to get the desired data from the data from server. However, to all these Queries we have selected 5 Queries is basic and essential to create commands.

What are the Top 5 Queries?

                1)  Create,
                2)  Insert Into,
                3)  Update,
                4)  Delete,
                5)  Drop.

1) Create
            
            Create Query is the base where you can be able to create database, create table in SQL server.
While creating table only we can be able to define total number of columns, data types to be entered into the new table created

2) Insert Into

            Insert Into Query helps us to add data into the table from the relevant database.

3) Update

            Update Query is used to amend or edit the existing data in the specific table. Once the data is found error, we can be able to make changes on the data.

4) Delete

            Delete Query is used to delete the data completely from the table. Delete query erases only data it will not delete the table.

5) Drop

            Drop Query is used to remove table without any traces of its existence from the database

Comments

Popular posts from this blog

Understanding the DATESINPERIOD Function in Power BI

                                              Power BI is a powerful business analytics tool by Microsoft that helps users visualize data and share insights across their organization. One of the key features of Power BI is its ability to handle time-based data with ease, thanks to its robust suite of time intelligence functions. Among these, the DATESINPERIOD function is particularly useful for analyzing data over specific time periods. In this blog post, we'll dive deep into the DATESINPERIOD function, exploring its syntax, usage, and practical applications.  What is the DATESINPERIOD Function?                         The DATESINPERIOD function is a DAX (Data Analysis Expressions) function used to return a table of dates shifted by a specified number of intervals (day...

Schema in SQL Database

 What is Schema?                              In a SQL database, Schema is the logical structure. It helps the user to categorize the data according to the nature of information available in that database. For Example: -                             In a factory we have multiple departments are available, details for each department staff collected and maintained in different forms. To categorize them under their working department it will be organized as per the department.                        Similarly, Schema helps user to categorize the data based on the information.  How to Create Schema:                               We can creat...

What is Database

  Definition:                A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a  database management system (DBMS) .  What is Data?               Data is a raw or unprocessed information. Typically, the data is raw and there is no statistical or any analysis made before to understand whether it is a real one or not. Example:                    We are using smartphones with many social media applications. Each and every message as in the form of text, images (irrespective of formats), documents (irrespective of formats), links everything considered as Data.                      It can be processed by organizations, individuals or any other in need according t...