Computer Science, asked by HARRYJAIYA, 3 months ago

Give example of a simple SQL query and explain how it works​

Answers

Answered by gurvanshchenabranmee
12

Answer:

hyee mate here is ur answer ... plz mark me brainliest if you like

Explanation:

SQL, Structured Query Language, is a programming language designed to manage data stored in relational databases. SQL operates through simple, declarative statements. This keeps data accurate and secure, and it helps maintain the integrity of databases, regardless of size. Here's an appendix of commonly used commands.

Answered by vishakasaxenasl
0

Answer:

Example of a Simple SQL Query:

SELECT * FROM STUDENT;

Explanation:

Working of SQL Query:

SELECT * FROM STUDENT;

  • This query comes under the category of DML Command stands for Data Manipulation Command.
  • It selects the whole data from the student table and displays it to the developer.
  • It is the simplest query since it has no condition involved and also there are no criteria for selecting the data. We are selecting all the data that is present in the student table.
  • When the SQL engine processes this query, it searches for the specified table. In our case, it is the student table.
  • Then it selects all the data present in the table since we have given the * symbol.
  • And that data is displayed.  
  • You can also make this query a little more complex and functional by adding some criteria for selecting the data for example only the names and roll numbers of the students should be displayed.
  • Also, conditions can be added with the 'where' clause.

#SPJ2

Similar questions