SQL GOTO Statement
The SQL GOTO statement is used to alter the flow of execution. When the execution reaches the GOTO statement.
![]()
This website provides a SQL Tutorial, SSRS, Power BI, Python, Azure basics and advanced tutorials for beginners and professionals
You will find out a step-by-step walk through of the basics and advanced topics with practical and include numerous hands-on activities.
The SQL GOTO statement is used to alter the flow of execution. When the execution reaches the GOTO statement.
![]()
A Subquery is a query within another query. The outer query is called as main query and inner query is called as subquery. A subquery (inner… Read More »SQL Subquery
![]()
The SQL EXISTS Operator is used to check the existence of any record in a subquery. The EXISTS operator returns true if the subquery returns… Read More »SQL EXISTS Operator
![]()
Using SQL Server BULK INSERT(BCP) statement you can perform large imports of data from text, or Csv files to SQL Server table, or Views. Basically,… Read More »Bulk Insert in SQL Server
![]()
Detaching and attaching a SQL database, is helpful in case in case when you want to move to move a database to a different SQL Server instance. So Bascially, first we detach database from SQL Server and move those files to another SQL Server and then attach files.
![]()
SQL Detach Database, when you detach a database from SQL Server, database is removed from the instance of SQL Server but kept the database intact within its data files and transaction log files.
![]()
The DEFAULT constraint is used to provide a default value for a columns, when the INSERT INTO statement does not provide a specific value to columns.
![]()
A SQL cursor is a database object that is used to retrieve data from a result set one row at a time. A SQL cursor is used when the data needs to be updated row by row.
![]()
A table scan or an Index scan are performed in response to any query when SQL Server has to scan the data or index pages… Read More »Table Scan Vs Index Scan in SQL Server
![]()
Cascading referential integrity constraints are foreign key constraints that is used to defines the action that SQL Server performs when a user try to delete or update a primary key value to which an existing foreign key points.
![]()
SQL Server Dirty Reads problems in concurrent transactions
![]()
SQL Server LAST_VALUE function is a Analytic function which returns the Last value in an ordered set of values.
![]()
SQL Server FIRST_VALUE function is a Analytic function which returns the first value in an ordered set of values.
![]()
Print a prime numbers separted by comma for any given number .
For example, the prime number for 10 , wolud be 2,3,5,7 .
Here is the query:
![]()
Query to Get the Students who scored higher than 80 Marks ?
![]()
SQL Server Clustered index
A clustered index defines the order in which data is physically stored in a table. A table can have only one clustered index because data rows can be only sorted in one order.
![]()
How to get all the tables in database those are having primary key constraints ?
![]()