© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu

Home Placements Interview Questions Database Interview Questions And Answers Page3▼

Database Interview Questions And Answers

15. What is SELECT statement?

The SELECT statement lets you select a set of values from a table in a database. The values selected from the database table would depend on the various conditions that are specified in the SQL query.

16. How can you compare a part of the name rather than the entire name?

SELECT * FROM people WHERE empname LIKE '%ab%'
Would return a recordset with records consisting empname the sequence 'ab' in empname .

17. What is the INSERT statement? 75% By what percent did kiran's score improve?

The INSERT statement lets you insert information into a database.

18.How do you delete a record from a database?

Use the DELETE statement to remove records or any particular column values from a database.

19. How could I get distinct entries from a table?

The SELECT statement in conjunction with DISTINCT lets you select a set of distinct values from a table in a database. The values selected from the database table would of course depend on the various conditions that are specified in the SQL query. Example SELECT DISTINCT empname FROM emptable

20. How to get the results of a Query sorted in any order?

You can sort the results and return the sorted results to your program by using ORDER BY keyword thus saving you the pain of carrying out the sorting yourself. The ORDER BY keyword is used for sorting.
SELECT empname, age, city FROM emptable ORDER BY empname

21. How can I find the total number of records in a table?

You could use the COUNT keyword , example
SELECT COUNT(*) FROM emp WHERE age>40

Previous Next
1 2 3 4 5 6 7 8 9
SLogix Student Projects
bottom