SQL and PL/SQL Question:
Download Job Interview Questions and Answers PDF
SELECT statements in SQL?
![SQL and PL/SQL Interview Answer SQL and PL/SQL Interview Question](https://globalguideline.com/public/images/interview/35.png)
Answer:
SELECT column_name(s) FROM table_name
SELECT DISTINCT column_name(s) FROM table_name
SELECT column FROM table WHERE column operator value
SELECT column FROM table WHERE column LIKE pattern
SELECT column,SUM(column) FROM table GROUP BY column
SELECT column,SUM(column) FROM table GROUP BY column HAVING SUM(column) condition value
Note that single quotes around text values and numeric values should not be enclosed in quotes. Double quotes may be acceptable in some databases.
SELECT DISTINCT column_name(s) FROM table_name
SELECT column FROM table WHERE column operator value
SELECT column FROM table WHERE column LIKE pattern
SELECT column,SUM(column) FROM table GROUP BY column
SELECT column,SUM(column) FROM table GROUP BY column HAVING SUM(column) condition value
Note that single quotes around text values and numeric values should not be enclosed in quotes. Double quotes may be acceptable in some databases.
Download SQL and PL/SQL Interview Questions And Answers
PDF
Previous Question | Next Question |
Operators used in SELECT statements are? | The SELECT INTO Statement is most often used to create backup copies of tables or for archiving records? |