What are the four main query statements?

Answer Posted / mohan kumar.a

The main four query statements are:-
1.) select
ex:select * from table_name

2.) insert
ex:insert into table_name(c1,c2,c3...) values(v1,v2,v3..)

3.) delete
ex: delete * from table_name

4.) update
ex:update table_name
set col_name='value'
where col_name='something'
note:examples are based on ms sql server database.k

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if you insert a duplicate key for the primary key column in ms sql server?

726


What is the name of the system variable that returns the number of rows affected by a SQL statement?

771


Can you explain different types of joins?

710


What is outer join in sql server joins?

748


How to set the current database in ms sql server?

723






What are the differences between triggers and stored procedures?

729


What it means to be triggered?

662


What is the difference between coalesce() & isnull()?

733


Difference between primary key and clustered index?

686


Write a sql query to get zero records from a table having n number of records?

920


How to receive output values from stored procedures?

705


What are the built in functions in sql server?

658


what are database files and filegroups? : Sql server database administration

667


What is SQL Azure?

101


Can two different columns be merged into single column? Show practically?

822